Documentation
¶
Index ¶
- func NewSHA256(data []byte) string
- type ResourceIndex
- type StoreObject
- func (s *StoreObject) GetAllContainers() ([]v1.Container, error)
- func (s *StoreObject) GetContainers() ([]v1.Container, error)
- func (s *StoreObject) GetInitContainers() ([]v1.Container, error)
- func (s *StoreObject) GetPath() string
- func (s *StoreObject) GetPodSecurityContext() (*v1.PodSecurityContext, error)
- func (s *StoreObject) Identity() string
- func (s *StoreObject) IsHostNetwork() (bool, error)
- func (s *StoreObject) ShortPath() string
- type UnstructuredObjectStore
- func (s *UnstructuredObjectStore) Close()
- func (s *UnstructuredObjectStore) Exists(key ResourceIndex) bool
- func (s *UnstructuredObjectStore) Get(key ResourceIndex) StoreObject
- func (s *UnstructuredObjectStore) Put(path, shortPath string, object map[string]any, raw []byte) error
- func (s *UnstructuredObjectStore) Reset()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ResourceIndex ¶
func GetResourceIndex ¶
func GetResourceIndex(object StoreObject) ResourceIndex
func (*ResourceIndex) AsString ¶
func (g *ResourceIndex) AsString() string
type StoreObject ¶
type StoreObject struct {
AbsPath string
Hash string
Unstructured unstructured.Unstructured
// contains filtered or unexported fields
}
func (*StoreObject) GetAllContainers ¶ added in v0.0.29
func (s *StoreObject) GetAllContainers() ([]v1.Container, error)
func (*StoreObject) GetContainers ¶
func (s *StoreObject) GetContainers() ([]v1.Container, error)
func (*StoreObject) GetInitContainers ¶
func (s *StoreObject) GetInitContainers() ([]v1.Container, error)
func (*StoreObject) GetPath ¶ added in v0.1.35
func (s *StoreObject) GetPath() string
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 (s *UnstructuredObjectStore) Exists(key ResourceIndex) bool
func (*UnstructuredObjectStore) Get ¶
func (s *UnstructuredObjectStore) Get(key ResourceIndex) StoreObject
func (*UnstructuredObjectStore) Reset ¶ added in v0.2.4
func (s *UnstructuredObjectStore) Reset()
Reset empties the store in place, keeping the map's already-allocated buckets so a pooled store retains its capacity for the next render. Unlike Close it does not drop the backing map, which is what makes reuse cheap.
Click to show internal directories.
Click to hide internal directories.