-
Notifications
You must be signed in to change notification settings - Fork 90
/
app.go
53 lines (45 loc) · 1.72 KB
/
app.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
52
53
package types
import (
"time"
"github.com/replicatedhq/kots/pkg/util"
)
type App struct {
ID string `json:"id"`
Slug string `json:"slug"`
Name string `json:"name"`
License string `json:"license"`
IsAirgap bool `json:"isAirgap"`
CurrentSequence int64 `json:"currentSequence"`
UpstreamURI string `json:"upstreamUri"`
IconURI string `json:"iconUri"`
UpdatedAt *time.Time `json:"updatedAt"`
CreatedAt time.Time `json:"createdAt"`
LastUpdateCheckAt *time.Time `json:"lastUpdateCheckAt"`
HasPreflight bool `json:"hasPreflight"`
IsConfigurable bool `json:"isConfigurable"`
SnapshotTTL string `json:"snapshotTtl"`
SnapshotSchedule string `json:"snapshotSchedule"`
RestoreInProgressName string `json:"restoreInProgressName"`
RestoreUndeployStatus UndeployStatus `json:"restoreUndeloyStatus"`
UpdateCheckerSpec string `json:"updateCheckerSpec"`
AutoDeploy AutoDeploy `json:"autoDeploy"`
IsGitOps bool `json:"isGitOps"`
InstallState string `json:"installState"`
LastLicenseSync string `json:"lastLicenseSync"`
ChannelChanged bool `json:"channelChanged"`
}
func (a *App) GetID() string {
return a.ID
}
func (a *App) GetSlug() string {
return a.Slug
}
func (a *App) GetCurrentSequence() int64 {
return a.CurrentSequence
}
func (a *App) GetIsAirgap() bool {
return a.IsAirgap
}
func (a *App) GetNamespace() string {
return util.PodNamespace
}