-
Notifications
You must be signed in to change notification settings - Fork 88
/
types.go
47 lines (42 loc) · 2.28 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
package types
import (
"time"
v1beta1 "github.com/replicatedhq/kots/kotskinds/apis/kots/v1beta1"
storetypes "github.com/replicatedhq/kots/pkg/store/types"
)
type Downstream struct {
ClusterID string `json:"id"`
ClusterSlug string `json:"slug"`
Name string `json:"name"`
CurrentSequence int64 `json:"currentSequence"`
SnapshotSchedule string `json:"snapshotSchedule,omitempty"`
SnapshotTTL string `json:"snapshotTtl,omitempty"`
}
type DownstreamVersion struct {
VersionLabel string `json:"versionLabel"`
Status storetypes.DownstreamVersionStatus `json:"status"`
CreatedOn *time.Time `json:"createdOn"`
ParentSequence int64 `json:"parentSequence"`
Sequence int64 `json:"sequence"`
ReleaseNotes string `json:"releaseNotes"`
DeployedAt *time.Time `json:"deployedAt"`
Source string `json:"source"`
PreflightResult string `json:"preflightResult,omitempty"`
PreflightResultCreatedAt *time.Time `json:"preflightResultCreatedAt,omitempty"`
PreflightSkipped bool `json:"preflightSkipped"`
DiffSummary string `json:"diffSummary,omitempty"`
DiffSummaryError string `json:"diffSummaryError,omitempty"`
CommitURL string `json:"commitUrl,omitempty"`
GitDeployable bool `json:"gitDeployable,omitempty"`
UpstreamReleasedAt *time.Time `json:"upstreamReleasedAt,omitempty"`
YamlErrors []v1beta1.InstallationYAMLError `json:"yamlErrors,omitempty"`
}
type DownstreamOutput struct {
DryrunStdout string `json:"dryrunStdout"`
DryrunStderr string `json:"dryrunStderr"`
ApplyStdout string `json:"applyStdout"`
ApplyStderr string `json:"applyStderr"`
HelmStdout string `json:"helmStdout"`
HelmStderr string `json:"helmStderr"`
RenderError string `json:"renderError"`
}