package storage

import "k8s.io/kubernetes/pkg/registry/extensions/thirdpartyresourcedata/storage"

Index

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

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

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

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

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

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

Update is a wrapper to support Freeze.

Source Files

storage.go

Version
v1.7.6
Published
Sep 14, 2017
Platform
js/wasm
Imports
14 packages
Last checked
3 minutes ago

Tools for package owners.