fake

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 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 FakeSecretExports

type FakeSecretExports struct {
	Fake *FakeSecretgenV1alpha1
	// contains filtered or unexported fields
}

FakeSecretExports implements SecretExportInterface

func (*FakeSecretExports) Create

func (c *FakeSecretExports) Create(ctx context.Context, secretExport *v1alpha1.SecretExport, opts v1.CreateOptions) (result *v1alpha1.SecretExport, err error)

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

func (*FakeSecretExports) Delete

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

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

func (*FakeSecretExports) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeSecretExports) Get

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

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

func (*FakeSecretExports) List

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

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

func (*FakeSecretExports) Patch

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

Patch applies the patch and returns the patched secretExport.

func (*FakeSecretExports) Update

func (c *FakeSecretExports) Update(ctx context.Context, secretExport *v1alpha1.SecretExport, opts v1.UpdateOptions) (result *v1alpha1.SecretExport, err error)

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

func (*FakeSecretExports) UpdateStatus

func (c *FakeSecretExports) UpdateStatus(ctx context.Context, secretExport *v1alpha1.SecretExport, opts v1.UpdateOptions) (*v1alpha1.SecretExport, error)

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

func (*FakeSecretExports) Watch

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

type FakeSecretImports

type FakeSecretImports struct {
	Fake *FakeSecretgenV1alpha1
	// contains filtered or unexported fields
}

FakeSecretImports implements SecretImportInterface

func (*FakeSecretImports) Create

func (c *FakeSecretImports) Create(ctx context.Context, secretImport *v1alpha1.SecretImport, opts v1.CreateOptions) (result *v1alpha1.SecretImport, err error)

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

func (*FakeSecretImports) Delete

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

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

func (*FakeSecretImports) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeSecretImports) Get

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

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

func (*FakeSecretImports) List

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

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

func (*FakeSecretImports) Patch

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

Patch applies the patch and returns the patched secretImport.

func (*FakeSecretImports) Update

func (c *FakeSecretImports) Update(ctx context.Context, secretImport *v1alpha1.SecretImport, opts v1.UpdateOptions) (result *v1alpha1.SecretImport, err error)

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

func (*FakeSecretImports) UpdateStatus

func (c *FakeSecretImports) UpdateStatus(ctx context.Context, secretImport *v1alpha1.SecretImport, opts v1.UpdateOptions) (*v1alpha1.SecretImport, error)

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

func (*FakeSecretImports) Watch

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

type FakeSecretTemplates

type FakeSecretTemplates struct {
	Fake *FakeSecretgenV1alpha1
	// contains filtered or unexported fields
}

FakeSecretTemplates implements SecretTemplateInterface

func (*FakeSecretTemplates) Create

func (c *FakeSecretTemplates) Create(ctx context.Context, secretTemplate *v1alpha1.SecretTemplate, opts v1.CreateOptions) (result *v1alpha1.SecretTemplate, err error)

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

func (*FakeSecretTemplates) Delete

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

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

func (*FakeSecretTemplates) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeSecretTemplates) Get

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

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

func (*FakeSecretTemplates) List

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

func (*FakeSecretTemplates) Patch

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

Patch applies the patch and returns the patched secretTemplate.

func (*FakeSecretTemplates) Update

func (c *FakeSecretTemplates) Update(ctx context.Context, secretTemplate *v1alpha1.SecretTemplate, opts v1.UpdateOptions) (result *v1alpha1.SecretTemplate, err error)

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

func (*FakeSecretTemplates) UpdateStatus

func (c *FakeSecretTemplates) UpdateStatus(ctx context.Context, secretTemplate *v1alpha1.SecretTemplate, opts v1.UpdateOptions) (*v1alpha1.SecretTemplate, error)

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

func (*FakeSecretTemplates) Watch

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

type FakeSecretgenV1alpha1

type FakeSecretgenV1alpha1 struct {
	*testing.Fake
}

func (*FakeSecretgenV1alpha1) RESTClient

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

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

func (*FakeSecretgenV1alpha1) SecretExports

func (c *FakeSecretgenV1alpha1) SecretExports(namespace string) v1alpha1.SecretExportInterface

func (*FakeSecretgenV1alpha1) SecretImports

func (c *FakeSecretgenV1alpha1) SecretImports(namespace string) v1alpha1.SecretImportInterface

func (*FakeSecretgenV1alpha1) SecretTemplates

func (c *FakeSecretgenV1alpha1) SecretTemplates(namespace string) v1alpha1.SecretTemplateInterface

Jump to

Keyboard shortcuts

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