Documentation ¶
Index ¶
- Constants
- func AddYokeMetadata(resources []*unstructured.Unstructured, release, ns 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 FindAll[S ~[]E, E any](slice S, fn func(E) bool) []E
- func IsWarning(err error) bool
- func MustParseInt(value string) int
- func MustParseTime(value string) time.Time
- func MustUnstructuredObject(value any) map[string]any
- func Namespace(resource *unstructured.Unstructured) string
- func RandomString() string
- func Stderr(ctx context.Context) io.Writer
- func Stdin(ctx context.Context) io.Reader
- func Stdout(ctx context.Context) io.Writer
- func ToUnstructured(value any) (*unstructured.Unstructured, error)
- func UnstructuredObject(value any) (map[string]any, error)
- 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 Release
- type Revision
- type Source
- type Warning
Constants ¶
View Source
const ( LabelManagedBy = "app.kubernetes.io/managed-by" LabelYokeRelease = "app.kubernetes.io/yoke-release" LabelYokeReleaseNS = "app.kubernetes.io/yoke-release-namespace" )
View Source
const ( LabelKind = "internal.yoke/kind" LabelRelease = "internal.yoke/release" AnnotationSourceURL = "internal.yoke/source-url" AnnotationSourceChecksum = "internal.yoke/source-checksum" AnnotationCreatedAt = "internal.yoke/created-at" AnnotationActiveAt = "internal.yoke/active-at" AnnotationResourceCount = "internal.yoke/resources" KeyResources = "resources" )
Variables ¶
This section is empty.
Functions ¶
func AddYokeMetadata ¶
func AddYokeMetadata(resources []*unstructured.Unstructured, release, ns string)
func Canonical ¶
func Canonical(resource *unstructured.Unstructured) string
func CanonicalMap ¶
func CanonicalMap(resources []*unstructured.Unstructured) map[string]*unstructured.Unstructured
func CanonicalNameList ¶
func CanonicalNameList(resources []*unstructured.Unstructured) []string
func CanonicalObjectMap ¶
func CanonicalObjectMap(resources []*unstructured.Unstructured) map[string]any
func DebugTimer ¶
func MustParseInt ¶
func MustParseTime ¶
func MustUnstructuredObject ¶ added in v0.4.1
func Namespace ¶
func Namespace(resource *unstructured.Unstructured) string
func RandomString ¶
func RandomString() string
func ToUnstructured ¶ added in v0.4.1
func ToUnstructured(value any) (*unstructured.Unstructured, error)
func UnstructuredObject ¶ added in v0.4.1
Types ¶
type Release ¶ added in v0.6.0
type Release struct { Name string `json:"release"` Namespace string `json:"namespace"` History []Revision `json:"history"` }
func (Release) ActiveIndex ¶ added in v0.6.0
func (Release) ActiveRevision ¶ added in v0.6.0
type Source ¶
func SourceFrom ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.