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 ¶
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 ¶
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 }
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
Click to show internal directories.
Click to hide internal directories.