ssh

package
v0.0.0-...-7d86ac5 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2021 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBaseFlags

func GetBaseFlags() []string

func GetInstances

func GetInstances(input *GetInstancesInput) []inst.Instance

func GetKey

func GetKey(key string) []string

func GetKeys

func GetKeys(dir string) []string

func GetLoginName

func GetLoginName(flags *pflag.FlagSet) []string

func GetOptions

func GetOptions(flags *pflag.FlagSet) []string

func GetPort

func GetPort(flags *pflag.FlagSet) []string

func GetTarget

func GetTarget(flags *pflag.FlagSet, instance *inst.Instance) string

func PromptInstance

func PromptInstance(flags *pflag.FlagSet) *inst.Instance

func PromptKey

func PromptKey(instance *inst.Instance, cache *KeyCache) string

func SSH

func SSH(flags *pflag.FlagSet, instance *inst.Instance, key string)

func SelectInstance

func SelectInstance(instances *[]inst.Instance) inst.Instance

func SelectKey

func SelectKey(instance *inst.Instance, keys []string) string

func ValidateFlags

func ValidateFlags(flags *pflag.FlagSet)

Types

type CachePath

type CachePath struct {
	Dir  string
	Ext  string
	Name string
	Path string
}

func GetCachePath

func GetCachePath() *CachePath

type GetInstancesInput

type GetInstancesInput struct {
	Session *session.Session
	SSM     bool
	Filter  func(instance inst.Instance) bool
}

type KeyCache

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

func NewKeyCache

func NewKeyCache(cachepath string) *KeyCache

func (*KeyCache) Check

func (kc *KeyCache) Check(id string) (string, bool)

func (*KeyCache) Save

func (kc *KeyCache) Save(instance *inst.Instance, keypath string)

type KeyEntry

type KeyEntry struct {
	Location string
	Hash     string
}

Jump to

Keyboard shortcuts

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