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 *FakeIngressV1
	// contains filtered or unexported fields
}

FakeBackends implements BackendInterface

func (*FakeBackends) Create

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

DeleteCollection deletes a collection of objects.

func (*FakeBackends) Get

func (c *FakeBackends) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.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 metav1.ListOptions) (result *v1.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 metav1.PatchOptions, subresources ...string) (result *v1.Backend, err error)

Patch applies the patch and returns the patched backend.

func (*FakeBackends) Update

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

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

type FakeDefaults

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

FakeDefaults implements DefaultsInterface

func (*FakeDefaults) Create

func (c *FakeDefaults) Create(ctx context.Context, defaults *v1.Defaults, opts metav1.CreateOptions) (result *v1.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 metav1.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 metav1.DeleteOptions, listOpts metav1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeDefaults) Get

func (c *FakeDefaults) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.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 metav1.ListOptions) (result *v1.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 metav1.PatchOptions, subresources ...string) (result *v1.Defaults, err error)

Patch applies the patch and returns the patched defaults.

func (*FakeDefaults) Update

func (c *FakeDefaults) Update(ctx context.Context, defaults *v1.Defaults, opts metav1.UpdateOptions) (result *v1.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

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

type FakeGlobals

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

FakeGlobals implements GlobalInterface

func (*FakeGlobals) Create

func (c *FakeGlobals) Create(ctx context.Context, global *v1.Global, opts metav1.CreateOptions) (result *v1.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 metav1.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 metav1.DeleteOptions, listOpts metav1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeGlobals) Get

func (c *FakeGlobals) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.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 metav1.ListOptions) (result *v1.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 metav1.PatchOptions, subresources ...string) (result *v1.Global, err error)

Patch applies the patch and returns the patched global.

func (*FakeGlobals) Update

func (c *FakeGlobals) Update(ctx context.Context, global *v1.Global, opts metav1.UpdateOptions) (result *v1.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

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

type FakeIngressV1

type FakeIngressV1 struct {
	*testing.Fake
}

func (*FakeIngressV1) Backends

func (c *FakeIngressV1) Backends(namespace string) v1.BackendInterface

func (*FakeIngressV1) Defaults

func (c *FakeIngressV1) Defaults(namespace string) v1.DefaultsInterface

func (*FakeIngressV1) Globals

func (c *FakeIngressV1) Globals(namespace string) v1.GlobalInterface

func (*FakeIngressV1) RESTClient

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