mirror of
https://github.com/lukaszraczylo/jobs-manager-operator.git
synced 2026-06-06 22:39:22 +00:00
42 lines
730 B
Go
42 lines
730 B
Go
package controllers
|
|
|
|
// +kubebuilder:validation:Enum=Allow;Forbid;Replace
|
|
const (
|
|
ExecutionStatusPending string = "pending"
|
|
ExecutionStatusRunning string = "running"
|
|
ExecutionStatusSucceeded string = "succeeded"
|
|
ExecutionStatusFailed string = "failed"
|
|
ExecutionStatusAborted string = "aborted"
|
|
ExecutionStatusUnknown string = "unknown"
|
|
)
|
|
|
|
var (
|
|
jobOwnerKey = ".metadata.controller"
|
|
)
|
|
|
|
type (
|
|
ExecutionStatus string
|
|
|
|
tree struct {
|
|
text string
|
|
items []Tree
|
|
}
|
|
|
|
// Tree is tree interface
|
|
Tree interface {
|
|
Add(text string) Tree
|
|
AddTree(tree Tree)
|
|
Items() []Tree
|
|
Text() string
|
|
Print() string
|
|
}
|
|
|
|
printer struct {
|
|
}
|
|
|
|
// Printer is printer interface
|
|
Printer interface {
|
|
Print(Tree) string
|
|
}
|
|
)
|