internal

package
v0.0.0-beta3 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

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 Colorize

func Colorize(value string) string

func CutArgs

func CutArgs(args []string) ([]string, []string)

func Find

func Find[S ~[]E, E any](slice S, fn func(E) bool) (E, bool)

func IsWarning

func IsWarning(err error) bool

func Namespace

func Namespace(resource *unstructured.Unstructured) string

func WriteYAML

func WriteYAML(filename string, value any) (err error)

Types

type List

type List[T any] []T

func (*List[T]) UnmarshalJSON

func (value *List[T]) UnmarshalJSON(data []byte) error

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

type Source struct {
	Ref      string `json:"ref"`
	Checksum string `json:"checksum"`
}

func SourceFrom

func SourceFrom(ref string, wasm []byte) (src Source)

type Warning

type Warning string

func (Warning) Error

func (warning Warning) Error() string

func (Warning) Is

func (Warning) Is(err error) bool

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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