package etcd
import "k8s.io/kubernetes/pkg/registry/deployment/etcd"
Index ¶
- func NewREST(s storage.Interface, storageDecorator generic.StorageDecorator) (*REST, *StatusREST)
- type DeploymentStorage
- type REST
- type ScaleREST
- func (r *ScaleREST) Get(ctx api.Context, name string) (runtime.Object, error)
- func (r *ScaleREST) New() runtime.Object
- func (r *ScaleREST) Update(ctx api.Context, obj runtime.Object) (runtime.Object, bool, error)
- type StatusREST
Functions ¶
func NewREST ¶
func NewREST(s storage.Interface, storageDecorator generic.StorageDecorator) (*REST, *StatusREST)
NewREST returns a RESTStorage object that will work against deployments.
Types ¶
type DeploymentStorage ¶
type DeploymentStorage struct { Deployment *REST Status *StatusREST Scale *ScaleREST }
DeploymentStorage includes dummy storage for Deployments and for Scale subresource.
func NewStorage ¶
func NewStorage(s storage.Interface, storageDecorator generic.StorageDecorator) DeploymentStorage
type REST ¶
type REST struct { *etcdgeneric.Etcd }
type ScaleREST ¶
type ScaleREST struct {
// contains filtered or unexported fields
}
func (*ScaleREST) Get ¶
func (*ScaleREST) New ¶
New creates a new Scale object
func (*ScaleREST) Update ¶
type StatusREST ¶
type StatusREST struct {
// contains filtered or unexported fields
}
StatusREST implements the REST endpoint for changing the status of a deployment
func (*StatusREST) New ¶
func (r *StatusREST) New() runtime.Object
func (*StatusREST) Update ¶
Update alters the status subset of an object.
Source Files ¶
etcd.go
- Version
- v1.2.0-alpha.6
- Published
- Jan 13, 2016
- Platform
- js/wasm
- Imports
- 13 packages
- Last checked
- 34 seconds ago –
Tools for package owners.