package etcd
import "k8s.io/kubernetes/pkg/registry/deployment/etcd"
Index ¶
- func NewREST(opts generic.RESTOptions) (*REST, *StatusREST, *RollbackREST)
- type DeploymentStorage
- type REST
- type RollbackREST
- func (r *RollbackREST) Create(ctx api.Context, obj runtime.Object) (out runtime.Object, err error)
- func (r *RollbackREST) New() runtime.Object
- 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, name string, objInfo rest.UpdatedObjectInfo) (runtime.Object, bool, error)
- type StatusREST
Functions ¶
func NewREST ¶
func NewREST(opts generic.RESTOptions) (*REST, *StatusREST, *RollbackREST)
NewREST returns a RESTStorage object that will work against deployments.
Types ¶
type DeploymentStorage ¶
type DeploymentStorage struct { Deployment *REST Status *StatusREST Scale *ScaleREST Rollback *RollbackREST }
DeploymentStorage includes dummy storage for Deployments and for Scale subresource.
func NewStorage ¶
func NewStorage(opts generic.RESTOptions) DeploymentStorage
type REST ¶
type RollbackREST ¶
type RollbackREST struct {
// contains filtered or unexported fields
}
RollbackREST implements the REST endpoint for initiating the rollback of a deployment
func (*RollbackREST) Create ¶
func (*RollbackREST) New ¶
func (r *RollbackREST) New() runtime.Object
New creates a rollback
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 ¶
func (r *ScaleREST) Update(ctx api.Context, name string, objInfo rest.UpdatedObjectInfo) (runtime.Object, bool, error)
type StatusREST ¶
type StatusREST struct {
// contains filtered or unexported fields
}
StatusREST implements the REST endpoint for changing the status of a deployment
func (*StatusREST) Get ¶
Get retrieves the object from the storage. It is required to support Patch.
func (*StatusREST) New ¶
func (r *StatusREST) New() runtime.Object
func (*StatusREST) Update ¶
func (r *StatusREST) Update(ctx api.Context, name string, objInfo rest.UpdatedObjectInfo) (runtime.Object, bool, error)
Update alters the status subset of an object.
Source Files ¶
etcd.go
- Version
- v1.4.0-beta.5
- Published
- Sep 15, 2016
- Platform
- linux/amd64
- Imports
- 13 packages
- Last checked
- 4 minutes ago –
Tools for package owners.