Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CLI ¶
type CLI interface {
// Run runs a kubectl command
Run(arg ...string) error
// Input runs a kubectl command with input
Input(input io.Reader, arg ...string) error
// String runs a kubectl command that outputs a string
String(arg ...string) (string, error)
// ErrorString runs a kubectl command that outputs an error string
ErrorString(arg ...string) (string, error)
// Lines runs a kubectl command that outputs multiple lines
Lines(arg ...string) ([]string, error)
// StartLines starts a kubectl command that
// sends its lines of output to a callback
StartLines(args []string, fn func(line string), end chan error) func()
// Exec simulates replacing the current process with a kubectl command
Exec(arg ...string) error
}
CLI represents the kubectl CLI
Click to show internal directories.
Click to hide internal directories.