ssm

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Command added in v0.20.0

func Command() *cli.Command

func GetInstances

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

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
	Region  string
	Ports   string
}

func NewPortForward added in v0.20.0

func NewPortForward(profile, region, ports string) *PortForward

func (*PortForward) DoPortForward

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

func (*PortForward) Execute

func (p *PortForward) Execute(ctx context.Context) error

type Session

type Session struct {
	Profile string
	Region  string
	Shell   string
}

func NewSession added in v0.20.0

func NewSession(profile, region, shell string) *Session

func (*Session) DoSsm

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

func (*Session) Execute

func (p *Session) Execute(ctx context.Context) 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