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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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