package deployment
import "k8s.io/kubernetes/pkg/registry/extensions/deployment"
Index ¶
Variables ¶
var StatusStrategy = deploymentStatusStrategy{Strategy}
var Strategy = deploymentStrategy{legacyscheme.Scheme, names.SimpleNameGenerator}
Strategy is the default logic that applies when creating and updating Deployment objects via the REST API.
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, createValidation rest.ValidateObjectFunc) (*extensions.Deployment, error) UpdateDeployment(ctx genericapirequest.Context, deployment *extensions.Deployment, createValidation rest.ValidateObjectFunc, updateValidation rest.ValidateObjectUpdateFunc) (*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.
Source Files ¶
doc.go registry.go strategy.go
Directories ¶
Path | Synopsis |
---|---|
pkg/registry/extensions/deployment/storage |
- Version
- v1.9.1
- Published
- Jan 3, 2018
- Platform
- js/wasm
- Imports
- 18 packages
- Last checked
- 4 minutes ago –
Tools for package owners.