Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var CommandWriterFormatFlag = "output"
CommandWriterFormatFlag is a global that can be overwritten to change the name of the flag used to get the output format from the command.
Functions ¶
func CommandReaders ¶
CommandReaders returns KYAML readers for the supplied file name arguments.
Types ¶
type ErrorReader ¶ added in v0.3.11
type ErrorReader struct{ Err error }
ErrorReader is an adapter to allow the use of an error as a kio.Reader.
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 ReaderFunc ¶ added in v0.3.11
ReaderFunc is an adapter to allow the use of ordinary functions as a kio.Reader.
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.