Documentation
¶
Index ¶
- type Task
- func (task *Task) GetMongoAddr() (*db.Addr, error)
- func (task *Task) GetMongoReplsetName() (string, error)
- func (task *Task) HasState() bool
- func (task *Task) IsRunning() bool
- func (task *Task) IsTaskType(taskType pod.TaskType) bool
- func (task *Task) IsUpdating() bool
- func (task *Task) Name() string
- func (task *Task) Service() string
- func (task *Task) State() pod.TaskState
- type TaskCommand
- type TaskCommandEnvironment
- type TaskCommandEnvironmentVariable
- type TaskData
- type TaskInfo
- type TaskState
- type TaskStatus
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Task ¶
type Task struct {
// contains filtered or unexported fields
}
func (*Task) GetMongoReplsetName ¶
func (*Task) IsUpdating ¶
TODO: implement .IsUpdating() on DC/OS
type TaskCommand ¶
type TaskCommand struct {
Environment *TaskCommandEnvironment `json:"environment"`
Value string `json:"value"`
}
type TaskCommandEnvironment ¶
type TaskCommandEnvironment struct {
Variables []*TaskCommandEnvironmentVariable `json:"variables"`
}
type TaskData ¶
type TaskData struct {
Info *TaskInfo `json:"info"`
Status *TaskStatus `json:"status"`
}
type TaskInfo ¶
type TaskInfo struct {
Name string `json:"name"`
Command *TaskCommand `json:"command"`
}
type TaskStatus ¶
type TaskStatus struct {
State *TaskState `json:"state"`
}
Click to show internal directories.
Click to hide internal directories.