Version: v0.4.1 Latest Latest

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

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



Package fake has the automatically generated clients.



This section is empty.


This section is empty.


This section is empty.


type FakeGuardV1alpha1

type FakeGuardV1alpha1 struct {

func (*FakeGuardV1alpha1) Guardians

func (c *FakeGuardV1alpha1) Guardians(namespace string) v1alpha1.GuardianInterface

func (*FakeGuardV1alpha1) RESTClient

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

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

type FakeGuardians

type FakeGuardians struct {
	Fake *FakeGuardV1alpha1
	// contains filtered or unexported fields

FakeGuardians implements GuardianInterface

func (*FakeGuardians) Create

func (c *FakeGuardians) Create(ctx context.Context, guardian *v1alpha1.Guardian, opts v1.CreateOptions) (result *v1alpha1.Guardian, err error)

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

func (*FakeGuardians) Delete

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

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

func (*FakeGuardians) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeGuardians) Get

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

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

func (*FakeGuardians) List

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

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

func (*FakeGuardians) Patch

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

Patch applies the patch and returns the patched guardian.

func (*FakeGuardians) Update

func (c *FakeGuardians) Update(ctx context.Context, guardian *v1alpha1.Guardian, opts v1.UpdateOptions) (result *v1alpha1.Guardian, err error)

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

func (*FakeGuardians) Watch

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

Jump to

Keyboard shortcuts

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