oc

package
v1.99.4 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config added in v1.14.0

type Config struct {
	Runner           crcos.CommandRunner
	OcExecutablePath string
	KubeconfigPath   string
	Context          string
	Cluster          string
	Timeout          string
}

func UseOCWithConfig

func UseOCWithConfig(machineName string) Config

UseOcWithConfig return the oc executable along with valid kubeconfig

func UseOCWithSSH added in v1.14.0

func UseOCWithSSH(sshRunner *ssh.Runner) Config

func (Config) RunOcCommand added in v1.14.0

func (oc Config) RunOcCommand(args ...string) (string, string, error)

func (Config) RunOcCommandPrivate added in v1.14.0

func (oc Config) RunOcCommandPrivate(args ...string) (string, string, error)

func (Config) WithFailFast added in v1.23.0

func (oc Config) WithFailFast() Config

type SSHRunner added in v1.14.0

type SSHRunner struct {
	Runner *ssh.Runner
}

Jump to

Keyboard shortcuts

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