oc

package
v2.36.0 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 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

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

func UseOCWithSSH(sshRunner *ssh.Runner) Config

func (Config) RunOcCommand

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

func (Config) RunOcCommandPrivate

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

func (Config) WithFailFast

func (oc Config) WithFailFast() Config

type SSHRunner

type SSHRunner struct {
	Runner *ssh.Runner
}

Jump to

Keyboard shortcuts

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