ecs

package
v0.0.83 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2022 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecCommand

func ExecCommand(ctx context.Context, infra Outputs, taskId string, cmd string, parameters map[string][]string) error

func GetRandomTask

func GetRandomTask(ctx context.Context, infra Outputs) (string, error)

func GetService

func GetService(ctx context.Context, infra Outputs) (*ecstypes.Service, error)

func GetTargetGroupHealth

func GetTargetGroupHealth(ctx context.Context, infra Outputs, targetGroupArn string) ([]elbv2types.TargetHealthDescription, error)

func GetTasks

func GetTasks(ctx context.Context, infra Outputs) ([]string, error)

func NewRemoter

func NewRemoter(osWriters logging.OsWriters, nsConfig api.Config, appDetails app.Details) (admin.Remoter, error)

func NewStatuser

func NewStatuser(osWriters logging.OsWriters, nsConfig api.Config, appDetails app.Details) (admin.Statuser, error)

Types

type ClusterOutputs

type ClusterOutputs struct {
	ClusterArn string `ns:"cluster_arn"`
}

type Outputs

type Outputs struct {
	Region            string     `ns:"region"`
	ServiceName       string     `ns:"service_name"`
	TaskArn           string     `ns:"task_arn"`
	MainContainerName string     `ns:"main_container_name,optional"`
	Deployer          nsaws.User `ns:"deployer,optional"`

	Cluster ClusterOutputs `ns:",connectionContract:cluster/aws/ecs:*"`
}

type Remoter

type Remoter struct {
	OsWriters logging.OsWriters
	Details   app.Details
	Infra     Outputs
}

func (Remoter) Exec

func (r Remoter) Exec(ctx context.Context, task string, cmd string) error

func (Remoter) Ssh

func (r Remoter) Ssh(ctx context.Context, task string, forwards []config.PortForward) error

type Statuser

type Statuser struct {
	OsWriters logging.OsWriters
	Details   app.Details
	Infra     Outputs
}

func (Statuser) Status

func (s Statuser) Status(ctx context.Context) (admin.StatusReport, error)

func (Statuser) StatusDetail

func (s Statuser) StatusDetail(ctx context.Context) (admin.StatusDetailReports, error)

Jump to

Keyboard shortcuts

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