oc

package
v1.17.0 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2020 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
	OcBinaryPath   string
	KubeconfigPath string
	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 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