Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Action ¶
type Action struct { Name string `yaml:"name"` Image string `yaml:"image"` Timeout int64 `yaml:"timeout"` Command []string `yaml:"command"` OnTimeout []string `yaml:"on-timeout"` OnFailure []string `yaml:"on-failure"` Volumes []string `yaml:"volumes,omitempty"` Environment map[string]string `yaml:"environment,omitempty"` }
Action is the basic executional unit for a workflow
type HardwareList ¶
HardwareList is the view model for hardware list page
type NewWorkflow ¶
type NewWorkflow struct { TemplateID string `json:"templateID"` Devices map[string]string `json:"devices"` }
NewWorkflow represents a create new workflow request
type Task ¶
type Task struct { Name string `yaml:"name"` WorkerAddr string `yaml:"worker"` Actions []Action `yaml:"actions"` Volumes []string `yaml:"volumes"` Environment map[string]string `yaml:"environment"` }
Task represents a task to be performed in a worflow
type TemplateList ¶
TemplateList is the view model for template list page
type UpdateHardware ¶
UpdateHardware represents an update request for a hardware
type UpdateTemplate ¶
UpdateTemplate represents an update request for a template
type Workflow ¶
type Workflow struct { ID string Name string State string CreatedAt string Template string Timeout string RawData string Details WorkflowDetails }
Workflow represents a workflow
type WorkflowDefinition ¶
WorkflowDefinition defines the template data and device keys for that workflow
type WorkflowDetails ¶
type WorkflowDetails struct { Version string `yaml:"version"` Name string `yaml:"name"` ID string `yaml:"id"` GlobalTimeout int `yaml:"global_timeout"` Tasks []Task `yaml:"tasks"` }
WorkflowDetails represents a workflow to be executed
type WorkflowList ¶
WorkflowList is the view model for workflow list page
Click to show internal directories.
Click to hide internal directories.