fake

package
v0.29.0 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2023 License: Apache-2.0 Imports: 13 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 FakeAppsV1

type FakeAppsV1 struct {
	*testing.Fake
}

func (*FakeAppsV1) DeploymentConfigs

func (c *FakeAppsV1) DeploymentConfigs(namespace string) v1.DeploymentConfigInterface

func (*FakeAppsV1) RESTClient

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

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

type FakeDeploymentConfigs

type FakeDeploymentConfigs struct {
	Fake *FakeAppsV1
	// contains filtered or unexported fields
}

FakeDeploymentConfigs implements DeploymentConfigInterface

func (*FakeDeploymentConfigs) Apply added in v0.29.0

Apply takes the given apply declarative configuration, applies it and returns the applied deploymentConfig.

func (*FakeDeploymentConfigs) ApplyStatus added in v0.29.0

func (c *FakeDeploymentConfigs) ApplyStatus(ctx context.Context, deploymentConfig *appsv1.DeploymentConfigApplyConfiguration, opts metav1.ApplyOptions) (result *v1.DeploymentConfig, err error)

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

func (*FakeDeploymentConfigs) Create

func (c *FakeDeploymentConfigs) Create(ctx context.Context, deploymentConfig *v1.DeploymentConfig, opts metav1.CreateOptions) (result *v1.DeploymentConfig, err error)

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

func (*FakeDeploymentConfigs) Delete

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

func (*FakeDeploymentConfigs) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeDeploymentConfigs) Get

func (c *FakeDeploymentConfigs) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.DeploymentConfig, err error)

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

func (*FakeDeploymentConfigs) GetScale

func (c *FakeDeploymentConfigs) GetScale(ctx context.Context, deploymentConfigName string, options metav1.GetOptions) (result *v1beta1.Scale, err error)

GetScale takes name of the deploymentConfig, and returns the corresponding scale object, and an error if there is any.

func (*FakeDeploymentConfigs) Instantiate

func (c *FakeDeploymentConfigs) Instantiate(ctx context.Context, deploymentConfigName string, deploymentRequest *v1.DeploymentRequest, opts metav1.CreateOptions) (result *v1.DeploymentConfig, err error)

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

func (*FakeDeploymentConfigs) List

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

func (*FakeDeploymentConfigs) Patch

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

Patch applies the patch and returns the patched deploymentConfig.

func (*FakeDeploymentConfigs) Rollback

func (c *FakeDeploymentConfigs) Rollback(ctx context.Context, deploymentConfigName string, deploymentConfigRollback *v1.DeploymentConfigRollback, opts metav1.CreateOptions) (result *v1.DeploymentConfig, err error)

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

func (*FakeDeploymentConfigs) Update

func (c *FakeDeploymentConfigs) Update(ctx context.Context, deploymentConfig *v1.DeploymentConfig, opts metav1.UpdateOptions) (result *v1.DeploymentConfig, err error)

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

func (*FakeDeploymentConfigs) UpdateScale

func (c *FakeDeploymentConfigs) UpdateScale(ctx context.Context, deploymentConfigName string, scale *v1beta1.Scale, opts metav1.UpdateOptions) (result *v1beta1.Scale, err error)

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

func (*FakeDeploymentConfigs) UpdateStatus

func (c *FakeDeploymentConfigs) UpdateStatus(ctx context.Context, deploymentConfig *v1.DeploymentConfig, opts metav1.UpdateOptions) (*v1.DeploymentConfig, error)

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

func (*FakeDeploymentConfigs) Watch

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

Jump to

Keyboard shortcuts

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