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 Debug(ctx context.Context) ansi.Terminal
- func DebugTimer(ctx context.Context, msg string) func()
- 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 WithDebugFlag(ctx context.Context, debug *bool) context.Context
- 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 DebugTimer ¶ added in v0.0.2
func Namespace ¶
func Namespace(resource *unstructured.Unstructured) string
func WithDebugFlag ¶ added in v0.0.2
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 ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.