deployment

package
v1.6.12-beta.0 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2017 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var StatusStrategy = deploymentStatusStrategy{Strategy}
View Source
var Strategy = deploymentStrategy{api.Scheme, names.SimpleNameGenerator}

Strategy is the default logic that applies when creating and updating Deployment objects via the REST API.

Functions

func DeploymentToSelectableFields

func DeploymentToSelectableFields(deployment *extensions.Deployment) fields.Set

DeploymentToSelectableFields returns a field set that represents the object.

func GetAttrs added in v1.6.0

func GetAttrs(obj runtime.Object) (labels.Set, fields.Set, error)

GetAttrs returns labels and fields of a given object for filtering purposes.

func MatchDeployment

func MatchDeployment(label labels.Selector, field fields.Selector) apistorage.SelectionPredicate

MatchDeployment is the filter used by the generic etcd backend to route watch events from etcd to clients of the apiserver only interested in specific labels/fields.

Types

type Registry

type Registry interface {
	ListDeployments(ctx genericapirequest.Context, options *metainternalversion.ListOptions) (*extensions.DeploymentList, error)
	GetDeployment(ctx genericapirequest.Context, deploymentID string, options *metav1.GetOptions) (*extensions.Deployment, error)
	CreateDeployment(ctx genericapirequest.Context, deployment *extensions.Deployment) (*extensions.Deployment, error)
	UpdateDeployment(ctx genericapirequest.Context, deployment *extensions.Deployment) (*extensions.Deployment, error)
	DeleteDeployment(ctx genericapirequest.Context, deploymentID string) error
}

Registry is an interface for things that know how to store Deployments.

func NewRegistry

func NewRegistry(s rest.StandardStorage) Registry

NewRegistry returns a new Registry interface for the given Storage. Any mismatched types will panic.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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