ecs

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2023 License: MPL-2.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EcsProvider

type EcsProvider struct {
	Config    *options.Options
	AwsConfig aws.Config
	Log       log.Logger
	// contains filtered or unexported fields
}

func NewProvider

func NewProvider(ctx context.Context, options *options.Options, logs log.Logger) (*EcsProvider, error)

func (*EcsProvider) DeleteTask

func (p *EcsProvider) DeleteTask(ctx context.Context, workspaceId string) error

func (*EcsProvider) ExecuteCommand

func (p *EcsProvider) ExecuteCommand(ctx context.Context, workspaceId, user, command string, stdin io.Reader, stdout, stderr io.Writer) error

func (*EcsProvider) FindTask

func (p *EcsProvider) FindTask(ctx context.Context, workspaceId string) (*config.ContainerDetails, error)

func (*EcsProvider) RunTask

func (p *EcsProvider) RunTask(ctx context.Context, workspaceId string, runOptions *driver.RunOptions) error

func (*EcsProvider) StartSession

func (p *EcsProvider) StartSession(target string, port int) error

func (*EcsProvider) StartTask

func (p *EcsProvider) StartTask(ctx context.Context, workspaceId string) error

func (*EcsProvider) StopTask

func (p *EcsProvider) StopTask(ctx context.Context, workspaceId string) error

func (*EcsProvider) TargetArchitecture

func (p *EcsProvider) TargetArchitecture(ctx context.Context, workspaceId string) (string, error)

Jump to

Keyboard shortcuts

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