Documentation ¶
Index ¶
- func CopyFile(src, dst string) error
- func DumpVal(vals ...interface{})
- func GenerateCACertificate(certFile, keyFile, org string, bits int) error
- func GenerateCert(hosts []string, certFile, keyFile, caFile, caKeyFile, org string, bits int) error
- func GetBaseDir() string
- func GetDockerDir() string
- func GetHomeDir() string
- func GetMachineCacheDir() string
- func GetMachineCertDir() string
- func GetMachineDir() string
- func GetUsername() string
- func ValidateCertificate(addr, caCertPath, serverCertPath, serverKeyPath string) (bool, error)
- func WaitFor(f func() bool) error
- func WaitForDocker(ip string, daemonPort int) error
- func WaitForSpecific(f func() bool, maxAttempts int, waitInterval time.Duration) error
- type B2dUtils
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateCACertificate ¶
GenerateCACertificate generates a new certificate authority from the specified org and bit size and stores the resulting certificate and key file in the arguments.
func GenerateCert ¶
GenerateCert generates a new certificate signed using the provided certificate authority files and stores the result in the certificate file and key provided. The provided host names are set to the appropriate certificate fields.
func GetBaseDir ¶
func GetBaseDir() string
func GetDockerDir ¶
func GetDockerDir() string
func GetHomeDir ¶
func GetHomeDir() string
func GetMachineCacheDir ¶
func GetMachineCacheDir() string
func GetMachineCertDir ¶
func GetMachineCertDir() string
func GetMachineDir ¶
func GetMachineDir() string
func GetUsername ¶
func GetUsername() string
func ValidateCertificate ¶ added in v0.2.0
func WaitForDocker ¶ added in v0.2.0
Types ¶
type B2dUtils ¶
type B2dUtils struct {
// contains filtered or unexported fields
}
func NewB2dUtils ¶
func (*B2dUtils) CopyIsoToMachineDir ¶ added in v0.2.0
func (*B2dUtils) DownloadISO ¶
Download boot2docker ISO image for the given tag and save it at dest.
func (*B2dUtils) DownloadLatestBoot2Docker ¶ added in v0.2.0
func (*B2dUtils) GetLatestBoot2DockerReleaseURL ¶
Get the latest boot2docker release tag name (e.g. "v0.6.0"). FIXME: find or create some other way to get the "latest release" of boot2docker since the GitHub API has a pretty low rate limit on API requests