Documentation ¶
Index ¶
Constants ¶
View Source
const ( ReasonUpdate = Reason(1) ReasonFailed = Reason(2) ReasonObsolete = Reason(3) )
Variables ¶
View Source
var (
NotFoundError = errgo.New("not found")
)
Functions ¶
func IsNotFound ¶
Types ¶
type ClusterConfig ¶
type ClusterConfig interface { ClusterID() string VaultConfig }
type Scheduler ¶
type Scheduler interface { // ValidateCluster checks if the cluster is suitable to run the configured job. ValidateCluster() error // ConfigureCluster configures the cluster for use by J2. ConfigureCluster(config ClusterConfig) error // List returns the names of all units on the cluster List() ([]Unit, error) GetState(Unit) (UnitState, error) // HasChanged returns true when the given unit is different on the system (or does not exist on the system) HasChanged(UnitData) ([]string, bool, error) Stop(events chan Event, reason Reason, units ...Unit) (StopStats, error) Destroy(events chan Event, reason Reason, units ...Unit) error Start(events chan Event, units UnitDataList) error IsUnitForScalingGroup(unit Unit, scalingGroup uint) bool IsUnitForJob(unit Unit) bool IsUnitForTaskGroup(unit Unit, g jobs.TaskGroupName) bool UpdateStopDelay(time.Duration) time.Duration UpdateDestroyDelay(time.Duration) time.Duration }
type UnitDataList ¶
type VaultConfig ¶
Click to show internal directories.
Click to hide internal directories.