-
-
Notifications
You must be signed in to change notification settings - Fork 862
/
cloud.go
115 lines (100 loc) · 2.26 KB
/
cloud.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
package libs
// Cloud struct define folder to push data
type Cloud struct {
CheckingLimit bool
ReBuildBaseImage bool
IgnoreConfigFile bool
BackgroundRun bool
OnlyCreateDroplet bool
OnlyCreateInstance bool
EnablePrivateIP bool
EnableSyncWorkflow bool
AddNewProvider bool
RemoteWorkflowFolder string
TokensFile string
CopyWorkspaceToGit bool
ClearTime string
InstanceName string
TempTarget string
// content of secret key to avoid reading it too much
SecretKeyContent string
PublicKeyContent string
// enable terraform
EnableTerraform bool
// chunk options
ChunkInputs string
BaseWorkspace string
LocalSyncFolder string
DisableLocalSync bool
RemoteRunList bool
TargetAsFile bool
EnableChunk bool
IgnoreProcess bool
NumberOfParts int
Threads int
// specific cloud instance resources
Size string
Region string
Token string
Provider string
IgnoreSetup bool
// for pre-commands and post-commands
RemotePreRun []string
// run script on local machine after scan done
LocalSteps []Step `yaml:"local_steps"`
LocalPreRun []string
LocalPostRun []string
// use to clone build-osm repo
SecretKey string
PublicKey string
BuildRepo string
Binary string
Retry int
UnzipResult bool
// for health check
ForEverHealthCheck bool
NoDelete bool
// raw command here
Extra string
Flow string
Module string
Workspace string
RawCommand string
Params []string
WsSource string
WsDest string
Input string
Inputs []string
InputsFile string
Target map[string]string
}
// Request all information about request
type Request struct {
Timeout int
Repeat int
Scheme string
Host string
Port string
Path string
URL string
Proxy string
Method string
Redirect bool
Headers []map[string]string
Body string
Beautify string
}
// Response all information about response
type Response struct {
HasPopUp bool
StatusCode int
Status string
ContentType string
Headers []map[string]string
Body string
ResponseTime float64
Length int
Beautify string
Location string
BeautifyHeader string
}