fake

package
v1.6.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 6, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package fake has the automatically generated clients.

Index

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

func (c *FakeLocks) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error

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.

func (*FakeLocks) Watch added in v1.4.0

func (c *FakeLocks) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)

Watch returns a watch.Interface that watches the requested locks.

type FakePkgV1beta1

type FakePkgV1beta1 struct {
	*testing.Fake
}

func (*FakePkgV1beta1) Locks added in v1.4.0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL