forked from getarcaneapp/arcane
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstack_deploy.go
More file actions
47 lines (39 loc) · 1.24 KB
/
Copy pathstack_deploy.go
File metadata and controls
47 lines (39 loc) · 1.24 KB
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 swarm
// StackDeployRequest is used to deploy a Swarm stack from a Compose file.
type StackDeployRequest struct {
// Name is the stack name (namespace).
//
// Required: true
Name string `json:"name"`
// ComposeContent is the Docker Compose YAML content.
//
// Required: true
ComposeContent string `json:"composeContent"`
// EnvContent is the optional environment file content.
//
// Required: false
EnvContent string `json:"envContent,omitempty"`
// WithRegistryAuth sends registry auth details to Swarm agents.
//
// Required: false
WithRegistryAuth bool `json:"withRegistryAuth,omitempty"`
// Prune removes services that are no longer referenced in the stack.
//
// Required: false
Prune bool `json:"prune,omitempty"`
// ResolveImage controls how image digests are resolved (always, changed, never).
//
// Required: false
ResolveImage string `json:"resolveImage,omitempty"`
// WorkingDir defines the working directory context for evaluating compose files.
//
// Required: false
WorkingDir string `json:"workingDir,omitempty"`
}
// StackDeployResponse represents the result of a stack deployment.
type StackDeployResponse struct {
// Name is the deployed stack name.
//
// Required: true
Name string `json:"name"`
}