Documentation ¶
Index ¶
- func CheckConfirmation(stdin io.Reader, stdout io.Writer, name string) (bool, error)
- func DownloadBOSHCLI(binaries map[string]BinaryPaths) (string, error)
- func DownloadTerraformCLI(binaries map[string]BinaryPaths) (string, error)
- func EightRandomLetters() string
- func FindUserIP() (string, error)
- func GeneratePasswordWithLength(length int) string
- func GenerateSSHKeyPair() ([]byte, []byte, string, error)
- func ParseVersionResources(versionFile []byte) map[string]Resource
- func RenderTemplate(name string, templateStr string, params interface{}) ([]byte, error)
- type BinaryPaths
- type Resource
- 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 DownloadBOSHCLI ¶
func DownloadBOSHCLI(binaries map[string]BinaryPaths) (string, error)
DownloadBOSHCLI returns the path of the downloaded bosh-cli
func DownloadTerraformCLI ¶
func DownloadTerraformCLI(binaries map[string]BinaryPaths) (string, error)
DownloadTerraformCLI returns the path of the downloaded terraform-cli
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 GenerateSSHKeyPair ¶
GenerateSSHKeyPair generates a new ssh public key pair http://stackoverflow.com/questions/21151714/go-generate-an-ssh-public-key
func ParseVersionResources ¶
Types ¶
type BinaryPaths ¶
type Resource ¶
type Resource struct { URL string `json:"url"` Version string `json:"version"` SHA1 string `json:"sha1"` }
Resource safely exposes the json parameters of a resource
Source Files ¶
Click to show internal directories.
Click to hide internal directories.