Documentation
¶
Index ¶
- func CommandReaders(cmd *cobra.Command, args []string) []kio.Reader
- func CommandWriters(cmd *cobra.Command, overwrite bool) []kio.Writer
- type ExecReader
- type ExecWriter
- type Kubectl
- func (k *Kubectl) AddFlags(cmd *cobra.Command)
- func (k *Kubectl) Apply(ctx context.Context, dryRun string) kio.Writer
- func (k *Kubectl) Command(ctx context.Context, args ...string) *exec.Cmd
- func (k *Kubectl) Create(ctx context.Context, dryRun string) kio.Writer
- func (k *Kubectl) Get(ctx context.Context, objs ...string) kio.Reader
- type TemplateReader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CommandReaders ¶
CommandReaders returns KYAML readers for the supplied file name arguments.
Types ¶
type ExecReader ¶
ExecReader is a KYAML reader that consumes YAML from another process via stdout.
type ExecWriter ¶
ExecWriter is a KYAML writer that sends YAML to another process via stdin.
type Kubectl ¶
type Kubectl struct { // The path the kubectl binary, defaults to `kubectl`. Bin string // The path to the kubeconfig. KubeConfig string // The context name. Context string // The namespace name. Namespace string }
Kubectl is used for executing `kubectl` as part of a KYAML pipeline.
func (*Kubectl) Command ¶
Command creates a new executable command with the configured global flags and the supplied arguments.
type TemplateReader ¶
type TemplateReader struct { // The template to execute. Template *template.Template // The data for the template. Data interface{} }
TemplateReader is a KYAML reader that consumes YAML from a Go template.
Click to show internal directories.
Click to hide internal directories.