fake

package
v0.0.0-...-e789424 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 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 FakeBackends

type FakeBackends struct {
	Fake *FakeKubelightV1alpha1
	// contains filtered or unexported fields
}

FakeBackends implements BackendInterface

func (*FakeBackends) Create

func (c *FakeBackends) Create(ctx context.Context, backend *v1alpha1.Backend, opts v1.CreateOptions) (result *v1alpha1.Backend, err error)

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

func (*FakeBackends) Delete

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

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

func (*FakeBackends) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeBackends) Get

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

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

func (*FakeBackends) List

func (c *FakeBackends) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.BackendList, err error)

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

func (*FakeBackends) Patch

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

Patch applies the patch and returns the patched backend.

func (*FakeBackends) Update

func (c *FakeBackends) Update(ctx context.Context, backend *v1alpha1.Backend, opts v1.UpdateOptions) (result *v1alpha1.Backend, err error)

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

func (*FakeBackends) UpdateStatus

func (c *FakeBackends) UpdateStatus(ctx context.Context, backend *v1alpha1.Backend, opts v1.UpdateOptions) (*v1alpha1.Backend, error)

UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().

func (*FakeBackends) Watch

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

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

type FakeKubelightV1alpha1

type FakeKubelightV1alpha1 struct {
	*testing.Fake
}

func (*FakeKubelightV1alpha1) Backends

func (c *FakeKubelightV1alpha1) Backends(namespace string) v1alpha1.BackendInterface

func (*FakeKubelightV1alpha1) Pools

func (c *FakeKubelightV1alpha1) Pools(namespace string) v1alpha1.PoolInterface

func (*FakeKubelightV1alpha1) RESTClient

func (c *FakeKubelightV1alpha1) RESTClient() rest.Interface

RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.

type FakePools

type FakePools struct {
	Fake *FakeKubelightV1alpha1
	// contains filtered or unexported fields
}

FakePools implements PoolInterface

func (*FakePools) Create

func (c *FakePools) Create(ctx context.Context, pool *v1alpha1.Pool, opts v1.CreateOptions) (result *v1alpha1.Pool, err error)

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

func (*FakePools) Delete

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

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

func (*FakePools) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakePools) Get

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

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

func (*FakePools) List

func (c *FakePools) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.PoolList, err error)

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

func (*FakePools) Patch

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

Patch applies the patch and returns the patched pool.

func (*FakePools) Update

func (c *FakePools) Update(ctx context.Context, pool *v1alpha1.Pool, opts v1.UpdateOptions) (result *v1alpha1.Pool, err error)

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

func (*FakePools) UpdateStatus

func (c *FakePools) UpdateStatus(ctx context.Context, pool *v1alpha1.Pool, opts v1.UpdateOptions) (*v1alpha1.Pool, error)

UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().

func (*FakePools) Watch

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

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

Jump to

Keyboard shortcuts

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