fake

package
v1.11.3 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: Apache-2.0 Imports: 9 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 *FakeCoreV1alpha2
	// contains filtered or unexported fields
}

FakeBackends implements BackendInterface

func (*FakeBackends) Create

func (c *FakeBackends) Create(ctx context.Context, backend *v1alpha2.Backend, opts v1.CreateOptions) (result *v1alpha2.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 *v1alpha2.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 *v1alpha2.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 *v1alpha2.Backend, err error)

Patch applies the patch and returns the patched backend.

func (*FakeBackends) Update

func (c *FakeBackends) Update(ctx context.Context, backend *v1alpha2.Backend, opts v1.UpdateOptions) (result *v1alpha2.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) 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 FakeCoreV1alpha2

type FakeCoreV1alpha2 struct {
	*testing.Fake
}

func (*FakeCoreV1alpha2) Backends

func (c *FakeCoreV1alpha2) Backends(namespace string) v1alpha2.BackendInterface

func (*FakeCoreV1alpha2) Defaults

func (c *FakeCoreV1alpha2) Defaults(namespace string) v1alpha2.DefaultsInterface

func (*FakeCoreV1alpha2) Globals

func (c *FakeCoreV1alpha2) Globals(namespace string) v1alpha2.GlobalInterface

func (*FakeCoreV1alpha2) RESTClient

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

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

type FakeDefaults

type FakeDefaults struct {
	Fake *FakeCoreV1alpha2
	// contains filtered or unexported fields
}

FakeDefaults implements DefaultsInterface

func (*FakeDefaults) Create

func (c *FakeDefaults) Create(ctx context.Context, defaults *v1alpha2.Defaults, opts v1.CreateOptions) (result *v1alpha2.Defaults, err error)

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

func (*FakeDefaults) Delete

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

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

func (*FakeDefaults) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeDefaults) Get

func (c *FakeDefaults) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha2.Defaults, err error)

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

func (*FakeDefaults) List

func (c *FakeDefaults) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha2.DefaultsList, err error)

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

func (*FakeDefaults) Patch

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

Patch applies the patch and returns the patched defaults.

func (*FakeDefaults) Update

func (c *FakeDefaults) Update(ctx context.Context, defaults *v1alpha2.Defaults, opts v1.UpdateOptions) (result *v1alpha2.Defaults, err error)

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

func (*FakeDefaults) Watch

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

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

type FakeGlobals

type FakeGlobals struct {
	Fake *FakeCoreV1alpha2
	// contains filtered or unexported fields
}

FakeGlobals implements GlobalInterface

func (*FakeGlobals) Create

func (c *FakeGlobals) Create(ctx context.Context, global *v1alpha2.Global, opts v1.CreateOptions) (result *v1alpha2.Global, err error)

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

func (*FakeGlobals) Delete

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

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

func (*FakeGlobals) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeGlobals) Get

func (c *FakeGlobals) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha2.Global, err error)

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

func (*FakeGlobals) List

func (c *FakeGlobals) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha2.GlobalList, err error)

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

func (*FakeGlobals) Patch

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

Patch applies the patch and returns the patched global.

func (*FakeGlobals) Update

func (c *FakeGlobals) Update(ctx context.Context, global *v1alpha2.Global, opts v1.UpdateOptions) (result *v1alpha2.Global, err error)

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

func (*FakeGlobals) Watch

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

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

Jump to

Keyboard shortcuts

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