-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.d.ts
206 lines (188 loc) · 5.31 KB
/
index.d.ts
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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
export = Rancher
declare class Rancher {
constructor(options: Rancher.Options);
validate(): Promise<Rancher.Validate>
upgrade(
name: string,
version: string,
commit?: string | null | undefined,
startFirst?: boolean = true): Promise<Rancher.Upgrade>
}
declare namespace Rancher {
export type ErrorCode = 'UNKNOWN' | 'NOT_FOUND_ENVIRONMENT' | 'UNAUTHORIZED'
export interface Validate {
readonly isValid: boolean
readonly errorCode: ErrorCode
}
export interface Link {
readonly self: string
readonly account: string
readonly instances: string
}
export interface ServiceLink extends Link {
readonly consumedbyservices: string
readonly consumedservices: string
readonly networkDrivers: string
readonly serviceExposeMaps: string
readonly serviceLogs: string
readonly storageDrivers: string
readonly containerStats: string
readonly environment: string
}
export interface StackLink extends Link {
readonly hosts: string
readonly scheduledUpgrades: string
readonly secrets: string
readonly services: string
readonly volumeTemplates: string
readonly volumes: string
readonly composeConfig: any
}
export interface Action {
readonly update: string
readonly upgrade: string
readonly remove: string
}
export interface ActionService {
readonly restart: string
readonly deactivate: string
readonly removeservicelink: string
readonly addservicelink: string
readonly setservicelinks: string
}
export interface ActionStack {
readonly deactivateservices: string
readonly activateservices: string
readonly addoutputs: string
readonly exportconfig: string
}
interface Dictionary {
[string]: any
}
export interface LogConfig {
readonly type: string
readonly config: Dictionary
readonly driver: string
}
export interface LaunchConfig {
readonly type: string
readonly command: string[]
readonly dataVolumes: string[]
readonly environment: Dictionary
readonly imageUuid: string
readonly instanceTriggeredStop: string
readonly kind: string
readonly labels: Dictionary
readonly logConfig: LogConfig
readonly networkMode: string
readonly pidMode: string
readonly privileged: boolean
readonly publishAllPorts: boolean
readonly readOnly: boolean
readonly runInit: boolean
readonly startOnCreate: boolean
readonly stdinOpen: boolean
readonly system: boolean
readonly tty: boolean
readonly version: string
readonly vcpu: number
readonly drainTimeoutMs: number
}
export interface Service {
readonly id: string
readonly type: string
readonly links: ServiceLink
readonly actions: ActionService
readonly baseType: string
readonly name: string
readonly state: string
readonly accountId: string
readonly assignServiceIpAddress: boolean
readonly createIndex: number
readonly created: string
readonly createdTS: number
readonly currentScale: number
readonly description: any
readonly externalId: any
readonly fqdn: any
readonly healthState: string
readonly instanceIds: number[]
readonly kind: string
readonly launchConfig: LaunchConfig
readonly lbConfig: any
readonly linkedServices: any
readonly metadata: Dictionary
readonly publicEndpoints: any
readonly removed: any
readonly retainIp: any
readonly scale: number
readonly scalePolicy: any
readonly secondaryLaunchConfigs: any[]
readonly selectorContainer: any
readonly selectorLink: any
readonly stackId: string
readonly startOnCreate: boolean
readonly system: boolean
readonly transitioning: string
readonly transitioningMessage: any
readonly transitioningProgress: any
readonly upgrade: any
readonly uuid: string
readonly vip: any
readonly environmentId: string
}
export interface Stack {
readonly id: string
readonly type: string
readonly links: StackLink
readonly actions: ActionStack
readonly baseType: string
readonly name: string
readonly state: string
readonly accountId: string
readonly answers: any
readonly binding: any
readonly created: string
readonly createdTS: number
readonly description: any
readonly dockerCompose: string
readonly environment: any
readonly externalId: string
readonly group: any
readonly healthState: string
readonly kind: string
readonly outputs: any
readonly previousEnvironment: any
readonly previousExternalId: any
readonly rancherCompose: string
readonly removed: any
readonly serviceIds: any
readonly startOnCreate: any
readonly system: boolean
readonly templates: any
readonly transitioning: string
readonly transitioningMessage: any
readonly transitioningProgress: any
readonly uuid: string
}
export interface InServiceStrategy {
launchConfig: LaunchConfig
startFirst?: boolean
}
export interface ServiceUpgrade {
inServiceStrategy: InServiceStrategy
}
export interface Upgrade {
service: Service
upgrade: ServiceUpgrade
response: any
}
export interface Options {
url: string
accessKey: string
secretKey: string
dryRun?: boolean = false
commitVariable?: string = null
releaseVariable?: string = null
}
}