fake

package
v3.8.0 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2018 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 FakeApps

type FakeApps struct {
	*testing.Fake
}

func (*FakeApps) DeploymentConfigs

func (c *FakeApps) DeploymentConfigs(namespace string) internalversion.DeploymentConfigInterface

func (*FakeApps) RESTClient

func (c *FakeApps) 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 *FakeApps
	// contains filtered or unexported fields
}

FakeDeploymentConfigs implements DeploymentConfigInterface

func (*FakeDeploymentConfigs) Create

func (c *FakeDeploymentConfigs) Create(deploymentConfig *apps.DeploymentConfig) (result *apps.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

func (c *FakeDeploymentConfigs) Delete(name string, options *v1.DeleteOptions) error

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

func (*FakeDeploymentConfigs) DeleteCollection

func (c *FakeDeploymentConfigs) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeDeploymentConfigs) Get

func (c *FakeDeploymentConfigs) Get(name string, options v1.GetOptions) (result *apps.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(deploymentConfigName string, options v1.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(deploymentConfigName string, deploymentRequest *apps.DeploymentRequest) (result *apps.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

func (c *FakeDeploymentConfigs) List(opts v1.ListOptions) (result *apps.DeploymentConfigList, err error)

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

func (*FakeDeploymentConfigs) Patch

func (c *FakeDeploymentConfigs) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *apps.DeploymentConfig, err error)

Patch applies the patch and returns the patched deploymentConfig.

func (*FakeDeploymentConfigs) Rollback

func (c *FakeDeploymentConfigs) Rollback(deploymentConfigName string, deploymentConfigRollback *apps.DeploymentConfigRollback) (result *apps.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(deploymentConfig *apps.DeploymentConfig) (result *apps.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(deploymentConfigName string, scale *v1beta1.Scale) (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 t

func (*FakeDeploymentConfigs) UpdateStatus

func (c *FakeDeploymentConfigs) UpdateStatus(deploymentConfig *apps.DeploymentConfig) (*apps.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