utils

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 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 CommandError

type CommandError struct {
	ID     int
	Result string
}

CommandError is used to report errors.

func (CommandError) Error

func (c CommandError) Error() string

type KubernetesAPI

type KubernetesAPI struct {
	Suffix string
	Client kubernetes.Interface
}

KubernetesAPI allows the K8s client to be overridden for unit testing

func (KubernetesAPI) CreateJobFromJSON

func (k KubernetesAPI) CreateJobFromJSON(jobAsJson string, ns string) error

CreateJobFromJSON is a helper function to unmarshal json into a Job object

func (KubernetesAPI) GetContainerIdsForPod

func (k KubernetesAPI) GetContainerIdsForPod(podName string, ns string) ([]string, string, error)

GetContainerIdsForPod is a helper function to get a list of all the container Ids in a Pod

Jump to

Keyboard shortcuts

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