controller

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetContainers

func GetContainers(ctx context.Context, client *ecs.Client, cluster, taskID string) ([]string, error)

func GetRuntimeID

func GetRuntimeID(ctx context.Context, client *ecs.Client, taskID, cluster, container string) (string, error)

func LoadConfig

func LoadConfig(cfg aws.Config) *ecs.Client

func Select

func Select(field string, items []string) (string, error)

func SelectCluster

func SelectCluster(ctx context.Context, client *ecs.Client) (string, error)

func SelectContainer

func SelectContainer(ctx context.Context, client *ecs.Client, cluster, taskID string) (string, error)

func SelectProfile

func SelectProfile() (string, error)

func SelectService

func SelectService(ctx context.Context, client *ecs.Client, cluster string) (string, error)

func SelectTaskIDs

func SelectTaskIDs(ctx context.Context, client *ecs.Client, cluster, service string) (string, error)

Types

type Controller

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

func New

func New(client *ecs.Client) *Controller

func (*Controller) Run

func (ctrl *Controller) Run(ctx context.Context, region, cluster, taskID, container, runtimeID, command string) error

Jump to

Keyboard shortcuts

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