File: stack.go

package info (click to toggle)
docker.io 20.10.24%2Bdfsg1-1%2Bdeb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bookworm-proposed-updates
  • size: 60,824 kB
  • sloc: sh: 5,621; makefile: 593; ansic: 179; python: 162; asm: 7
file content (115 lines) | stat: -rw-r--r-- 5,609 bytes parent folder | download | duplicates (6)
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 v1beta2

import api "github.com/docker/compose-on-kubernetes/api/compose/v1beta2"

// StackList is a list of stacks
// Deprecated: Use github.com/docker/compose-on-kubernetes/api/compose/v1beta2.StackList instead
type StackList = api.StackList

// Stack is v1beta2's representation of a Stack
// Deprecated: Use github.com/docker/compose-on-kubernetes/api/compose/v1beta2.Stack instead
type Stack = api.Stack

// StackSpec defines the desired state of Stack
// Deprecated: Use github.com/docker/compose-on-kubernetes/api/compose/v1beta2.StackSpec instead
type StackSpec = api.StackSpec

// ServiceConfig is the configuration of one service
// Deprecated: Use github.com/docker/compose-on-kubernetes/api/compose/v1beta2.ServiceConfig instead
type ServiceConfig = api.ServiceConfig

// ServicePortConfig is the port configuration for a service
// Deprecated: Use github.com/docker/compose-on-kubernetes/api/compose/v1beta2.ServicePortConfig instead
type ServicePortConfig = api.ServicePortConfig

// FileObjectConfig is a config type for a file used by a service
// Deprecated: Use github.com/docker/compose-on-kubernetes/api/compose/v1beta2.FileObjectConfig instead
type FileObjectConfig = api.FileObjectConfig

// SecretConfig for a secret
// Deprecated: Use github.com/docker/compose-on-kubernetes/api/compose/v1beta2.SecretConfig instead
type SecretConfig = api.SecretConfig

// ConfigObjConfig is the config for the swarm "Config" object
// Deprecated: Use github.com/docker/compose-on-kubernetes/api/compose/v1beta2.ConfigObjConfig instead
type ConfigObjConfig = api.ConfigObjConfig

// External identifies a Volume or Network as a reference to a resource that is
// not managed, and should already exist.
// External.name is deprecated and replaced by Volume.name
// Deprecated: Use github.com/docker/compose-on-kubernetes/api/compose/v1beta2.External instead
type External = api.External

// FileReferenceConfig for a reference to a swarm file object
// Deprecated: Use github.com/docker/compose-on-kubernetes/api/compose/v1beta2.FileReferenceConfig instead
type FileReferenceConfig = api.FileReferenceConfig

// ServiceConfigObjConfig is the config obj configuration for a service
// Deprecated: Use github.com/docker/compose-on-kubernetes/api/compose/v1beta2.ServiceConfigObjConfig instead
type ServiceConfigObjConfig = api.ServiceConfigObjConfig

// ServiceSecretConfig is the secret configuration for a service
// Deprecated: Use github.com/docker/compose-on-kubernetes/api/compose/v1beta2.ServiceSecretConfig instead
type ServiceSecretConfig = api.ServiceSecretConfig

// DeployConfig is the deployment configuration for a service
// Deprecated: Use github.com/docker/compose-on-kubernetes/api/compose/v1beta2.DeployConfig instead
type DeployConfig = api.DeployConfig

// UpdateConfig is the service update configuration
// Deprecated: Use github.com/docker/compose-on-kubernetes/api/compose/v1beta2.UpdateConfig instead
type UpdateConfig = api.UpdateConfig

// Resources the resource limits and reservations
// Deprecated: Use github.com/docker/compose-on-kubernetes/api/compose/v1beta2.Resources instead
type Resources = api.Resources

// Resource is a resource to be limited or reserved
// Deprecated: Use github.com/docker/compose-on-kubernetes/api/compose/v1beta2.Resource instead
type Resource = api.Resource

// RestartPolicy is the service restart policy
// Deprecated: Use github.com/docker/compose-on-kubernetes/api/compose/v1beta2.RestartPolicy instead
type RestartPolicy = api.RestartPolicy

// Placement constraints for the service
// Deprecated: Use github.com/docker/compose-on-kubernetes/api/compose/v1beta2.Placement instead
type Placement = api.Placement

// Constraints lists constraints that can be set on the service
// Deprecated: Use github.com/docker/compose-on-kubernetes/api/compose/v1beta2.Constraints instead
type Constraints = api.Constraints

// Constraint defines a constraint and it's operator (== or !=)
// Deprecated: Use github.com/docker/compose-on-kubernetes/api/compose/v1beta2.Constraint instead
type Constraint = api.Constraint

// HealthCheckConfig the healthcheck configuration for a service
// Deprecated: Use github.com/docker/compose-on-kubernetes/api/compose/v1beta2.HealthCheckConfig instead
type HealthCheckConfig = api.HealthCheckConfig

// ServiceVolumeConfig are references to a volume used by a service
// Deprecated: Use github.com/docker/compose-on-kubernetes/api/compose/v1beta2.ServiceVolumeConfig instead
type ServiceVolumeConfig = api.ServiceVolumeConfig

// StackPhase is the deployment phase of a stack
// Deprecated: Use github.com/docker/compose-on-kubernetes/api/compose/v1beta2.StackPhase instead
type StackPhase = api.StackPhase

// These are valid conditions of a stack.
const (
	// StackAvailable means the stack is available.
	// Deprecated: Use github.com/docker/compose-on-kubernetes/api/compose/v1beta2.StackAvailable instead
	StackAvailable StackPhase = api.StackAvailable
	// StackProgressing means the deployment is progressing.
	// Deprecated: Use github.com/docker/compose-on-kubernetes/api/compose/v1beta2.StackProgressing instead
	StackProgressing StackPhase = api.StackProgressing
	// StackFailure is added in a stack when one of its members fails to be created
	// or deleted.
	// Deprecated: Use github.com/docker/compose-on-kubernetes/api/compose/v1beta2.StackFailure instead
	StackFailure StackPhase = api.StackFailure
)

// StackStatus defines the observed state of Stack
// Deprecated: Use github.com/docker/compose-on-kubernetes/api/compose/v1beta2.StackStatus instead
type StackStatus = api.StackStatus