ssh

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: 18 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

Types

type FzfData added in v0.11.0

type FzfData struct {
	Instances []Instance
}

func NewFzfData added in v0.11.0

func NewFzfData(instancesOutput *ec2.DescribeInstancesOutput) *FzfData

func (FzfData) FzfInputLen added in v0.11.0

func (f FzfData) FzfInputLen() int

func (FzfData) FzfInputList added in v0.11.0

func (f FzfData) FzfInputList() []string

type Instance added in v0.11.0

type Instance struct {
	ec2types.Instance
}

func (Instance) PrintDetails added in v0.11.0

func (i Instance) PrintDetails() string

func (Instance) PrintName added in v0.11.0

func (i Instance) PrintName() string

type Ssh added in v0.12.0

type Ssh struct {
	Profile string
	User    string
	Key     string
}

func New added in v0.20.0

func New(profile, user, key string) *Ssh

func (*Ssh) DoSsh added in v0.12.0

func (p *Ssh) DoSsh(ip string)

func (*Ssh) Execute added in v0.12.0

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

func (*Ssh) GetInstances added in v0.12.0

func (p *Ssh) GetInstances(ctx context.Context) (*ec2.DescribeInstancesOutput, error)

type Tui added in v0.11.0

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

func NewTui added in v0.11.0

func NewTui() *Tui

Jump to

Keyboard shortcuts

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