etcd

package
Version: v3.6.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2017 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewREST added in v1.1.2

func NewREST(optsGetter restoptions.Getter) (*REST, *StatusREST, *ScaleREST, error)

NewREST returns a deploymentConfigREST containing the REST storage for DeploymentConfig objects, a statusREST containing the REST storage for changing the status of a DeploymentConfig, and a scaleREST containing the REST storage for the Scale subresources of DeploymentConfigs.

Types

type REST

type REST struct {
	*registry.Store
}

REST contains the REST storage for DeploymentConfig objects.

type ScaleREST added in v1.0.8

type ScaleREST struct {
	// contains filtered or unexported fields
}

ScaleREST contains the REST storage for the Scale subresource of DeploymentConfigs.

func (*ScaleREST) Get added in v1.0.8

func (r *ScaleREST) Get(ctx apirequest.Context, name string, options *metav1.GetOptions) (runtime.Object, error)

Get retrieves (computes) the Scale subresource for the given DeploymentConfig name.

func (*ScaleREST) New added in v1.0.8

func (r *ScaleREST) New() runtime.Object

New creates a new Scale object

func (*ScaleREST) Update added in v1.0.8

func (r *ScaleREST) Update(ctx apirequest.Context, name string, objInfo rest.UpdatedObjectInfo) (runtime.Object, bool, error)

Update scales the DeploymentConfig for the given Scale subresource, returning the updated Scale.

type StatusREST added in v1.3.0

type StatusREST struct {
	// contains filtered or unexported fields
}

StatusREST implements the REST endpoint for changing the status of a DeploymentConfig.

func (*StatusREST) Get

func (r *StatusREST) Get(ctx apirequest.Context, name string, options *metav1.GetOptions) (runtime.Object, error)

Get retrieves the object from the storage. It is required to support Patch.

func (*StatusREST) New added in v1.3.0

func (r *StatusREST) New() runtime.Object

func (*StatusREST) Update added in v1.3.0

func (r *StatusREST) Update(ctx apirequest.Context, name string, objInfo rest.UpdatedObjectInfo) (runtime.Object, bool, error)

Update alters the status subset of an deploymentConfig.

Source Files

Jump to

Keyboard shortcuts

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