Documentation ¶
Index ¶
- func CheckConfirmation(stdin io.Reader, stdout io.Writer, name string) (bool, error)
- func FindUserIP() (string, error)
- func GeneratePassword() string
- func GeneratePasswordWithLength(length int) string
- func GenerateSSHKeyPair() ([]byte, []byte, error)
- func Indent(countStr, field string) string
- func RenderTemplate(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 FindUserIP ¶
FindUserIP gets the user's public IP by querying whatismyip.akamai.com
func GeneratePasswordWithLength ¶
GeneratePasswordWithLength a random password with the given length
func GenerateSSHKeyPair ¶
GenerateSSHKeyPair generates a new ssh public key pair http://stackoverflow.com/questions/21151714/go-generate-an-ssh-public-key
func RenderTemplate ¶
RenderTemplate renders a template to a string
Types ¶
Click to show internal directories.
Click to hide internal directories.