ssm

package
v0.19.0-rc0 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2023 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetInstances

func GetInstances(ctx context.Context, cfg aws.Config) (*ec2.DescribeInstancesOutput, error)

func Init

func Init(parser *flags.Parser)

func SSMGetInstanceID

func SSMGetInstanceID(ssmOutputs []*awsssm.DescribeInstanceInformationOutput) []string

Types

type FzfData

type FzfData struct {
	Instances []Instance
}

func NewFzfData

func NewFzfData(instancesOutput *ec2.DescribeInstancesOutput) *FzfData

func (FzfData) FzfInputLen

func (f FzfData) FzfInputLen() int

func (FzfData) FzfInputList

func (f FzfData) FzfInputList() []string

type Instance

type Instance struct {
	ec2types.Instance
}

func (Instance) PrintDetails

func (i Instance) PrintDetails() string

func (Instance) PrintName

func (i Instance) PrintName() string

type PortForward

type PortForward struct {
	Profile string `short:"p" long:"profile" env:"AWS_PROFILE" default:"default" description:"What profile to use"`
	Region  string `` /* 136-byte string literal not displayed */
	Ports   string `long:"ports" default:"8080:localhost:80" description:"Binds remote port to local, '<local>:<remote host>:<remote>'"`
}

func (*PortForward) DoPortForward

func (p *PortForward) DoPortForward(ctx context.Context, id, local, host, remote string) error

func (*PortForward) Execute

func (p *PortForward) Execute(args []string) error

type Session

type Session struct {
	Profile string `short:"p" long:"profile" env:"AWS_PROFILE" default:"default" description:"What profile to use"`
	Region  string `` /* 136-byte string literal not displayed */
	Shell   string `short:"s" long:"shell" default:"bash" description:"What shell to use on the remote instance"`
}

func (*Session) DoSsm

func (p *Session) DoSsm(ctx context.Context, id string) error

func (*Session) Execute

func (p *Session) Execute(args []string) error

type Tui

type Tui struct {
	// contains filtered or unexported fields
}

func NewTui

func NewTui() *Tui

Jump to

Keyboard shortcuts

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