storage

package
v0.0.0-...-9022789 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Memory

type Memory struct{}

func NewMemory

func NewMemory() Memory

func (*Memory) Get

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

Get finds a resource in the storage by name and returns it. Although it can return an arbitrary error value, IsNotFound(err) is true for the returned error value err when the specified resource is not found.

func (*Memory) List

List selects resources in the storage which match to the selector. 'options' can be nil.

func (*Memory) NamespaceScoped

func (m *Memory) NamespaceScoped() bool

NamespaceScoped returns true if the storage is namespaced

func (*Memory) New

func (m *Memory) New() runtime.Object

New returns an empty object that can be used with Create and Update after request data has been put into it. This object must be a pointer type for use with Codec.DecodeInto([]byte, runtime.Object)

func (*Memory) NewList

func (m *Memory) NewList() runtime.Object

NewList returns an empty object that can be used with the List call. This object must be a pointer type for use with Codec.DecodeInto([]byte, runtime.Object)

func (*Memory) Watch

'label' selects on labels; 'field' selects on the object's fields. Not all fields are supported; an error should be returned if 'field' tries to select on a field that isn't supported. 'resourceVersion' allows for continuing/starting a watch at a particular version.

Jump to

Keyboard shortcuts

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