ecs

package
v3.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2025 License: BSD-3-Clause Imports: 8 Imported by: 0

README

go-aws-ecs

Go package for basic AWS ECS related operations.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(ctx context.Context, uri string) (*aws_ecs.Client, error)

func NewService

func NewService(uri string) (*aws_ecs.Client, error)

func WaitForTasksToComplete

func WaitForTasksToComplete(ctx context.Context, ecs_client *aws_ecs.Client, opts *WaitTasksOptions) error

Types

type TaskOptions

type TaskOptions struct {
	Task            string
	Container       string
	Cluster         string
	LaunchType      string
	PlatformVersion string
	PublicIP        string
	Subnets         []string
	SecurityGroups  []string
}

type TaskResponse

type TaskResponse struct {
	Tasks      []string
	TaskOutput *aws_ecs.RunTaskOutput
}

func LaunchTask

func LaunchTask(ctx context.Context, ecs_client *aws_ecs.Client, task_opts *TaskOptions, cmd ...string) (*TaskResponse, error)

type WaitTasksOptions

type WaitTasksOptions struct {
	Cluster  string
	TaskArns []string
	Timeout  time.Duration
	Interval time.Duration
	Logger   *log.Logger
}

Jump to

Keyboard shortcuts

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