ec2

package
v0.0.135 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRemoter

func NewRemoter(ctx context.Context, osWriters logging.OsWriters, source outputs.RetrieverSource, 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"`
}

func (*Outputs) AdminerConfig added in v0.0.108

func (o *Outputs) AdminerConfig() aws.Config

func (*Outputs) InitializeCreds added in v0.0.133

func (o *Outputs) InitializeCreds(source outputs.RetrieverSource, ws *types.Workspace)

type Remoter

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

func (Remoter) Exec

func (r Remoter) Exec(ctx context.Context, options admin.RemoteOptions, cmd []string) error

func (Remoter) Run added in v0.0.135

func (r Remoter) Run(ctx context.Context, options admin.RunOptions, cmd []string) error

func (Remoter) Ssh

func (r Remoter) Ssh(ctx context.Context, options admin.RemoteOptions) error

Jump to

Keyboard shortcuts

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