ui

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2023 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LaunchType int = iota
	Cluster
	TaskDefinition
	Vpc
	Subnets
	SecurityGroups
	Task
	Tasks
	Container
	Bucket
	Complete
)
View Source
const Back = "← Back"
View Source
const NewBucket = "→ New Bucket"

Variables

View Source
var (
	Yellow = color.New(color.FgYellow).SprintFunc()
	Green  = color.New(color.FgGreen).SprintFunc()
)

Functions

func AskBucket

func AskBucket(ctx context.Context, s3Client *s3.Client, region string, addBack bool) (string, error)

func AskCluster

func AskCluster(ctx context.Context, ecsClient *ecs.Client, addBack bool) (string, error)

func AskContainer

func AskContainer(ctx context.Context, ecsClient *ecs.Client, cluster string, task string, addBack bool) (string, error)

func AskLaunchType

func AskLaunchType(ecsClient *ecs.Client, addBack bool) (string, error)

func AskSecurityGroups

func AskSecurityGroups(ctx context.Context, ec2Client *ec2.Client, vpc string) ([]string, error)

func AskSubnets

func AskSubnets(ctx context.Context, ec2Client *ec2.Client, vpc string) ([]string, error)

func AskTask

func AskTask(ctx context.Context, ecsClient *ecs.Client, cluster string, addBack bool) (string, error)

func AskTaskDefinition

func AskTaskDefinition(ctx context.Context, ecsClient *ecs.Client, addBack bool) (string, error)

func AskTasks

func AskTasks(ctx context.Context, ecsClient *ecs.Client, cluster string) ([]string, error)

func AskVpc

func AskVpc(ctx context.Context, ec2Client *ec2.Client, addBack bool) (string, error)

func CreateSppiner

func CreateSppiner(suffix string) (*spinner.Spinner, error)

func PrintTaskProgress

func PrintTaskProgress(ctx context.Context, ecsClient *ecs.Client, cluster string, taskIds []string, p Progress) error

Types

type Progress

type Progress struct {
	Status     string
	Suffix     string
	Completed  string
	PrintError bool
}

Jump to

Keyboard shortcuts

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