Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Login ¶
Login creates psedo terminal for ssh, and can handle event. this will allow us to add more functionality over ssh. but currently as it Login does not have terminal feature, it is not used for ssh session
func PublicKeyFile ¶
func PublicKeyFile(file string) (ssh.AuthMethod, error)
PublicKeyFile reads pem file for ssh
Types ¶
type Query ¶
type Query struct { Name string Question string DefaultValue string AnswerType string Answer string }
Query struct type to handle user input and Question
func (*Query) InType ¶
func (q *Query) InType() interface{}
InType Convert user Input into the format user wants
func (Query) Validate ¶
func (q Query) Validate(fn Validation) error
Validate Handle user input validation
type ServerList ¶
ServerList contains requires ec2 instance details
func GetServersList ¶
func GetServersList(config aws.Config, tag string, value string) []ServerList
GetServersList provides list of aws server based on the filter params
type Validation ¶
Validation defines validation function to be passed in struct for user input validation
Click to show internal directories.
Click to hide internal directories.