Documentation ¶
Index ¶
- func AddDockerUser(user string) error
- func ConfigureDocker(config *DockerConfig) error
- func ConfigureHostname(name string) error
- func ConfigureNetwork(network Network) (string, error)
- func ConfigureSSHKeys(config *Config) error
- func EncodeConfig(config *Config) ([]byte, error)
- func EncodeResult(result *ProvisionResult) ([]byte, error)
- func InstallDocker() error
- func RestartDocker() error
- type Config
- type DockerConfig
- type Network
- type ProvisionResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddDockerUser ¶
func ConfigureDocker ¶
func ConfigureDocker(config *DockerConfig) error
func ConfigureHostname ¶
func ConfigureNetwork ¶
func ConfigureSSHKeys ¶
func EncodeConfig ¶
func EncodeResult ¶
func EncodeResult(result *ProvisionResult) ([]byte, error)
func InstallDocker ¶
func InstallDocker() error
func RestartDocker ¶
func RestartDocker() error
Types ¶
type Config ¶
type Config struct { Hostname string Environment []string DockerArgs []string DefaultUser string AuthorizedSSHKeys []string Script []string }
func DecodeConfig ¶
type DockerConfig ¶
type ProvisionResult ¶
func DecodeResult ¶
func DecodeResult(input []byte) (*ProvisionResult, error)
func Provision ¶
func Provision(config *Config) (*ProvisionResult, error)
Click to show internal directories.
Click to hide internal directories.