storage

package
v1.16.2 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 21 Imported by: 1

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
	*agent.Agent
}

REST implements a RESTStorage for all resource against imitator.

func NewREST

func NewREST() (*REST, error)

NewREST returns a RESTStorage object that will work against all resources

func (*REST) Create

func (r *REST) Create(ctx context.Context, obj runtime.Object, createValidation rest.ValidateObjectFunc, options *metav1.CreateOptions) (runtime.Object, error)

func (*REST) Delete

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

func (*REST) Get

func (r *REST) Get(ctx context.Context, name string, options *metav1.GetOptions) (runtime.Object, error)

func (*REST) List

func (*REST) PassThrough added in v1.15.0

func (r *REST) PassThrough(ctx context.Context, options *metav1.GetOptions) ([]byte, error)

PassThrough The request is routed to the dynamic controller via the metaServer. If the request is approved, the response will be saved to local storage. It will be acquired from local data storage if it fails.

func (*REST) Patch

func (r *REST) Patch(ctx context.Context, pi metaserver.PatchInfo) (runtime.Object, error)

func (*REST) Update

func (r *REST) Update(ctx context.Context, name string, objInfo rest.UpdatedObjectInfo, createValidation rest.ValidateObjectFunc, updateValidation rest.ValidateObjectUpdateFunc, forceAllowCreate bool, options *metav1.UpdateOptions) (runtime.Object, bool, error)

func (*REST) Watch

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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