-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathreleases.go
More file actions
31 lines (28 loc) · 964 Bytes
/
releases.go
File metadata and controls
31 lines (28 loc) · 964 Bytes
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
package api
// Release is the definition of the release object.
type Release struct {
App string `json:"app"`
State string `json:"state"`
Build string `json:"build,omitempty"`
Config string `json:"config"`
Created string `json:"created"`
Owner string `json:"owner"`
Summary string `json:"summary"`
Exception string `json:"exception"`
Conditions []Condition `json:"conditions"`
Updated string `json:"updated"`
UUID string `json:"uuid"`
Version int `json:"version"`
}
// ReleaseRollback is the defenition of POST /v2/apps/<app id>/releases/.
type ReleaseRollback struct {
Version int `json:"version"`
Ptypes string `json:"ptypes"`
}
type Condition struct {
State string `json:"state"`
Action string `json:"action"`
Ptypes []string `json:"ptypes"`
Exception string `json:"exception"`
Created string `json:"created"`
}