-
Notifications
You must be signed in to change notification settings - Fork 2
/
types.go
51 lines (42 loc) · 1.04 KB
/
types.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
package main
import (
"time"
)
type Run struct {
Id uint `json:"id"`
Status string `json:"status"`
Trigger string `json:"trigger"`
Start time.Time `json:"start"`
Duration time.Duration `json:"duration"`
plan *Plan
path string
}
type trigger struct {
Schedule string `json:"schedule"`
Type string `json:"type"`
}
type Notification struct {
Target string `json:"target"`
Payload string `json:"payload"`
}
type step struct {
Name string `json:"name"`
Payload string `json:"payload"`
}
type Plan struct {
Name string `json:"name"`
Description string `json:"description"`
Triggers []trigger `json:"triggers"`
Notifications []Notification `json:"notifications"`
Steps []step `json:"steps"`
Tags []*Tag `json:"tags"`
Runs map[uint]*Run `json:"-"`
run_update chan int
}
type PlanSummaryList struct {
Names []string `json:"names"`
}
type Tag string
type TagCrumb struct {
TagName string `json:"tagName"`
}