package
Version:
v1.7.0-alpha.4
Opens a new window with list of versions in this module.
Published: May 18, 2017
License: Apache-2.0
Opens a new window with license information.
Imports: 16
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func NewREST(optsGetter generic.RESTOptionsGetter) (*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(optsGetter generic.RESTOptionsGetter) DeploymentStorage
type REST struct {
*genericregistry.Store
}
func (r *REST) ShortNames() []string
ShortNames implements the ShortNamesProvider interface. Returns a list of short names for a resource.
type RollbackREST struct {
}
RollbackREST implements the REST endpoint for initiating the rollback of a deployment
func (r *RollbackREST) Create(ctx genericapirequest.Context, obj runtime.Object) (runtime.Object, error)
func (r *RollbackREST) New() runtime.Object
New creates a rollback
type ScaleREST struct {
}
func (r *ScaleREST) Get(ctx genericapirequest.Context, name string, options *metav1.GetOptions) (runtime.Object, error)
func (r *ScaleREST) New() runtime.Object
New creates a new Scale object
func (r *ScaleREST) Update(ctx genericapirequest.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 genericapirequest.Context, name string, options *metav1.GetOptions) (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 genericapirequest.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.