fake

package
v0.0.0-...-a8dad97 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2022 License: MIT 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 FakeClusterConfigMaps

type FakeClusterConfigMaps struct {
	Fake *FakeClusterconfigsV1alpha1
	// contains filtered or unexported fields
}

FakeClusterConfigMaps implements ClusterConfigMapInterface

func (*FakeClusterConfigMaps) Create

func (c *FakeClusterConfigMaps) Create(ctx context.Context, clusterConfigMap *v1alpha1.ClusterConfigMap, opts v1.CreateOptions) (result *v1alpha1.ClusterConfigMap, err error)

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

func (*FakeClusterConfigMaps) Delete

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

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

func (*FakeClusterConfigMaps) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeClusterConfigMaps) Get

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

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

func (*FakeClusterConfigMaps) List

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

func (*FakeClusterConfigMaps) Patch

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

Patch applies the patch and returns the patched clusterConfigMap.

func (*FakeClusterConfigMaps) Update

func (c *FakeClusterConfigMaps) Update(ctx context.Context, clusterConfigMap *v1alpha1.ClusterConfigMap, opts v1.UpdateOptions) (result *v1alpha1.ClusterConfigMap, err error)

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

func (*FakeClusterConfigMaps) Watch

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

type FakeClusterSecrets

type FakeClusterSecrets struct {
	Fake *FakeClusterconfigsV1alpha1
	// contains filtered or unexported fields
}

FakeClusterSecrets implements ClusterSecretInterface

func (*FakeClusterSecrets) Create

func (c *FakeClusterSecrets) Create(ctx context.Context, clusterSecret *v1alpha1.ClusterSecret, opts v1.CreateOptions) (result *v1alpha1.ClusterSecret, err error)

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

func (*FakeClusterSecrets) Delete

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

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

func (*FakeClusterSecrets) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeClusterSecrets) Get

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

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

func (*FakeClusterSecrets) List

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

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

func (*FakeClusterSecrets) Patch

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

Patch applies the patch and returns the patched clusterSecret.

func (*FakeClusterSecrets) Update

func (c *FakeClusterSecrets) Update(ctx context.Context, clusterSecret *v1alpha1.ClusterSecret, opts v1.UpdateOptions) (result *v1alpha1.ClusterSecret, err error)

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

func (*FakeClusterSecrets) Watch

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

type FakeClusterconfigsV1alpha1

type FakeClusterconfigsV1alpha1 struct {
	*testing.Fake
}

func (*FakeClusterconfigsV1alpha1) ClusterConfigMaps

func (c *FakeClusterconfigsV1alpha1) ClusterConfigMaps(namespace string) v1alpha1.ClusterConfigMapInterface

func (*FakeClusterconfigsV1alpha1) ClusterSecrets

func (*FakeClusterconfigsV1alpha1) RESTClient

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