mirror of
https://github.com/lukaszraczylo/jobs-manager-operator.git
synced 2026-07-08 06:34:25 +00:00
Completely rebuild the tree generation logic.
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
package controllers
|
||||
|
||||
// +kubebuilder:validation:Enum=Allow;Forbid;Replace
|
||||
type ExecutionStatus string
|
||||
|
||||
const (
|
||||
ExecutionStatusPending string = "pending"
|
||||
ExecutionStatusRunning string = "running"
|
||||
@@ -15,3 +13,29 @@ const (
|
||||
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
|
||||
}
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user