Documentation ¶
Index ¶
- type ErrObjectNotFound
- type KubeObject
- type MetaIndex
- type ObjectStore
- func (store ObjectStore) DeleteObject(index MetaIndex)
- func (store ObjectStore) GetObject(index MetaIndex) (KubeObject, bool)
- func (store ObjectStore) KubernetesGlobalResource(kind, name string) KubeObject
- func (store ObjectStore) KubernetesResource(kind, namespace, name string) KubeObject
- func (store ObjectStore) PutObject(object KubeObject, index MetaIndex)
- func (store ObjectStore) RetrieveObjectByMetaIndex(index MetaIndex) (object KubeObject, exists bool)
- func (store ObjectStore) ToYaml() string
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 ¶
func NewMetaIndex ¶
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
Click to show internal directories.
Click to hide internal directories.