Documentation ¶
Index ¶
- type Options
- type Runner
- func (r *Runner) Cat(namespace, pod, container, path string, dryRun bool) (string, error)
- func (r *Runner) EnvoyGet(namespace, pod, url string, dryRun bool) (string, error)
- func (r *Runner) Exec(namespace, pod, container, cmdStr string, dryRun bool) (string, error)
- func (r *Runner) Logs(namespace, pod, container string, previous, dryRun bool) (string, error)
- func (r *Runner) ReportRunningTasks()
- func (r *Runner) Run(subcmds []string, opts *Options) (string, error)
- func (r *Runner) RunCmd(command, namespace, kubeConfig, kubeContext string, dryRun bool) (string, error)
- func (r *Runner) SetClient(client kube.CLIClient)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options struct { // Path to the kubeconfig file. Kubeconfig string // ComponentName of the kubeconfig context to use. Context string // namespace - k8s namespace for Run command Namespace string // DryRun performs all steps but only logs the Run command without running it. DryRun bool // Maximum amount of time to wait for resources to be ready after install when Wait=true. WaitTimeout time.Duration // output - output mode for Run i.e. --output. Output string // extraArgs - more args to be added to the Run command, which are appended to // the end of the Run command. ExtraArgs []string }
Options contains the Run options.
type Runner ¶
func (*Runner) Cat ¶
Cat runs the cat command for the given path in the given namespace/pod/container.
func (*Runner) EnvoyGet ¶
EnvoyGet sends a GET request for the URL in the Envoy container in the given namespace/pod and returns the result.
func (*Runner) ReportRunningTasks ¶
func (r *Runner) ReportRunningTasks()
Click to show internal directories.
Click to hide internal directories.