kube

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KubeJob

type KubeJob struct {
	Client     *kubernetes.Clientset
	Pod        *v1.Pod
	Container  *v1.Container
	KubeConfig *rest.Config
}

Assembly of necessary methods and fields for kubernetes for project

func NewKubeJob

func NewKubeJob(client *kubernetes.Clientset, k8scfg *rest.Config, namespace string, labelSelector string, containerName string) (*KubeJob, error)

Create new KubeJob struct object [Constructor]

func (*KubeJob) Exec

func (kj *KubeJob) Exec(command string, stdin io.Reader, stdout io.Writer, stderr io.Writer) error

Jump to

Keyboard shortcuts

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