aws

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MAX_RESULTS_CLUSTER = 100
	MAX_RESULTS_SERVICE = 100
	MAX_RESULTS_TASK    = 100
)

Variables

This section is empty.

Functions

func GetProfiles

func GetProfiles() ([]string, error)

GetProfiles returns AWS profile names. Get profile names from ~/.aws/config.

func LoadConfig

func LoadConfig(ctx context.Context, profile string) (aws.Config, error)

Types

type ECS

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

func New

func New(cfg *aws.Config) *ECS

func (*ECS) ListClusterNames

func (e *ECS) ListClusterNames(ctx context.Context) ([]string, error)

func (*ECS) ListContainerNames

func (e *ECS) ListContainerNames(ctx context.Context, cluster string, task string) ([]string, error)

func (*ECS) ListServiceNames

func (e *ECS) ListServiceNames(ctx context.Context, cluster string) ([]string, error)

func (*ECS) ListTaskNames

func (e *ECS) ListTaskNames(ctx context.Context, cluster string, service string) ([]string, error)

func (*ECS) StartSession

func (e *ECS) StartSession(ctx context.Context, cluster string, task string, container string, shell string, region string) error

Jump to

Keyboard shortcuts

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