@@ -320,8 +320,8 @@ var defaultVerbTemplates = map[string]string{
320
320
"create" : `Create(ctx context.Context, $.inputType|private$ *$.inputType|raw$, opts $.CreateOptions|raw$) (*$.resultType|raw$, error)` ,
321
321
"update" : `Update(ctx context.Context, $.inputType|private$ *$.inputType|raw$, opts $.UpdateOptions|raw$) (*$.resultType|raw$, error)` ,
322
322
"updateStatus" : `UpdateStatus(ctx context.Context, $.inputType|private$ *$.type|raw$, opts $.UpdateOptions|raw$) (*$.type|raw$, error)` ,
323
- "delete" : `Delete(ctx context.Context, name string, opts * $.DeleteOptions|raw$) error` ,
324
- "deleteCollection" : `DeleteCollection(ctx context.Context, opts * $.DeleteOptions|raw$, listOpts $.ListOptions|raw$) error` ,
323
+ "delete" : `Delete(ctx context.Context, name string, opts $.DeleteOptions|raw$) error` ,
324
+ "deleteCollection" : `DeleteCollection(ctx context.Context, opts $.DeleteOptions|raw$, listOpts $.ListOptions|raw$) error` ,
325
325
"get" : `Get(ctx context.Context, name string, opts $.GetOptions|raw$) (*$.resultType|raw$, error)` ,
326
326
"list" : `List(ctx context.Context, opts $.ListOptions|raw$) (*$.resultType|raw$List, error)` ,
327
327
"watch" : `Watch(ctx context.Context, opts $.ListOptions|raw$) ($.watchInterface|raw$, error)` ,
@@ -463,30 +463,30 @@ func (c *$.type|privatePlural$) Get(ctx context.Context, $.type|private$Name str
463
463
464
464
var deleteTemplate = `
465
465
// Delete takes name of the $.type|private$ and deletes it. Returns an error if one occurs.
466
- func (c *$.type|privatePlural$) Delete(ctx context.Context, name string, options * $.DeleteOptions|raw$) error {
466
+ func (c *$.type|privatePlural$) Delete(ctx context.Context, name string, opts $.DeleteOptions|raw$) error {
467
467
return c.client.Delete().
468
468
$if .namespaced$Namespace(c.ns).$end$
469
469
Resource("$.type|resource$").
470
470
Name(name).
471
- Body(options ).
471
+ Body(&opts ).
472
472
Do(ctx).
473
473
Error()
474
474
}
475
475
`
476
476
477
477
var deleteCollectionTemplate = `
478
478
// DeleteCollection deletes a collection of objects.
479
- func (c *$.type|privatePlural$) DeleteCollection(ctx context.Context, options * $.DeleteOptions|raw$, listOptions $.ListOptions|raw$) error {
479
+ func (c *$.type|privatePlural$) DeleteCollection(ctx context.Context, opts $.DeleteOptions|raw$, listOpts $.ListOptions|raw$) error {
480
480
var timeout time.Duration
481
- if listOptions .TimeoutSeconds != nil{
482
- timeout = time.Duration(*listOptions .TimeoutSeconds) * time.Second
481
+ if listOpts .TimeoutSeconds != nil{
482
+ timeout = time.Duration(*listOpts .TimeoutSeconds) * time.Second
483
483
}
484
484
return c.client.Delete().
485
485
$if .namespaced$Namespace(c.ns).$end$
486
486
Resource("$.type|resource$").
487
- VersionedParams(&listOptions , $.schemeParameterCodec|raw$).
487
+ VersionedParams(&listOpts , $.schemeParameterCodec|raw$).
488
488
Timeout(timeout).
489
- Body(options ).
489
+ Body(&opts ).
490
490
Do(ctx).
491
491
Error()
492
492
}
0 commit comments