ec2

package
v0.0.68 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2022 License: MIT Imports: 9 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, cmd string, parameters map[string][]string) error

func NewRemoter

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

Types

type Outputs

type Outputs struct {
	Region     string     `ns:"region"`
	InstanceId string     `ns:"instance_id"`
	Adminer    nsaws.User `ns:"adminer,optional"`
}

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

Jump to

Keyboard shortcuts

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