package deployment
import "k8s.io/kubernetes/pkg/registry/deployment"
Index ¶
- Variables
- func DeploymentToSelectableFields(deployment *extensions.Deployment) fields.Set
- func MatchDeployment(label labels.Selector, field fields.Selector) apistorage.SelectionPredicate
- type Registry
Variables ¶
var StatusStrategy = deploymentStatusStrategy{Strategy}
var Strategy = deploymentStrategy{api.Scheme, api.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 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 api.Context, options *api.ListOptions) (*extensions.DeploymentList, error) GetDeployment(ctx api.Context, deploymentID string) (*extensions.Deployment, error) CreateDeployment(ctx api.Context, deployment *extensions.Deployment) (*extensions.Deployment, error) UpdateDeployment(ctx api.Context, deployment *extensions.Deployment) (*extensions.Deployment, error) DeleteDeployment(ctx api.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.
Source Files ¶
doc.go registry.go strategy.go
Directories ¶
Path | Synopsis |
---|---|
pkg/registry/deployment/etcd |
- Version
- v1.4.12
- Published
- Apr 20, 2017
- Platform
- js/wasm
- Imports
- 15 packages
- Last checked
- 57 seconds ago –
Tools for package owners.