object_store

package
v1.26.0-alpha.0 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrObjectNotFound

type ErrObjectNotFound struct {
	// contains filtered or unexported fields
}

func (*ErrObjectNotFound) Error

func (e *ErrObjectNotFound) Error() string

type KubeObject

type KubeObject map[string]interface{}

func (KubeObject) Exists

func (obj KubeObject) Exists() bool

func (KubeObject) Field

func (obj KubeObject) Field(path string) library.KubeResult

func (KubeObject) Parse

func (obj KubeObject) Parse() library.KubeResult

func (KubeObject) ToYaml

func (obj KubeObject) ToYaml() string

type MetaIndex

type MetaIndex struct {
	Kind      string
	Namespace string
	Name      string
}

func NewMetaIndex

func NewMetaIndex(kind, namespace, name string) MetaIndex

type ObjectStore

type ObjectStore map[MetaIndex]KubeObject

func (ObjectStore) DeleteObject

func (store ObjectStore) DeleteObject(index MetaIndex)

func (ObjectStore) GetObject

func (store ObjectStore) GetObject(index MetaIndex) (KubeObject, bool)

func (ObjectStore) KubernetesGlobalResource

func (store ObjectStore) KubernetesGlobalResource(kind, name string) KubeObject

func (ObjectStore) KubernetesResource

func (store ObjectStore) KubernetesResource(kind, namespace, name string) KubeObject

func (ObjectStore) PutObject

func (store ObjectStore) PutObject(object KubeObject, index MetaIndex)

func (ObjectStore) RetrieveObjectByMetaIndex

func (store ObjectStore) RetrieveObjectByMetaIndex(index MetaIndex) (object KubeObject, exists bool)

func (ObjectStore) ToYaml

func (store ObjectStore) ToYaml() string

Jump to

Keyboard shortcuts

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