Documentation ¶
Index ¶
- func AddHallmouiMetadata(resources []*unstructured.Unstructured, release string)
- func Canonical(resource *unstructured.Unstructured) string
- func CanonicalNameList(resources []*unstructured.Unstructured) []string
- func Colorize(value string) string
- func CutArgs(args []string) ([]string, []string)
- func Find[S ~[]E, E any](slice S, fn func(E) bool) (E, bool)
- func IsWarning(err error) bool
- func Namespace(resource *unstructured.Unstructured) string
- func WriteYAML(filename string, value any) (err error)
- type List
- type Revision
- type Revisions
- type Source
- type Warning
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddHallmouiMetadata ¶
func AddHallmouiMetadata(resources []*unstructured.Unstructured, release string)
func Canonical ¶
func Canonical(resource *unstructured.Unstructured) string
func CanonicalNameList ¶
func CanonicalNameList(resources []*unstructured.Unstructured) []string
func Namespace ¶
func Namespace(resource *unstructured.Unstructured) string
Types ¶
type Revision ¶
type Revision struct { ID int `json:"id"` Source Source `json:"source"` CreatedAt time.Time `json:"createdAt"` Resources []*unstructured.Unstructured `json:"resources"` }
type Revisions ¶
type Revisions struct { Release string `json:"release"` Total int `json:"total"` ActiveIndex int `json:"activeIndex"` History []Revision `json:"history"` }
func (*Revisions) Add ¶
func (revisions *Revisions) Add(resources []*unstructured.Unstructured, ref string, wasm []byte)
func (Revisions) CurrentResources ¶
func (revisions Revisions) CurrentResources() []*unstructured.Unstructured
type Source ¶
func SourceFrom ¶
Click to show internal directories.
Click to hide internal directories.