Documentation ¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakeLocks
- func (c *FakeLocks) Create(ctx context.Context, lock *v1beta1.Lock, opts v1.CreateOptions) (result *v1beta1.Lock, err error)
- func (c *FakeLocks) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeLocks) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeLocks) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.Lock, err error)
- func (c *FakeLocks) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.LockList, err error)
- func (c *FakeLocks) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v1beta1.Lock, err error)
- func (c *FakeLocks) Update(ctx context.Context, lock *v1beta1.Lock, opts v1.UpdateOptions) (result *v1beta1.Lock, err error)
- func (c *FakeLocks) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakePkgV1beta1
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeLocks ¶ added in v1.4.0
type FakeLocks struct {
Fake *FakePkgV1beta1
}
FakeLocks implements LockInterface
func (*FakeLocks) Create ¶ added in v1.4.0
func (c *FakeLocks) Create(ctx context.Context, lock *v1beta1.Lock, opts v1.CreateOptions) (result *v1beta1.Lock, err error)
Create takes the representation of a lock and creates it. Returns the server's representation of the lock, and an error, if there is any.
func (*FakeLocks) Delete ¶ added in v1.4.0
Delete takes name of the lock and deletes it. Returns an error if one occurs.
func (*FakeLocks) DeleteCollection ¶ added in v1.4.0
func (c *FakeLocks) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeLocks) Get ¶ added in v1.4.0
func (c *FakeLocks) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.Lock, err error)
Get takes name of the lock, and returns the corresponding lock object, and an error if there is any.
func (*FakeLocks) List ¶ added in v1.4.0
func (c *FakeLocks) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.LockList, err error)
List takes label and field selectors, and returns the list of Locks that match those selectors.
func (*FakeLocks) Patch ¶ added in v1.4.0
func (c *FakeLocks) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.Lock, err error)
Patch applies the patch and returns the patched lock.
func (*FakeLocks) Update ¶ added in v1.4.0
func (c *FakeLocks) Update(ctx context.Context, lock *v1beta1.Lock, opts v1.UpdateOptions) (result *v1beta1.Lock, err error)
Update takes the representation of a lock and updates it. Returns the server's representation of the lock, and an error, if there is any.
type FakePkgV1beta1 ¶
func (*FakePkgV1beta1) Locks ¶ added in v1.4.0
func (c *FakePkgV1beta1) Locks() v1beta1.LockInterface
func (*FakePkgV1beta1) RESTClient ¶
func (c *FakePkgV1beta1) RESTClient() rest.Interface
RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.