Documentation ¶
Index ¶
- func CheckConfirmation(stdin io.Reader, stdout io.Writer, name string) (bool, error)
- func EightRandomLetters() string
- func FindUserIP() (string, error)
- func GeneratePasswordWithLength(length int) string
- func GenerateRSAKeyPair() ([]byte, []byte, error)
- func GenerateSSHKeyPair() ([]byte, []byte, string, error)
- func RenderTemplate(name string, templateStr string, params interface{}) ([]byte, error)
- type TempDir
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckConfirmation ¶
CheckConfirmation prompts the user for confirmation and returns true IFF the user responds with 'yes'
func EightRandomLetters ¶
func EightRandomLetters() string
EightRandomLetters generates a random string
func FindUserIP ¶
FindUserIP gets the user's public IP by querying whatismyip.akamai.com
func GeneratePasswordWithLength ¶
GeneratePasswordWithLength a random password with the given length
func GenerateRSAKeyPair ¶
GenerateRSAKeyPair generates a new RSA key pair https://stackoverflow.com/questions/13555085/save-and-load-crypto-rsa-privatekey-to-and-from-the-disk
func GenerateSSHKeyPair ¶
GenerateSSHKeyPair generates a new ssh public key pair http://stackoverflow.com/questions/21151714/go-generate-an-ssh-public-key
Types ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.