package
Version:
v1.11.6
Opens a new window with list of versions in this module.
Published: Dec 14, 2018
License: Apache-2.0
Opens a new window with license information.
Imports: 11
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)
NewREST returns a RESTStorage object that will work against persistent volumes.
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 StatusREST struct {
}
StatusREST implements the REST endpoint for changing the status of a persistentvolume.
func (r *StatusREST) Get(ctx context.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 context.Context, name string, objInfo rest.UpdatedObjectInfo, createValidation rest.ValidateObjectFunc, updateValidation rest.ValidateObjectUpdateFunc) (runtime.Object, bool, error)
Update alters the status subset of an object.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.