storage

package
v1.7.7-beta.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 14, 2017 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type REST

type REST struct {
	*genericregistry.Store
	// contains filtered or unexported fields
}

REST implements a RESTStorage for ThirdPartyResourceData.

func NewREST

func NewREST(optsGetter generic.RESTOptionsGetter, group, kind string) *REST

NewREST returns a registry which will store ThirdPartyResourceData in the given helper

func (*REST) Create added in v1.7.0

func (r *REST) Create(ctx genericapirequest.Context, obj runtime.Object, includeUninitialized bool) (runtime.Object, error)

Create is a wrapper to support Freeze.

func (*REST) Delete added in v1.7.0

func (r *REST) Delete(ctx genericapirequest.Context, name string, options *metav1.DeleteOptions) (runtime.Object, bool, error)

Delete is a wrapper to support Freeze.

func (*REST) DeleteCollection added in v1.7.0

func (r *REST) DeleteCollection(ctx genericapirequest.Context, options *metav1.DeleteOptions, listOptions *metainternalversion.ListOptions) (runtime.Object, error)

DeleteCollection is a wrapper to support Freeze.

func (*REST) Freeze added in v1.7.0

func (r *REST) Freeze()

Freeze causes all future calls to Create/Update/Delete/DeleteCollection to return a transient error. This is irreversible and meant for use when the TPR data is being deleted or migrated/abandoned.

func (*REST) Kind

func (r *REST) Kind() string

Implements the rest.KindProvider interface

func (*REST) Update added in v1.7.0

func (r *REST) Update(ctx genericapirequest.Context, name string, objInfo rest.UpdatedObjectInfo) (runtime.Object, bool, error)

Update is a wrapper to support Freeze.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL