Documentation ¶
Index ¶
- type CreateServiceInput
- type CreateTaskDefinitionInput
- type Deployment
- type ECS
- func (ecs *ECS) AddEnvVarsToTaskDefinition(taskDefinitionArn string, envVars []EnvVar, secretVars []Secret) string
- func (ecs *ECS) CreateCluster() (string, error)
- func (ecs *ECS) CreateService(input *CreateServiceInput)
- func (ecs *ECS) CreateTaskDefinition(input *CreateTaskDefinitionInput) string
- func (ecs *ECS) DescribeService(serviceName string) Service
- func (ecs *ECS) DescribeServices(serviceArns []string) []Service
- func (ecs *ECS) DescribeTaskDefinition(taskDefinitionArn string) *awsecs.DescribeTaskDefinitionOutput
- func (ecs *ECS) DescribeTasks(taskIds []string) []Task
- func (ecs *ECS) DescribeTasksForService(serviceName string) []Task
- func (ecs *ECS) DescribeTasksForTaskGroup(taskGroupName string) []Task
- func (ecs *ECS) DestroyService(serviceName string)
- func (ecs *ECS) GetCpuAndMemoryFromTaskDefinition(taskDefinitionArn string) (string, string)
- func (ecs *ECS) GetDesiredCount(serviceName string) int64
- func (ecs *ECS) GetEnvVarsFromTaskDefinition(taskDefinitionArn string) []EnvVar
- func (ecs *ECS) GetRevisionNumber(taskDefinitionArn string) string
- func (ecs *ECS) GetSecretVarsFromTaskDefinition(taskDefinitionArn string) []EnvVar
- func (ecs *ECS) GetTaskDefinitionARN(region string, account string, family string, revisionNumber string) string
- func (ecs *ECS) GetTaskFamily(taskDefinitionArn string) string
- func (ecs *ECS) ListServices() []Service
- func (ecs *ECS) ListTaskGroups() []*TaskGroup
- func (ecs *ECS) RemoveEnvVarsFromTaskDefinition(taskDefinitionArn string, keys []string) string
- func (ecs *ECS) ResolveRevisionNumber(taskDefinitionArn string, revisionExpression string) string
- func (ecs *ECS) RestartService(serviceName string)
- func (ecs *ECS) RunTask(i *RunTaskInput)
- func (ecs *ECS) SetDesiredCount(serviceName string, desiredCount int64)
- func (ecs *ECS) SortEnvVars(envVars []EnvVar) []EnvVar
- func (ecs *ECS) StopTask(taskId string)
- func (ecs *ECS) StopTasks(taskIds []string)
- func (ecs *ECS) UpdateServiceTaskDefinition(serviceName, taskDefinitionArn string)
- func (ecs *ECS) UpdateTaskDefinitionCpuAndMemory(taskDefinitionArn, cpu, memory string) string
- func (ecs *ECS) UpdateTaskDefinitionImage(taskDefinitionArn, image string) string
- func (ecs *ECS) UpdateTaskDefinitionImageAndEnvVars(taskDefinitionArnOrFamily string, image string, environmentVariables []EnvVar, ...) string
- func (ecs *ECS) WaitUntilServiceStable(serviceName string)
- type EnvVar
- type Event
- type RunTaskInput
- type Secret
- type Service
- type ServiceRegistry
- type Task
- type TaskGroup
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateServiceInput ¶
type CreateTaskDefinitionInput ¶
type CreateTaskDefinitionInput struct { Cpu string EnvVars []EnvVar ExecutionRoleArn string Image string Memory string Name string Port int64 LogGroupName string LogRegion string SecretVars []Secret TaskRole string Type string Tags []*awsecs.Tag }
CreateTaskDefinitionInput ...
func (*CreateTaskDefinitionInput) Environment ¶
func (input *CreateTaskDefinitionInput) Environment() []*awsecs.KeyValuePair
Environment converts envvars to AWS format
func (*CreateTaskDefinitionInput) Secrets ¶ added in v0.6.0
func (input *CreateTaskDefinitionInput) Secrets() []*awsecs.Secret
Secrets converts secrets to AWS format
type Deployment ¶
type ECS ¶
type ECS struct { ClusterName string // contains filtered or unexported fields }
func (*ECS) AddEnvVarsToTaskDefinition ¶
func (ecs *ECS) AddEnvVarsToTaskDefinition(taskDefinitionArn string, envVars []EnvVar, secretVars []Secret) string
AddEnvVarsToTaskDefinition registers a new task definition with the envvars appended
func (*ECS) CreateCluster ¶
func (*ECS) CreateService ¶
func (ecs *ECS) CreateService(input *CreateServiceInput)
func (*ECS) CreateTaskDefinition ¶
func (ecs *ECS) CreateTaskDefinition(input *CreateTaskDefinitionInput) string
CreateTaskDefinition creates a task definition from an input
func (*ECS) DescribeService ¶
func (*ECS) DescribeServices ¶
func (*ECS) DescribeTaskDefinition ¶
func (ecs *ECS) DescribeTaskDefinition(taskDefinitionArn string) *awsecs.DescribeTaskDefinitionOutput
DescribeTaskDefinition fetches a task definition output from cache or aws (includes the taskdefinition itself along with its tags)
func (*ECS) DescribeTasks ¶
func (*ECS) DescribeTasksForService ¶
func (*ECS) DescribeTasksForTaskGroup ¶
func (*ECS) DestroyService ¶
func (*ECS) GetCpuAndMemoryFromTaskDefinition ¶
GetCpuAndMemoryFromTaskDefinition returns the cpu/memory from a task definition
func (*ECS) GetDesiredCount ¶
func (*ECS) GetEnvVarsFromTaskDefinition ¶
GetEnvVarsFromTaskDefinition retrieves envvars from an existing task definition
func (*ECS) GetRevisionNumber ¶ added in v0.5.0
GetRevisionNumber returns the revision number from a task definition
func (*ECS) GetSecretVarsFromTaskDefinition ¶ added in v0.6.0
GetSecretVarsFromTaskDefinition retrieves secret vars from an existing task definition
func (*ECS) GetTaskDefinitionARN ¶ added in v0.5.0
func (ecs *ECS) GetTaskDefinitionARN(region string, account string, family string, revisionNumber string) string
GetTaskDefinitionARN builds an ARN
func (*ECS) GetTaskFamily ¶ added in v0.5.0
GetTaskFamily returns the task family from a task definition ARN
func (*ECS) ListServices ¶
func (*ECS) ListTaskGroups ¶
func (*ECS) RemoveEnvVarsFromTaskDefinition ¶
RemoveEnvVarsFromTaskDefinition registers a new task definition with the specified keys removed
func (*ECS) ResolveRevisionNumber ¶ added in v0.5.0
ResolveRevisionNumber returns a task defintion revision number by absolute value or expression
func (*ECS) RestartService ¶ added in v0.2.3
func (*ECS) RunTask ¶
func (ecs *ECS) RunTask(i *RunTaskInput)
func (*ECS) SetDesiredCount ¶
func (*ECS) SortEnvVars ¶ added in v0.6.0
SortEnvVars sorts a slice of EnvVar's by Key
func (*ECS) UpdateServiceTaskDefinition ¶
func (*ECS) UpdateTaskDefinitionCpuAndMemory ¶
UpdateTaskDefinitionCpuAndMemory registers a new task definition with the cpu/memory
func (*ECS) UpdateTaskDefinitionImage ¶
UpdateTaskDefinitionImage registers a new task definition with the updated image
func (*ECS) UpdateTaskDefinitionImageAndEnvVars ¶ added in v0.3.0
func (ecs *ECS) UpdateTaskDefinitionImageAndEnvVars(taskDefinitionArnOrFamily string, image string, environmentVariables []EnvVar, replaceVars bool, secretVariables []Secret) string
UpdateTaskDefinitionImageAndEnvVars creates a new, updated task definition based on the specified image and env vars. Note that any existing envvars are replaced by the new ones
func (*ECS) WaitUntilServiceStable ¶ added in v0.8.0
type RunTaskInput ¶
type Service ¶
type Service struct { Cluster string Cpu string Deployments []Deployment DesiredCount int64 EnvVars []EnvVar Events []Event Image string Memory string Name string PendingCount int64 RunningCount int64 SecurityGroupIds []string ServiceRegistries []ServiceRegistry TargetGroupArn string TaskDefinitionArn string TaskRole string SecretVars []EnvVar SubnetIds []string Status string }
func (*Service) AddDeployment ¶
func (s *Service) AddDeployment(d Deployment)