Documentation ¶
Index ¶
Constants ¶
View Source
const ( Created = "Created" Postponed = "Postponed" Ready = "Ready" Pending = "Pending" Running = "Running" Succeeded = "Succeeded" Failed = "Failed" Canceled = "Canceled" )
States
View Source
const (
Isolated = "isolated"
)
Policies
View Source
const (
Unit = time.Second
)
Variables ¶
View Source
var ( Settings = &settings.Settings Log = logr.WithName("task-scheduler") )
Functions ¶
This section is empty.
Types ¶
type AddonNotFound ¶
type AddonNotFound struct {
Name string
}
AddonNotFound used to report addon referenced by a task but cannot be found.
func (*AddonNotFound) Error ¶
func (e *AddonNotFound) Error() (s string)
func (*AddonNotFound) Is ¶
func (e *AddonNotFound) Is(err error) (matched bool)
type Manager ¶
type Manager struct { // DB DB *gorm.DB // k8s client. Client k8s.Client // Addon token scopes. Scopes []string }
Manager provides task management.
type RuleUnique ¶
type RuleUnique struct { }
RuleUnique running tasks must be unique by:
- application
- variant
- addon.
type Task ¶
Task is an runtime task.
Click to show internal directories.
Click to hide internal directories.