github.com/kaisenlinux/docker.io@v0.0.0-20230510090727-ea55db55fac7/cli/kubernetes/compose/v1beta2/stack.go (about)

     1  package v1beta2
     2  
     3  import api "github.com/docker/compose-on-kubernetes/api/compose/v1beta2"
     4  
     5  // StackList is a list of stacks
     6  // Deprecated: Use github.com/docker/compose-on-kubernetes/api/compose/v1beta2.StackList instead
     7  type StackList = api.StackList
     8  
     9  // Stack is v1beta2's representation of a Stack
    10  // Deprecated: Use github.com/docker/compose-on-kubernetes/api/compose/v1beta2.Stack instead
    11  type Stack = api.Stack
    12  
    13  // StackSpec defines the desired state of Stack
    14  // Deprecated: Use github.com/docker/compose-on-kubernetes/api/compose/v1beta2.StackSpec instead
    15  type StackSpec = api.StackSpec
    16  
    17  // ServiceConfig is the configuration of one service
    18  // Deprecated: Use github.com/docker/compose-on-kubernetes/api/compose/v1beta2.ServiceConfig instead
    19  type ServiceConfig = api.ServiceConfig
    20  
    21  // ServicePortConfig is the port configuration for a service
    22  // Deprecated: Use github.com/docker/compose-on-kubernetes/api/compose/v1beta2.ServicePortConfig instead
    23  type ServicePortConfig = api.ServicePortConfig
    24  
    25  // FileObjectConfig is a config type for a file used by a service
    26  // Deprecated: Use github.com/docker/compose-on-kubernetes/api/compose/v1beta2.FileObjectConfig instead
    27  type FileObjectConfig = api.FileObjectConfig
    28  
    29  // SecretConfig for a secret
    30  // Deprecated: Use github.com/docker/compose-on-kubernetes/api/compose/v1beta2.SecretConfig instead
    31  type SecretConfig = api.SecretConfig
    32  
    33  // ConfigObjConfig is the config for the swarm "Config" object
    34  // Deprecated: Use github.com/docker/compose-on-kubernetes/api/compose/v1beta2.ConfigObjConfig instead
    35  type ConfigObjConfig = api.ConfigObjConfig
    36  
    37  // External identifies a Volume or Network as a reference to a resource that is
    38  // not managed, and should already exist.
    39  // External.name is deprecated and replaced by Volume.name
    40  // Deprecated: Use github.com/docker/compose-on-kubernetes/api/compose/v1beta2.External instead
    41  type External = api.External
    42  
    43  // FileReferenceConfig for a reference to a swarm file object
    44  // Deprecated: Use github.com/docker/compose-on-kubernetes/api/compose/v1beta2.FileReferenceConfig instead
    45  type FileReferenceConfig = api.FileReferenceConfig
    46  
    47  // ServiceConfigObjConfig is the config obj configuration for a service
    48  // Deprecated: Use github.com/docker/compose-on-kubernetes/api/compose/v1beta2.ServiceConfigObjConfig instead
    49  type ServiceConfigObjConfig = api.ServiceConfigObjConfig
    50  
    51  // ServiceSecretConfig is the secret configuration for a service
    52  // Deprecated: Use github.com/docker/compose-on-kubernetes/api/compose/v1beta2.ServiceSecretConfig instead
    53  type ServiceSecretConfig = api.ServiceSecretConfig
    54  
    55  // DeployConfig is the deployment configuration for a service
    56  // Deprecated: Use github.com/docker/compose-on-kubernetes/api/compose/v1beta2.DeployConfig instead
    57  type DeployConfig = api.DeployConfig
    58  
    59  // UpdateConfig is the service update configuration
    60  // Deprecated: Use github.com/docker/compose-on-kubernetes/api/compose/v1beta2.UpdateConfig instead
    61  type UpdateConfig = api.UpdateConfig
    62  
    63  // Resources the resource limits and reservations
    64  // Deprecated: Use github.com/docker/compose-on-kubernetes/api/compose/v1beta2.Resources instead
    65  type Resources = api.Resources
    66  
    67  // Resource is a resource to be limited or reserved
    68  // Deprecated: Use github.com/docker/compose-on-kubernetes/api/compose/v1beta2.Resource instead
    69  type Resource = api.Resource
    70  
    71  // RestartPolicy is the service restart policy
    72  // Deprecated: Use github.com/docker/compose-on-kubernetes/api/compose/v1beta2.RestartPolicy instead
    73  type RestartPolicy = api.RestartPolicy
    74  
    75  // Placement constraints for the service
    76  // Deprecated: Use github.com/docker/compose-on-kubernetes/api/compose/v1beta2.Placement instead
    77  type Placement = api.Placement
    78  
    79  // Constraints lists constraints that can be set on the service
    80  // Deprecated: Use github.com/docker/compose-on-kubernetes/api/compose/v1beta2.Constraints instead
    81  type Constraints = api.Constraints
    82  
    83  // Constraint defines a constraint and it's operator (== or !=)
    84  // Deprecated: Use github.com/docker/compose-on-kubernetes/api/compose/v1beta2.Constraint instead
    85  type Constraint = api.Constraint
    86  
    87  // HealthCheckConfig the healthcheck configuration for a service
    88  // Deprecated: Use github.com/docker/compose-on-kubernetes/api/compose/v1beta2.HealthCheckConfig instead
    89  type HealthCheckConfig = api.HealthCheckConfig
    90  
    91  // ServiceVolumeConfig are references to a volume used by a service
    92  // Deprecated: Use github.com/docker/compose-on-kubernetes/api/compose/v1beta2.ServiceVolumeConfig instead
    93  type ServiceVolumeConfig = api.ServiceVolumeConfig
    94  
    95  // StackPhase is the deployment phase of a stack
    96  // Deprecated: Use github.com/docker/compose-on-kubernetes/api/compose/v1beta2.StackPhase instead
    97  type StackPhase = api.StackPhase
    98  
    99  // These are valid conditions of a stack.
   100  const (
   101  	// StackAvailable means the stack is available.
   102  	// Deprecated: Use github.com/docker/compose-on-kubernetes/api/compose/v1beta2.StackAvailable instead
   103  	StackAvailable StackPhase = api.StackAvailable
   104  	// StackProgressing means the deployment is progressing.
   105  	// Deprecated: Use github.com/docker/compose-on-kubernetes/api/compose/v1beta2.StackProgressing instead
   106  	StackProgressing StackPhase = api.StackProgressing
   107  	// StackFailure is added in a stack when one of its members fails to be created
   108  	// or deleted.
   109  	// Deprecated: Use github.com/docker/compose-on-kubernetes/api/compose/v1beta2.StackFailure instead
   110  	StackFailure StackPhase = api.StackFailure
   111  )
   112  
   113  // StackStatus defines the observed state of Stack
   114  // Deprecated: Use github.com/docker/compose-on-kubernetes/api/compose/v1beta2.StackStatus instead
   115  type StackStatus = api.StackStatus