prow/kube/client.go
func (c *Client) ReplaceProwJob(name string, job prowapi.ProwJob) (prowapi.ProwJob, error) {
	c.log("ReplaceProwJob", name, job)
	var retJob prowapi.ProwJob
	err := c.request(&request{
		method:      http.MethodPut,
		path:        fmt.Sprintf("/apis/prow.k8s.io/v1/namespaces/%s/prowjobs/%s", c.namespace, name),
		requestBody: &job,
	}, &retJob)
	return retJob, err
}
func (c *Client) ReplaceProwJob(name string, job prowapi.ProwJob) (prowapi.ProwJob, error) {
	c.log("ReplaceProwJob", name, job)
	var retJob prowapi.ProwJob
	err := c.request(&request{
		method:      http.MethodPut,
		path:        fmt.Sprintf("/apis/prow.k8s.io/v1/namespaces/%s/prowjobs/%s", c.namespace, name),
		requestBody: &job,
	}, &retJob)
	return retJob, err
}
func ( c * Client ) ReplaceProwJob ( name string , job prowapi . ProwJob ) ( prowapi . ProwJob , error ) { c . log ( " " , name , job ) var retJob prowapi . ProwJob err := c . request ( & request { method : http . MethodPut , path : fmt . Sprintf ( " " , c . namespace , name ) , requestBody : & job , } , & retJob ) return retJob , err }
// ReplaceProwJob will replace name with job in the client's specified namespace.
//
// Analogous to kubectl replace prowjobs/NAME --namespace=client.namespace
ReplaceProwJob will replace name with job in the client s specified namespace . Analogous to kubectl replace prowjobs / NAME -- namespace = client . namespace