Documentation
¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakeLocks
- func (c *FakeLocks) Create(ctx context.Context, lock *lockv1.Lock, opts v1.CreateOptions) (result *lockv1.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 *lockv1.Lock, err error)
- func (c *FakeLocks) List(ctx context.Context, opts v1.ListOptions) (result *lockv1.LockList, err error)
- func (c *FakeLocks) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *lockv1.Lock, err error)
- func (c *FakeLocks) Update(ctx context.Context, lock *lockv1.Lock, opts v1.UpdateOptions) (result *lockv1.Lock, err error)
- func (c *FakeLocks) UpdateStatus(ctx context.Context, lock *lockv1.Lock, opts v1.UpdateOptions) (*lockv1.Lock, error)
- func (c *FakeLocks) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeLocksV1
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeLocks ¶
type FakeLocks struct { Fake *FakeLocksV1 // contains filtered or unexported fields }
FakeLocks implements LockInterface
func (*FakeLocks) Create ¶
func (c *FakeLocks) Create(ctx context.Context, lock *lockv1.Lock, opts v1.CreateOptions) (result *lockv1.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 ¶
Delete takes name of the lock and deletes it. Returns an error if one occurs.
func (*FakeLocks) DeleteCollection ¶
func (c *FakeLocks) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeLocks) Get ¶
func (c *FakeLocks) Get(ctx context.Context, name string, options v1.GetOptions) (result *lockv1.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 ¶
func (c *FakeLocks) List(ctx context.Context, opts v1.ListOptions) (result *lockv1.LockList, err error)
List takes label and field selectors, and returns the list of Locks that match those selectors.
func (*FakeLocks) Patch ¶
func (c *FakeLocks) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *lockv1.Lock, err error)
Patch applies the patch and returns the patched lock.
func (*FakeLocks) Update ¶
func (c *FakeLocks) Update(ctx context.Context, lock *lockv1.Lock, opts v1.UpdateOptions) (result *lockv1.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.
func (*FakeLocks) UpdateStatus ¶
func (c *FakeLocks) UpdateStatus(ctx context.Context, lock *lockv1.Lock, opts v1.UpdateOptions) (*lockv1.Lock, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
type FakeLocksV1 ¶
func (*FakeLocksV1) Locks ¶
func (c *FakeLocksV1) Locks(namespace string) v1.LockInterface
func (*FakeLocksV1) RESTClient ¶
func (c *FakeLocksV1) RESTClient() rest.Interface
RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.