Documentation ¶
Index ¶
- Constants
- func AddYokeMetadata(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 MustParseInt(value string) int
- func MustParseTime(value string) time.Time
- 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 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 ¶
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 ¶ added in v0.0.7
func AddYokeMetadata(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 MustParseInt ¶ added in v0.1.0
func MustParseTime ¶ added in v0.1.0
func Namespace ¶
func Namespace(resource *unstructured.Unstructured) string
func RandomString ¶ added in v0.1.0
func RandomString() string
func WithDebugFlag ¶ added in v0.0.2
Types ¶
type Revisions ¶
func (Revisions) ActiveIndex ¶
type Source ¶
func SourceFrom ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.