kube

package
v0.0.1-alpha.2 Latest Latest
Warning

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

Go to latest
Published: May 13, 2020 License: Apache-2.0 Imports: 14 Imported by: 14

Documentation

Index

Constants

View Source
const (
	// Deprecated use LabelResourceKind instead, which is more generic
	LabelWorkloadKind = "starboard.workload.kind"
	// Deprecated use LabelResourceName instead, which is more generic
	LabelWorkloadName  = "starboard.workload.name"
	LabelContainerName = "starboard.container.name"
	LabelResourceKind  = "starboard.resource.kind"
	LabelResourceName  = "starboard.resource.name"

	LabelScannerName   = "starboard.scanner.name"
	LabelScannerVendor = "starboard.scanner.vendor"

	LabelHistoryLatest = "starboard.history.latest"
)
View Source
const (
	AnnotationHistoryLimit = "starboard.history.limit"
)

Variables

This section is empty.

Functions

func NewRunnableJob

func NewRunnableJob(clientset kubernetes.Interface, spec *batch.Job) runner.Runnable

NewRunnableJob constructs a new Runnable task which runs a Kubernetes Job with the given spec and waits for the completion or failure.

Types

type CRManager

type CRManager interface {
	Init() error
	Cleanup() error
}

CRManager defined methods for managing Kubernetes custom resources.

func NewCRManager

func NewCRManager(client extapi.ApiextensionsV1beta1Interface) (CRManager, error)

NewCRManager constructs a CRManager with the given Kubernetes config.

type Workload

type Workload struct {
	Namespace string
	Kind      WorkloadKind
	Name      string
}

func (Workload) String

func (t Workload) String() string

type WorkloadKind

type WorkloadKind int

WorkloadKind is an enum defining the different kinds of Kubernetes workloads.

const (
	WorkloadKindUnknown WorkloadKind = iota
	WorkloadKindPod
	WorkloadKindReplicaSet
	WorkloadKindReplicationController
	WorkloadKindDeployment
	WorkloadKindStatefulSet
	WorkloadKindDaemonSet
	WorkloadKindCronJob
	WorkloadKindJob
)

func WorkloadKindFromString

func WorkloadKindFromString(s string) (WorkloadKind, error)

func (WorkloadKind) String

func (t WorkloadKind) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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