Documentation ¶
Index ¶
- Variables
- func CopyFile(src, dst string) error
- func DumpVal(vals ...interface{})
- func GenerateRandomID() string
- func GetHomeDir() string
- func GetUsername() string
- func TruncateID(id string) string
- func WaitFor(f func() bool) error
- func WaitForSpecific(f func() bool, maxAttempts int, waitInterval time.Duration) error
- func WaitForSpecificOrError(f func() (bool, error), maxAttempts int, waitInterval time.Duration) error
- type B2dUtils
- func (b *B2dUtils) CopyIsoToMachineDir(isoURL, machineName string) error
- func (b *B2dUtils) DownloadISO(dir, file, isoUrl string) error
- func (b *B2dUtils) DownloadISOFromURL(latestReleaseUrl string) error
- func (b *B2dUtils) DownloadLatestBoot2Docker(apiUrl string) error
- func (b *B2dUtils) GetLatestBoot2DockerReleaseURL(apiUrl string) (string, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
GithubApiToken string
)
Functions ¶
func GetHomeDir ¶
func GetHomeDir() string
TODO: Having this here just strikes me as dangerous, but some of the drivers depend on it ;_;
func GetUsername ¶
func GetUsername() string
func TruncateID ¶
Following two functions are from github.com/docker/docker/utils module. It was way overkill to include the whole module, so we just have these bits that we're using here.
func WaitForSpecific ¶
Types ¶
type B2dUtils ¶
type B2dUtils struct {
// contains filtered or unexported fields
}
func NewB2dUtils ¶
func (*B2dUtils) CopyIsoToMachineDir ¶
func (*B2dUtils) DownloadISO ¶
Download boot2docker ISO image for the given tag and save it at dest.
func (*B2dUtils) DownloadISOFromURL ¶
func (*B2dUtils) DownloadLatestBoot2Docker ¶
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
Click to show internal directories.
Click to hide internal directories.