Documentation ¶
Index ¶
- func GetLoggingLevels() string
- func Logger(l *logrus.Logger)
- func MaintenanceMonitorPrint(hostResult map[string]bool, desiredStates []aurora.MaintenanceMode, ...)
- func ToJSON(v interface{}) string
- func UnmarshalTaskConfig(filename string) (*aurora.TaskConfig, error)
- type BatchStrategy
- type Container
- type DockerContainer
- type Executor
- type InstanceRange
- type Job
- type LimitConstraint
- type MonitorCmdConfig
- type QueueStrategy
- type ThermosProcess
- type URI
- type UpdateJob
- type UpdateSettings
- type UpdateStrategy
- type ValueConstraint
- type VariableBatchStrategy
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetLoggingLevels ¶
func GetLoggingLevels() string
func MaintenanceMonitorPrint ¶
func MaintenanceMonitorPrint(hostResult map[string]bool, desiredStates []aurora.MaintenanceMode, toJson bool)
func ToJSON ¶
func ToJSON(v interface{}) string
ToJSON converts an interface to a JSON formatted string
func UnmarshalTaskConfig ¶ added in v1.0.4
func UnmarshalTaskConfig(filename string) (*aurora.TaskConfig, error)
Types ¶
type BatchStrategy ¶
type Container ¶
type Container struct {
Docker *DockerContainer `yaml:"docker"`
}
type DockerContainer ¶
type InstanceRange ¶
type Job ¶
type Job struct { Environment string `yaml:"environment"` Role string `yaml:"role"` Name string `yaml:"name"` CPU float64 `yaml:"cpu"` RAM int64 `yaml:"ram"` Disk int64 `yaml:"disk"` Port int64 `yaml:"port"` GPU int64 `yaml:"gpu"` Executor Executor `yaml:"executor"` Instances int32 `yaml:"instances"` MaxFailures int32 `yaml:"maxFailures"` URIs []URI `yaml:"uris"` Metadata map[string]string `yaml:"labels"` Service bool `yaml:"service"` Tier string `yaml:"tier,omitempty" default:"preemptible"` Priority int32 `yaml:"priority"` Production bool `yaml:"production"` Thermos []ThermosProcess `yaml:",flow,omitempty"` Container *Container `yaml:"container,omitempty"` CronSchedule *string `yaml:"cronSchedule,omitempty"` CronCollisionPolicy *string `yaml:"cronCollisionPolicy,omitempty"` ValueConstraints []ValueConstraint `yaml:"valueConstraints,flow,omitempty"` LimitConstraints []LimitConstraint `yaml:"limitConstraints,flow,omitempty"` }
func UnmarshalJob ¶
func (*Job) ValidateCron ¶
type LimitConstraint ¶ added in v1.0.2
type MonitorCmdConfig ¶
type QueueStrategy ¶
type QueueStrategy struct {
GroupSize int32 `yaml:"groupSize"`
}
type ThermosProcess ¶
type UpdateJob ¶
type UpdateJob struct { JobConfig Job `yaml:"jobConfig"` UpdateSettings UpdateSettings `yaml:"updateSettings"` }
func UnmarshalUpdate ¶
type UpdateSettings ¶
type UpdateSettings struct { MaxPerInstanceFailures int32 `yaml:"maxPerInstanceFailures"` MaxFailedInstances int32 `yaml:"maxFailedInstances"` MinTimeInRunning time.Duration `yaml:"minTimeInRunning"` RollbackOnFailure bool `yaml:"rollbackOnFailure"` InstanceRanges []InstanceRange `yaml:"instanceRanges"` InstanceCount int32 `yaml:"instanceCount"` PulseTimeout time.Duration `yaml:"pulseTimeout"` SLAAware bool `yaml:"slaAware"` Strategy UpdateStrategy `yaml:"strategy"` }
func (*UpdateSettings) Validate ¶
func (u *UpdateSettings) Validate() error
type UpdateStrategy ¶
type UpdateStrategy struct { VariableBatch *VariableBatchStrategy `yaml:"variableBatch"` Batch *BatchStrategy `yaml:"batch"` Queue *QueueStrategy `yaml:"queue"` }
type ValueConstraint ¶ added in v1.0.2
type VariableBatchStrategy ¶
Click to show internal directories.
Click to hide internal directories.