ecs

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2023 License: MPL-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecuteCommand added in v0.0.19

func ExecuteCommand(input *ExecInput) error

func GetClusters added in v0.0.19

func GetClusters() ([]string, error)

func GetContainers added in v0.0.19

func GetContainers(cluster string, task string) ([]string, error)

func GetRunningTasks added in v0.0.19

func GetRunningTasks(cluster string, service string) ([]string, error)

func GetServices added in v0.0.19

func GetServices(cluster string) ([]string, error)

Types

type ExecInput added in v0.0.19

type ExecInput struct {
	Cluster     string
	Service     string
	Task        string
	Container   string
	Interactive bool
	Command     string
}

type Task

type Task struct {
	// Used by CLI to perform aws actions
	CLIRoleArn string

	Cluster            string
	TaskDefinitionName string
	Name               string
	Image              string
	ImageVersion       string
	ExecutionRoleArn   string
	TaskRoleArn        string
	Family             string
	LogGroupName       string
	Detach             bool
	Public             bool
	Fargate            bool
	Deregister         bool
	NoCleanup          bool
	Wait               bool
	Count              int64
	Memory             int64
	MemoryReservation  int64
	CPUReservation     int64
	Publish            []string
	Environment        []string
	SecurityGroups     []string
	SubnetFilters      []string
	Volumes            []string
	EfsVolumes         []string
	Command            []string
	Tag                []string
	TaskDefinition     ecs.TaskDefinition
	Tasks              []*ecs.Task
	Debug              bool
}

Task represents a single, runnable task

func (*Task) Check

func (t *Task) Check()

Check the container is still running

func (*Task) Run

func (t *Task) Run() error

Run a task

func (*Task) RunTaskDef added in v0.1.0

func (t *Task) RunTaskDef() error

func (*Task) Stop

func (t *Task) Stop()

Stop a task

func (*Task) Stream

func (t *Task) Stream()

Stream logs to stdout

Jump to

Keyboard shortcuts

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