Documentation ¶
Index ¶
- Variables
- func CopyFile(src, dst string) error
- func GenerateRandomID() string
- func GetHomeDir() string
- func GetUsername() string
- func MakeDiskImage(publicSSHKeyPath string) (*bytes.Buffer, error)
- 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) UpdateISOCache(isoURL string) error
- type MultiError
- type ReaderWithProgress
Constants ¶
This section is empty.
Variables ¶
View Source
var (
AUFSBugB2DVersions = map[string]string{
"v1.9.1": "https://github.com/docker/docker/issues/18180",
}
)
View Source
var (
GithubAPIToken string
)
Functions ¶
func GetHomeDir ¶
func GetHomeDir() string
GetHomeDir returns the home directory TODO: Having this here just strikes me as dangerous, but some of the drivers depend on it ;_;
func GetUsername ¶
func GetUsername() string
func MakeDiskImage ¶
MakeDiskImage makes a boot2docker VM disk image. See https://github.com/NasuTek/boot2docker/blob/dev/files/init.d/autoformat
func TruncateID ¶
TruncateID returns a shorten id 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 ¶
DownloadISO downloads boot2docker ISO image for the given tag and save it at dest.
func (*B2dUtils) DownloadISOFromURL ¶
func (*B2dUtils) DownloadLatestBoot2Docker ¶
func (*B2dUtils) UpdateISOCache ¶
type MultiError ¶
type MultiError struct {
Errs []error
}
func (MultiError) Error ¶
func (e MultiError) Error() string
type ReaderWithProgress ¶
type ReaderWithProgress struct { io.ReadCloser // contains filtered or unexported fields }
func (*ReaderWithProgress) Close ¶
func (r *ReaderWithProgress) Close() error
Click to show internal directories.
Click to hide internal directories.