mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
update generator
This commit is contained in:
parent
510aa1b432
commit
5360db5df8
@ -397,7 +397,7 @@ func (c *$.type|privatePlural$) List(opts $.ListOptions|raw$) (result *$.resultT
|
|||||||
Resource("$.type|resource$").
|
Resource("$.type|resource$").
|
||||||
VersionedParams(&opts, $.schemeParameterCodec|raw$).
|
VersionedParams(&opts, $.schemeParameterCodec|raw$).
|
||||||
Timeout(timeout).
|
Timeout(timeout).
|
||||||
Do().
|
Do(context.TODO()).
|
||||||
Into(result)
|
Into(result)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@ -418,7 +418,7 @@ func (c *$.type|privatePlural$) List($.type|private$Name string, opts $.ListOpti
|
|||||||
SubResource("$.subresourcePath$").
|
SubResource("$.subresourcePath$").
|
||||||
VersionedParams(&opts, $.schemeParameterCodec|raw$).
|
VersionedParams(&opts, $.schemeParameterCodec|raw$).
|
||||||
Timeout(timeout).
|
Timeout(timeout).
|
||||||
Do().
|
Do(context.TODO()).
|
||||||
Into(result)
|
Into(result)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@ -433,7 +433,7 @@ func (c *$.type|privatePlural$) Get(name string, options $.GetOptions|raw$) (res
|
|||||||
Resource("$.type|resource$").
|
Resource("$.type|resource$").
|
||||||
Name(name).
|
Name(name).
|
||||||
VersionedParams(&options, $.schemeParameterCodec|raw$).
|
VersionedParams(&options, $.schemeParameterCodec|raw$).
|
||||||
Do().
|
Do(context.TODO()).
|
||||||
Into(result)
|
Into(result)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@ -449,7 +449,7 @@ func (c *$.type|privatePlural$) Get($.type|private$Name string, options $.GetOpt
|
|||||||
Name($.type|private$Name).
|
Name($.type|private$Name).
|
||||||
SubResource("$.subresourcePath$").
|
SubResource("$.subresourcePath$").
|
||||||
VersionedParams(&options, $.schemeParameterCodec|raw$).
|
VersionedParams(&options, $.schemeParameterCodec|raw$).
|
||||||
Do().
|
Do(context.TODO()).
|
||||||
Into(result)
|
Into(result)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@ -463,7 +463,7 @@ func (c *$.type|privatePlural$) Delete(name string, options *$.DeleteOptions|raw
|
|||||||
Resource("$.type|resource$").
|
Resource("$.type|resource$").
|
||||||
Name(name).
|
Name(name).
|
||||||
Body(options).
|
Body(options).
|
||||||
Do().
|
Do(context.TODO()).
|
||||||
Error()
|
Error()
|
||||||
}
|
}
|
||||||
`
|
`
|
||||||
@ -481,7 +481,7 @@ func (c *$.type|privatePlural$) DeleteCollection(options *$.DeleteOptions|raw$,
|
|||||||
VersionedParams(&listOptions, $.schemeParameterCodec|raw$).
|
VersionedParams(&listOptions, $.schemeParameterCodec|raw$).
|
||||||
Timeout(timeout).
|
Timeout(timeout).
|
||||||
Body(options).
|
Body(options).
|
||||||
Do().
|
Do(context.TODO()).
|
||||||
Error()
|
Error()
|
||||||
}
|
}
|
||||||
`
|
`
|
||||||
@ -496,7 +496,7 @@ func (c *$.type|privatePlural$) Create($.type|private$Name string, $.inputType|p
|
|||||||
Name($.type|private$Name).
|
Name($.type|private$Name).
|
||||||
SubResource("$.subresourcePath$").
|
SubResource("$.subresourcePath$").
|
||||||
Body($.inputType|private$).
|
Body($.inputType|private$).
|
||||||
Do().
|
Do(context.TODO()).
|
||||||
Into(result)
|
Into(result)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@ -510,7 +510,7 @@ func (c *$.type|privatePlural$) Create($.inputType|private$ *$.inputType|raw$) (
|
|||||||
$if .namespaced$Namespace(c.ns).$end$
|
$if .namespaced$Namespace(c.ns).$end$
|
||||||
Resource("$.type|resource$").
|
Resource("$.type|resource$").
|
||||||
Body($.inputType|private$).
|
Body($.inputType|private$).
|
||||||
Do().
|
Do(context.TODO()).
|
||||||
Into(result)
|
Into(result)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@ -526,7 +526,7 @@ func (c *$.type|privatePlural$) Update($.type|private$Name string, $.inputType|p
|
|||||||
Name($.type|private$Name).
|
Name($.type|private$Name).
|
||||||
SubResource("$.subresourcePath$").
|
SubResource("$.subresourcePath$").
|
||||||
Body($.inputType|private$).
|
Body($.inputType|private$).
|
||||||
Do().
|
Do(context.TODO()).
|
||||||
Into(result)
|
Into(result)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@ -541,7 +541,7 @@ func (c *$.type|privatePlural$) Update($.inputType|private$ *$.inputType|raw$) (
|
|||||||
Resource("$.type|resource$").
|
Resource("$.type|resource$").
|
||||||
Name($.inputType|private$.Name).
|
Name($.inputType|private$.Name).
|
||||||
Body($.inputType|private$).
|
Body($.inputType|private$).
|
||||||
Do().
|
Do(context.TODO()).
|
||||||
Into(result)
|
Into(result)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@ -559,7 +559,7 @@ func (c *$.type|privatePlural$) UpdateStatus($.type|private$ *$.type|raw$) (resu
|
|||||||
Name($.type|private$.Name).
|
Name($.type|private$.Name).
|
||||||
SubResource("status").
|
SubResource("status").
|
||||||
Body($.type|private$).
|
Body($.type|private$).
|
||||||
Do().
|
Do(context.TODO()).
|
||||||
Into(result)
|
Into(result)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@ -578,7 +578,7 @@ func (c *$.type|privatePlural$) Watch(opts $.ListOptions|raw$) ($.watchInterface
|
|||||||
Resource("$.type|resource$").
|
Resource("$.type|resource$").
|
||||||
VersionedParams(&opts, $.schemeParameterCodec|raw$).
|
VersionedParams(&opts, $.schemeParameterCodec|raw$).
|
||||||
Timeout(timeout).
|
Timeout(timeout).
|
||||||
Watch()
|
Watch(context.TODO())
|
||||||
}
|
}
|
||||||
`
|
`
|
||||||
|
|
||||||
@ -592,7 +592,7 @@ func (c *$.type|privatePlural$) Patch(name string, pt $.PatchType|raw$, data []b
|
|||||||
SubResource(subresources...).
|
SubResource(subresources...).
|
||||||
Name(name).
|
Name(name).
|
||||||
Body(data).
|
Body(data).
|
||||||
Do().
|
Do(context.TODO()).
|
||||||
Into(result)
|
Into(result)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user