-
Notifications
You must be signed in to change notification settings - Fork 224
/
types.go
44 lines (39 loc) · 1.34 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
package flypkgs
import (
"time"
"github.com/superfly/flyctl/internal/version"
)
type Release struct {
ID uint64 `json:"id"`
Channel Channel `json:"channel"`
Version version.Version `json:"version"`
GitCommit string `json:"git_commit"`
GitBranch string `json:"git_branch"`
GitTag string `json:"git_tag"`
GitPreviousTag string `json:"git_previous_tag"`
GitDirty bool `json:"git_dirty"`
Status string `json:"status"`
InsertedAt time.Time `json:"inserted_at"`
UpdatedAt time.Time `json:"updated_at"`
PublishedAt time.Time `json:"published_at"`
Assets []Asset `json:"assets"`
}
type Channel struct {
ID uint64 `json:"id"`
Name string `json:"name"`
Status string `json:"status"`
Stable bool `json:"stable"`
InsertedAt time.Time `json:"inserted_at"`
UpdatedAt time.Time `json:"updated_at"`
}
type Asset struct {
ID uint64 `json:"id"`
Name string `json:"name"`
Size uint64 `json:"size"`
SHA256 string `json:"sha256"`
OS string `json:"os"`
Arch string `json:"arch"`
ContentType string `json:"content_type"`
InsertedAt string `json:"inserted_at"`
UpdatedAt string `json:"updated_at"`
}