storage

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSHA256

func NewSHA256(data []byte) string

Types

type ResourceIndex

type ResourceIndex struct {
	Kind      string
	Name      string
	Namespace string
}

func GetResourceIndex

func GetResourceIndex(object StoreObject) ResourceIndex

func (*ResourceIndex) AsString

func (g *ResourceIndex) AsString() string

type StoreObject

type StoreObject struct {
	Path         string
	Hash         string
	Unstructured unstructured.Unstructured
}

func (*StoreObject) GetContainers

func (s *StoreObject) GetContainers() ([]v1.Container, error)

func (*StoreObject) GetInitContainers

func (s *StoreObject) GetInitContainers() ([]v1.Container, error)

func (*StoreObject) GetPodSecurityContext

func (s *StoreObject) GetPodSecurityContext() (*v1.PodSecurityContext, error)

func (*StoreObject) Identity

func (s *StoreObject) Identity() string

func (*StoreObject) IsHostNetwork

func (s *StoreObject) IsHostNetwork() (bool, error)

func (*StoreObject) ShortPath

func (s *StoreObject) ShortPath() string

type UnstructuredObjectStore

type UnstructuredObjectStore struct {
	Storage map[ResourceIndex]StoreObject
}

func NewUnstructuredObjectStore

func NewUnstructuredObjectStore() *UnstructuredObjectStore

func (*UnstructuredObjectStore) Close

func (s *UnstructuredObjectStore) Close()

func (*UnstructuredObjectStore) Exists

func (*UnstructuredObjectStore) Get

func (*UnstructuredObjectStore) Put

func (s *UnstructuredObjectStore) Put(path string, object map[string]any, raw []byte) error

Jump to

Keyboard shortcuts

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