fake

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2021 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 FakeControllerConfigs

type FakeControllerConfigs struct {
	Fake *FakePkgV1alpha1
}

FakeControllerConfigs implements ControllerConfigInterface

func (*FakeControllerConfigs) Create

func (c *FakeControllerConfigs) Create(ctx context.Context, controllerConfig *v1alpha1.ControllerConfig, opts v1.CreateOptions) (result *v1alpha1.ControllerConfig, err error)

Create takes the representation of a controllerConfig and creates it. Returns the server's representation of the controllerConfig, and an error, if there is any.

func (*FakeControllerConfigs) Delete

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

Delete takes name of the controllerConfig and deletes it. Returns an error if one occurs.

func (*FakeControllerConfigs) DeleteCollection

func (c *FakeControllerConfigs) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeControllerConfigs) Get

func (c *FakeControllerConfigs) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.ControllerConfig, err error)

Get takes name of the controllerConfig, and returns the corresponding controllerConfig object, and an error if there is any.

func (*FakeControllerConfigs) List

List takes label and field selectors, and returns the list of ControllerConfigs that match those selectors.

func (*FakeControllerConfigs) Patch

func (c *FakeControllerConfigs) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.ControllerConfig, err error)

Patch applies the patch and returns the patched controllerConfig.

func (*FakeControllerConfigs) Update

func (c *FakeControllerConfigs) Update(ctx context.Context, controllerConfig *v1alpha1.ControllerConfig, opts v1.UpdateOptions) (result *v1alpha1.ControllerConfig, err error)

Update takes the representation of a controllerConfig and updates it. Returns the server's representation of the controllerConfig, and an error, if there is any.

func (*FakeControllerConfigs) Watch

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

type FakeLocks

type FakeLocks struct {
	Fake *FakePkgV1alpha1
}

FakeLocks implements LockInterface

func (*FakeLocks) Create

func (c *FakeLocks) Create(ctx context.Context, lock *v1alpha1.Lock, opts v1.CreateOptions) (result *v1alpha1.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

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

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 *v1alpha1.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 *v1alpha1.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 *v1alpha1.Lock, err error)

Patch applies the patch and returns the patched lock.

func (*FakeLocks) Update

func (c *FakeLocks) Update(ctx context.Context, lock *v1alpha1.Lock, opts v1.UpdateOptions) (result *v1alpha1.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

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

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

type FakePkgV1alpha1

type FakePkgV1alpha1 struct {
	*testing.Fake
}

func (*FakePkgV1alpha1) ControllerConfigs

func (c *FakePkgV1alpha1) ControllerConfigs() v1alpha1.ControllerConfigInterface

func (*FakePkgV1alpha1) Locks

func (*FakePkgV1alpha1) RESTClient

func (c *FakePkgV1alpha1) 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