ecs

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultCPU default cpu allocation to a fargate task
	DefaultCPU = "256"

	// DefaultMemory default memory allocation to a fargate task
	DefaultMemory = "512"

	// ECSStreamPrefix the prefix used in the ECS cloudwatch log stream name
	ECSStreamPrefix = "ecs"

	// ECSLogGroupFormat the name format for ECS cloudwatch log group names
	ECSLogGroupFormat = "/aws/fargate/%s"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ECSLauncher

type ECSLauncher struct {
	// contains filtered or unexported fields
}

ECSLauncher used to launch containers in ECS, specifically fargate

func NewECSLauncher

func NewECSLauncher(cfgs ...*aws.Config) *ECSLauncher

NewECSLauncher create a new launcher

func (*ECSLauncher) CleanupTask

CleanupTask clean up ecs task definition

func (*ECSLauncher) DefineAndLaunch

DefineAndLaunch define and launch a container in ECS

func (*ECSLauncher) DefineTask

DefineTask create a container task definition

func (*ECSLauncher) GetTaskLogs

GetTaskLogs get task logs

func (*ECSLauncher) GetTaskStatus

GetTaskStatus get task status

func (*ECSLauncher) LaunchTask

LaunchTask run a container task

func (*ECSLauncher) WaitForTask

WaitForTask wait for task to complete

Jump to

Keyboard shortcuts

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