package
Version:
v1.4.4
Opens a new window with list of versions in this module.
Published: Oct 21, 2016
License: Apache-2.0
Opens a new window with license information.
Imports: 12
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, *FinalizeREST)
NewREST returns a RESTStorage object that will work against namespaces.
type FinalizeREST struct {
}
FinalizeREST implements the REST endpoint for finalizing a namespace.
func (r *FinalizeREST) New() runtime.Object
func (r *FinalizeREST) Update(ctx api.Context, name string, objInfo rest.UpdatedObjectInfo) (runtime.Object, bool, error)
Update alters the status finalizers subset of an object.
type REST struct {
*registry.Store
}
rest implements a RESTStorage for namespaces against etcd
func (r *REST) Delete(ctx api.Context, name string, options *api.DeleteOptions) (runtime.Object, error)
Delete enforces life-cycle rules for namespace termination
type StatusREST struct {
}
StatusREST implements the REST endpoint for changing the status of a namespace.
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.