oc

package
v1.15.0 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2020 License: Apache-2.0 Imports: 6 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  Runner
	Context string
	Cluster string
}

func UseOCWithConfig

func UseOCWithConfig(machineName string) Config

UseOcWithConfig return the oc binary 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)

type EnvRunner added in v1.14.0

type EnvRunner struct {
	OcBinaryPath  string
	KubeconfigEnv string
}

func (EnvRunner) Run added in v1.14.0

func (oc EnvRunner) Run(args ...string) (string, string, error)

func (EnvRunner) RunPrivate added in v1.14.0

func (oc EnvRunner) RunPrivate(args ...string) (string, string, error)

type LocalRunner added in v1.14.0

type LocalRunner struct {
	OcBinaryPath   string
	KubeconfigPath string
}

func (LocalRunner) Run added in v1.14.0

func (oc LocalRunner) Run(args ...string) (string, string, error)

func (LocalRunner) RunPrivate added in v1.14.0

func (oc LocalRunner) RunPrivate(args ...string) (string, string, error)

type Runner added in v1.14.0

type Runner interface {
	Run(args ...string) (string, string, error)
	RunPrivate(args ...string) (string, string, error)
}

type SSHRunner added in v1.14.0

type SSHRunner struct {
	Runner *ssh.Runner
}

func (SSHRunner) Run added in v1.14.0

func (oc SSHRunner) Run(args ...string) (string, string, error)

func (SSHRunner) RunPrivate added in v1.14.0

func (oc SSHRunner) RunPrivate(args ...string) (string, string, error)

Jump to

Keyboard shortcuts

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