Documentation
¶
Index ¶
- Variables
- func CallClear()
- func CheckIPAddress(ip string) error
- func GetAWSInstance(profile, region, instance string) string
- func PrintKeyandIP(k, v string)
- func PrintKeyandUser(k, v string)
- func RemoveKeyFromLocalDB(db *bolt.DB, user, key string)
- func SaveKeyInLocalDB(db *bolt.DB, user, key, ip string)
- func SearchUserInLocalDB(db *bolt.DB, user string) string
- func SetupLocalDB() *bolt.DB
Constants ¶
This section is empty.
Variables ¶
View Source
var Prompt_confirmation = *&survey.Select{ Message: "Add RSA key?", Options: []string{"Yes", "No"}, }
View Source
var SimpleConnection = []*survey.Question{ { Name: "key", Prompt: &survey.Input{Message: "What is the public key?"}, Validate: survey.Required, Transform: survey.Title, }, { Name: "ip", Prompt: &survey.Input{Message: "What is the server IP?"}, Validate: survey.ComposeValidators(survey.Required, func(ans interface{}) error { if err := CheckIPAddress(ans.(string)); err != nil { return err } return nil }), Transform: survey.Title, }, }
Functions ¶
func CheckIPAddress ¶
func GetAWSInstance ¶
func PrintKeyandIP ¶
func PrintKeyandIP(k, v string)
func PrintKeyandUser ¶
func PrintKeyandUser(k, v string)
func RemoveKeyFromLocalDB ¶
func SaveKeyInLocalDB ¶
func SetupLocalDB ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.