oc

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OcConfig

type OcConfig struct {
	Runner  OcRunner
	Context string
	Cluster string
}

func NewOcConfig

func NewOcConfig(runner OcRunner, context string, clusterName string) OcConfig

func UseOCWithConfig

func UseOCWithConfig(machineName string) OcConfig

UseOcWithConfig return the oc binary along with valid kubeconfig

func (OcConfig) RunOcCommand

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

func (OcConfig) RunOcCommandPrivate

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

type OcLocalRunner

type OcLocalRunner struct {
	OcBinaryPath   string
	KubeconfigPath string
}

func (OcLocalRunner) GetKubeconfigPath

func (oc OcLocalRunner) GetKubeconfigPath() string

func (OcLocalRunner) Run

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

func (OcLocalRunner) RunPrivate

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

type OcRunner

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

Jump to

Keyboard shortcuts

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