flag

package
v1.21.0 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package flag provides value types for kong flags which more than one command declares. Each type implements encoding.TextUnmarshaler, which is how kong decodes a flag value into it.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LabelSelector

type LabelSelector struct {
	metav1.LabelSelector
}

LabelSelector is a label query over a set of resources. https://pkg.go.dev/k8s.io/kubectl@v0.33.2/pkg/cmd/util#AddLabelSelectorFlagVar

func (*LabelSelector) UnmarshalText

func (ls *LabelSelector) UnmarshalText(text []byte) error

UnmarshalText parses a label selector from a string. https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#list-and-watch-filtering

type LocalReference

type LocalReference struct {
	meta.LocalReference
}

LocalReference references another object in the same namespace.

func (*LocalReference) UnmarshalText

func (r *LocalReference) UnmarshalText(text []byte) error

UnmarshalText parses a local reference from a string.

Jump to

Keyboard shortcuts

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