ec2

package
v0.0.113 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRemoter

func NewRemoter(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

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) 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