utils

package
v0.1.0-rc1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 21, 2015 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyFile

func CopyFile(src, dst string) error

func DownloadISO

func DownloadISO(dir, file, url string) error

Download boot2docker ISO image for the given tag and save it at dest.

func GenerateCACert

func GenerateCACert(certFile, keyFile, org string, bits int) error

GenerateCACert 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

func GenerateCert(hosts []string, certFile, keyFile, caFile, caKeyFile, org string, bits int) error

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 GetLatestBoot2DockerReleaseURL

func GetLatestBoot2DockerReleaseURL() (string, error)

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

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL