Update godeps
This commit is contained in:
parent
8b25cc67a5
commit
a736fba0e1
769 changed files with 15495 additions and 7996 deletions
13
vendor/k8s.io/kubernetes/pkg/client/unversioned/nodes.go
generated
vendored
13
vendor/k8s.io/kubernetes/pkg/client/unversioned/nodes.go
generated
vendored
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
Copyright 2014 The Kubernetes Authors All rights reserved.
|
||||
Copyright 2014 The Kubernetes Authors.
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
|
|
@ -30,6 +30,7 @@ type NodeInterface interface {
|
|||
Create(node *api.Node) (*api.Node, error)
|
||||
List(opts api.ListOptions) (*api.NodeList, error)
|
||||
Delete(name string) error
|
||||
DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error
|
||||
Update(*api.Node) (*api.Node, error)
|
||||
UpdateStatus(*api.Node) (*api.Node, error)
|
||||
Watch(opts api.ListOptions) (watch.Interface, error)
|
||||
|
|
@ -76,6 +77,16 @@ func (c *nodes) Delete(name string) error {
|
|||
return c.r.Delete().Resource(c.resourceName()).Name(name).Do().Error()
|
||||
}
|
||||
|
||||
// DeleteCollection deletes a collection of nodes.
|
||||
func (c *nodes) DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error {
|
||||
return c.r.Delete().
|
||||
Resource(c.resourceName()).
|
||||
VersionedParams(&listOptions, api.ParameterCodec).
|
||||
Body(options).
|
||||
Do().
|
||||
Error()
|
||||
}
|
||||
|
||||
// Update updates an existing node.
|
||||
func (c *nodes) Update(node *api.Node) (*api.Node, error) {
|
||||
result := &api.Node{}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue