package
Version:
v1.4.3-beta.0
Opens a new window with list of versions in this module.
Published: Oct 15, 2016
License: Apache-2.0
Opens a new window with license information.
Imports: 13
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func NewREST(opts generic.RESTOptions) (*REST, *StatusREST, *RollbackREST)
NewREST returns a RESTStorage object that will work against deployments.
type DeploymentStorage struct {
Deployment *REST
Status *StatusREST
Scale *ScaleREST
Rollback *RollbackREST
}
DeploymentStorage includes dummy storage for Deployments and for Scale subresource.
func NewStorage(opts generic.RESTOptions) DeploymentStorage
type REST struct {
*registry.Store
}
type RollbackREST struct {
}
RollbackREST implements the REST endpoint for initiating the rollback of a deployment
func (r *RollbackREST) Create(ctx api.Context, obj runtime.Object) (out runtime.Object, err error)
func (r *RollbackREST) New() runtime.Object
New creates a rollback
type ScaleREST struct {
}
func (r *ScaleREST) Get(ctx api.Context, name string) (runtime.Object, error)
func (r *ScaleREST) New() runtime.Object
New creates a new Scale object
func (r *ScaleREST) Update(ctx api.Context, name string, objInfo rest.UpdatedObjectInfo) (runtime.Object, bool, error)
type StatusREST struct {
}
StatusREST implements the REST endpoint for changing the status of a deployment
func (r *StatusREST) Get(ctx api.Context, name string) (runtime.Object, error)
Get retrieves the object from the storage. It is required to support Patch.
func (r *StatusREST) New() runtime.Object
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
¶
Click to show internal directories.
Click to hide internal directories.