Versions in this module Expand all Collapse all v0 v0.5.0 Apr 3, 2015 Changes in this version + var ErrDetectionFailed = errors.New("OS type not recognized") + var ErrNotImplemented = errors.New("Runtime not implemented") + var ErrSSHCommandFailed = errors.New("SSH command failure") + func ConfigureAuth(p Provisioner, authOptions auth.AuthOptions) error + func Register(name string, p *RegisteredProvisioner) + type Boot2DockerProvisioner struct + Driver drivers.Driver + OsReleaseInfo *OsRelease + SwarmOptions swarm.SwarmOptions + func (provisioner *Boot2DockerProvisioner) CompatibleWithHost() bool + func (provisioner *Boot2DockerProvisioner) GenerateDockerOptions(dockerPort int, authOptions auth.AuthOptions) (*DockerOptions, error) + func (provisioner *Boot2DockerProvisioner) GetDockerOptionsDir() string + func (provisioner *Boot2DockerProvisioner) GetDriver() drivers.Driver + func (provisioner *Boot2DockerProvisioner) Hostname() (string, error) + func (provisioner *Boot2DockerProvisioner) Package(name string, action pkgaction.PackageAction) error + func (provisioner *Boot2DockerProvisioner) Provision(swarmOptions swarm.SwarmOptions, authOptions auth.AuthOptions) error + func (provisioner *Boot2DockerProvisioner) SSHCommand(args ...string) (*exec.Cmd, error) + func (provisioner *Boot2DockerProvisioner) Service(name string, action pkgaction.ServiceAction) error + func (provisioner *Boot2DockerProvisioner) SetHostname(hostname string) error + func (provisioner *Boot2DockerProvisioner) SetOsReleaseInfo(info *OsRelease) + type DockerOptions struct + EngineOptions string + EngineOptionsPath string + type OsRelease struct + AnsiColor string + BugReportUrl string + HomeUrl string + Id string + IdLike string + Name string + PrettyName string + SupportUrl string + Version string + VersionId string + func NewOsRelease(contents []byte) (*OsRelease, error) + func (osr *OsRelease) ParseOsRelease(osReleaseContents []byte) error + type Provisioner interface + CompatibleWithHost func() bool + GenerateDockerOptions func(dockerPort int, authOptions auth.AuthOptions) (*DockerOptions, error) + GetDockerOptionsDir func() string + GetDriver func() drivers.Driver + Hostname func() (string, error) + Package func(name string, action pkgaction.PackageAction) error + Provision func(swarmOptions swarm.SwarmOptions, authOptions auth.AuthOptions) error + SSHCommand func(args ...string) (*exec.Cmd, error) + Service func(name string, action pkgaction.ServiceAction) error + SetHostname func(hostname string) error + SetOsReleaseInfo func(info *OsRelease) + func DetectProvisioner(d drivers.Driver) (Provisioner, error) + func NewBoot2DockerProvisioner(d drivers.Driver) Provisioner + func NewUbuntuProvisioner(d drivers.Driver) Provisioner + type RegisteredProvisioner struct + New func(d drivers.Driver) Provisioner + type UbuntuProvisioner struct + Driver drivers.Driver + OsReleaseInfo *OsRelease + SwarmOptions swarm.SwarmOptions + func (provisioner *UbuntuProvisioner) CompatibleWithHost() bool + func (provisioner *UbuntuProvisioner) GenerateDockerOptions(dockerPort int, authOptions auth.AuthOptions) (*DockerOptions, error) + func (provisioner *UbuntuProvisioner) GetDockerOptionsDir() string + func (provisioner *UbuntuProvisioner) GetDriver() drivers.Driver + func (provisioner *UbuntuProvisioner) Hostname() (string, error) + func (provisioner *UbuntuProvisioner) Package(name string, action pkgaction.PackageAction) error + func (provisioner *UbuntuProvisioner) Provision(swarmOptions swarm.SwarmOptions, authOptions auth.AuthOptions) error + func (provisioner *UbuntuProvisioner) SSHCommand(args ...string) (*exec.Cmd, error) + func (provisioner *UbuntuProvisioner) Service(name string, action pkgaction.ServiceAction) error + func (provisioner *UbuntuProvisioner) SetHostname(hostname string) error + func (provisioner *UbuntuProvisioner) SetOsReleaseInfo(info *OsRelease) v0.2.0-do-fix-ssh-patch Apr 3, 2015