models

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 15, 2017 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DeploymentStatusPending captures enum value "pending"
	DeploymentStatusPending string = "pending"
	// DeploymentStatusRunning captures enum value "running"
	DeploymentStatusRunning string = "running"
	// DeploymentStatusCompleted captures enum value "completed"
	DeploymentStatusCompleted string = "completed"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateEnvironmentRequest

type CreateEnvironmentRequest struct {

	// instance group
	// Required: true
	InstanceGroup *InstanceGroup `json:"instanceGroup"`

	// name
	// Required: true
	// Pattern: ^[a-zA-Z0-9-_]{1,30}$
	Name *string `json:"name"`

	// task definition
	// Required: true
	TaskDefinition *string `json:"taskDefinition"`
}

CreateEnvironmentRequest Request object to CreateEnvironment api swagger:model CreateEnvironmentRequest

func (*CreateEnvironmentRequest) Validate

func (m *CreateEnvironmentRequest) Validate(formats strfmt.Registry) error

Validate validates this create environment request

type Deployment

type Deployment struct {

	// environment name
	// Required: true
	EnvironmentName *string `json:"environmentName"`

	// List of ECS container-instance ARNs where deployment failed
	FailedInstances []string `json:"failedInstances"`

	// id
	// Required: true
	ID *string `json:"id"`

	// status
	// Required: true
	Status *string `json:"status"`

	// task definition
	// Required: true
	TaskDefinition *string `json:"taskDefinition"`
}

Deployment deployment swagger:model Deployment

func (*Deployment) Validate

func (m *Deployment) Validate(formats strfmt.Registry) error

Validate validates this deployment

type Deployments

type Deployments struct {

	// items
	// Required: true
	Items []*Deployment `json:"items"`

	// next token
	NextToken string `json:"nextToken,omitempty"`
}

Deployments Paginated list of deployments swagger:model Deployments

func (*Deployments) Validate

func (m *Deployments) Validate(formats strfmt.Registry) error

Validate validates this deployments

type Environment

type Environment struct {

	// The token used to verify that the deployment is being kicked off on the correct version of the environment
	DeploymentToken string `json:"deploymentToken,omitempty"`

	// health
	// Required: true
	Health HealthStatus `json:"health"`

	// instance group
	// Required: true
	InstanceGroup *InstanceGroup `json:"instanceGroup"`

	// Name of the environment
	// Required: true
	Name *string `json:"name"`

	// TaskDefinition used to start tasks under this environment
	TaskDefinition string `json:"taskDefinition,omitempty"`
}

Environment A representation of environment managed by scheduler via deployments swagger:model Environment

func (*Environment) Validate

func (m *Environment) Validate(formats strfmt.Registry) error

Validate validates this environment

type Environments

type Environments struct {

	// items
	// Required: true
	Items []*Environment `json:"items"`

	// next token
	NextToken string `json:"nextToken,omitempty"`
}

Environments Paginated list of environments swagger:model Environments

func (*Environments) Validate

func (m *Environments) Validate(formats strfmt.Registry) error

Validate validates this environments

type HealthStatus

type HealthStatus string

HealthStatus health status swagger:model HealthStatus

const (
	// HealthStatusHealthy captures enum value "healthy"
	HealthStatusHealthy HealthStatus = "healthy"
	// HealthStatusUnhealthy captures enum value "unhealthy"
	HealthStatusUnhealthy HealthStatus = "unhealthy"
)

func (HealthStatus) Validate

func (m HealthStatus) Validate(formats strfmt.Registry) error

Validate validates this health status

type InstanceGroup

type InstanceGroup struct {

	// Cluster of instances, e.g. ECS Cluster
	Cluster string `json:"cluster,omitempty"`
}

InstanceGroup Structure to group instances together swagger:model InstanceGroup

func (*InstanceGroup) Validate

func (m *InstanceGroup) Validate(formats strfmt.Registry) error

Validate validates this instance group

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL