fake

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 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 FakeKubevaultV1alpha2

type FakeKubevaultV1alpha2 struct {
	*testing.Fake
}

func (*FakeKubevaultV1alpha2) RESTClient

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

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

func (*FakeKubevaultV1alpha2) VaultServers

func (c *FakeKubevaultV1alpha2) VaultServers(namespace string) v1alpha2.VaultServerInterface

type FakeVaultServers

type FakeVaultServers struct {
	Fake *FakeKubevaultV1alpha2
	// contains filtered or unexported fields
}

FakeVaultServers implements VaultServerInterface

func (*FakeVaultServers) Create

func (c *FakeVaultServers) Create(ctx context.Context, vaultServer *v1alpha2.VaultServer, opts v1.CreateOptions) (result *v1alpha2.VaultServer, err error)

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

func (*FakeVaultServers) Delete

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

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

func (*FakeVaultServers) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeVaultServers) Get

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

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

func (*FakeVaultServers) List

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

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

func (*FakeVaultServers) Patch

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

Patch applies the patch and returns the patched vaultServer.

func (*FakeVaultServers) Update

func (c *FakeVaultServers) Update(ctx context.Context, vaultServer *v1alpha2.VaultServer, opts v1.UpdateOptions) (result *v1alpha2.VaultServer, err error)

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

func (*FakeVaultServers) UpdateStatus

func (c *FakeVaultServers) UpdateStatus(ctx context.Context, vaultServer *v1alpha2.VaultServer, opts v1.UpdateOptions) (*v1alpha2.VaultServer, error)

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

func (*FakeVaultServers) Watch

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

Jump to

Keyboard shortcuts

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