Documentation
¶
Index ¶
- func AddHallmouiMetadata(resources []*unstructured.Unstructured, release string)
- func Canonical(resource *unstructured.Unstructured) string
- func CanonicalMap(resources []*unstructured.Unstructured) map[string]*unstructured.Unstructured
- func CanonicalNameList(resources []*unstructured.Unstructured) []string
- func CanonicalObjectMap(resources []*unstructured.Unstructured) map[string]any
- 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 Stderr(ctx context.Context) io.Writer
- func Stdin(ctx context.Context) io.Reader
- func Stdout(ctx context.Context) io.Writer
- func WithDebugFlag(ctx context.Context, debug *bool) context.Context
- func WithStderr(ctx context.Context, w io.Writer) context.Context
- func WithStdin(ctx context.Context, r io.Reader) context.Context
- func WithStdio(ctx context.Context, out, err io.Writer, in io.Reader) context.Context
- func WithStdout(ctx context.Context, w io.Writer) 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 CanonicalMap ¶ added in v0.0.6
func CanonicalMap(resources []*unstructured.Unstructured) map[string]*unstructured.Unstructured
func CanonicalNameList ¶
func CanonicalNameList(resources []*unstructured.Unstructured) []string
func CanonicalObjectMap ¶ added in v0.0.6
func CanonicalObjectMap(resources []*unstructured.Unstructured) map[string]any
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.