-
Notifications
You must be signed in to change notification settings - Fork 1
/
types.go
58 lines (48 loc) · 1.09 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
52
53
54
55
56
57
58
// Copyright 2020 Apulis Technology Inc. All rights reserved.
package application
import (
_ "fmt"
)
// application status
const (
StatusUnPublished string = "UnPublished"
StatusPublished string = "Published"
)
// application status
const (
AppStatusUnpublished string = "Unpublished"
AppStatusPublished string = "Published"
AppStatusOffline string = "Offline"
)
// deploy status
const (
StatusInit string = "Init"
StatusDeploying string = "Deploying"
StatusRunning string = "Running"
StatusUpdateInit string = "UpdateInit"
StatusAbnormal string = "Abnormal"
StatusDeleting string = "Deleting"
)
const (
AppUserDefine string = "UserDefine"
AppSysDefine string = "System"
AppTypeAll string = "All"
)
const (
DefaultNamespace string = "default"
)
// for ticker
const (
TransferCountEach int = 10
)
// restart policy
const (
RestartPolicyAlways string = "Always"
RestartPolicyOnFailure string = "OnFailure"
RestartPolicyNever string = "Never"
)
// network type
const (
NetworkTypeHost string = "Host"
NetworkTypePortMapping string = "PortMapping"
)