Documentation ¶
Index ¶
- type Connection
- type Executor
- type Hub
- type Job
- type JobList
- func (l *JobList) Append(e elementer) error
- func (l *JobList) Delete(id string) error
- func (l *JobList) Dump() []elementer
- func (l *JobList) Get(id string) (elementer, error)
- func (l *JobList) GetJobsWithTask(taskName string) (jobs []Job)
- func (l *JobList) GetJobsWithTrigger(triggerName string) (jobs []Job)
- func (l *JobList) Load()
- func (l *JobList) Update(e elementer) error
- type ListReader
- type ListWriter
- type OutputHolder
- type Result
- type Reverse
- type Run
- type RunList
- func (j *RunList) AddRun(UUID string, job Job, tasks []Task) error
- func (l *RunList) Append(e elementer) error
- func (l *RunList) Delete(id string) error
- func (l *RunList) Dump() []elementer
- func (l *RunList) Get(id string) (elementer, error)
- func (l RunList) GetRecent(offset, length int) []elementer
- func (j *RunList) Len() int
- func (l *RunList) Less(i, j int) bool
- func (l *RunList) Load()
- func (l *RunList) Swap(i, j int)
- func (l *RunList) Update(e elementer) error
- type Task
- type TaskList
- type Trigger
- type TriggerList
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connection ¶
type Connection struct {
// contains filtered or unexported fields
}
func NewConnection ¶
func NewConnection(ws *websocket.Conn) *Connection
func (*Connection) Reader ¶
func (c *Connection) Reader()
func (*Connection) Writer ¶
func (c *Connection) Writer()
type Executor ¶
type Executor struct {
// contains filtered or unexported fields
}
func NewExecutor ¶
func (Executor) ArmTrigger ¶
func (Executor) DisarmTrigger ¶
type Hub ¶
type Hub struct {
// contains filtered or unexported fields
}
func (*Hub) Register ¶
func (h *Hub) Register(c *Connection)
func (*Hub) Unregister ¶
func (h *Hub) Unregister(c *Connection)
type Job ¶
type Job struct { Name string `json:"name"` Tasks []string `json:"tasks"` Status string `json:"status"` Triggers []string `json:"triggers"` }
func (*Job) AppendTask ¶
func (*Job) AppendTrigger ¶
func (*Job) DeleteTask ¶
func (*Job) DeleteTrigger ¶
type JobList ¶
type JobList struct {
// contains filtered or unexported fields
}
func NewJobList ¶
func NewJobList() *JobList
func (*JobList) GetJobsWithTask ¶
func (*JobList) GetJobsWithTrigger ¶
type ListReader ¶
type ListWriter ¶
type OutputHolder ¶
An alias of Buffer that json encoder will marshal to a string and unmarshal from a string.
func (*OutputHolder) MarshalJSON ¶
func (holder *OutputHolder) MarshalJSON() ([]byte, error)
func (*OutputHolder) Reset ¶
func (holder *OutputHolder) Reset()
func (*OutputHolder) String ¶
func (holder *OutputHolder) String() string
func (*OutputHolder) UnmarshalJSON ¶
func (holder *OutputHolder) UnmarshalJSON(data []byte) error
func (*OutputHolder) WriteString ¶
func (holder *OutputHolder) WriteString(s string) (int, error)
type Run ¶
type TaskList ¶
type TaskList struct {
// contains filtered or unexported fields
}
func NewTaskList ¶
func NewTaskList() *TaskList
type TriggerList ¶
type TriggerList struct {
// contains filtered or unexported fields
}
func NewTriggerList ¶
func NewTriggerList() *TriggerList
func (*TriggerList) Load ¶
func (l *TriggerList) Load()
Click to show internal directories.
Click to hide internal directories.