Versions in this module Expand all Collapse all v0 v0.1.0 Jun 15, 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) error + func Register(name string, p *RegisteredProvisioner) + type Boot2DockerProvisioner struct + AuthOptions auth.AuthOptions + Driver drivers.Driver + EngineOptions engine.EngineOptions + OsReleaseInfo *OsRelease + SwarmOptions swarm.SwarmOptions + func (provisioner *Boot2DockerProvisioner) CompatibleWithHost() bool + func (provisioner *Boot2DockerProvisioner) GenerateDockerOptions(dockerPort int) (*DockerOptions, error) + func (provisioner *Boot2DockerProvisioner) Generatek8sOptions() (*k8sOptions, error) + func (provisioner *Boot2DockerProvisioner) GetAuthOptions() auth.AuthOptions + 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) (string, 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 CentosProvisioner struct + type DebianProvisioner struct + func (provisioner *DebianProvisioner) GenerateDockerOptions(dockerPort int) (*DockerOptions, error) + func (provisioner *DebianProvisioner) Package(name string, action pkgaction.PackageAction) error + func (provisioner *DebianProvisioner) Provision(swarmOptions swarm.SwarmOptions, authOptions auth.AuthOptions, ...) error + func (provisioner *DebianProvisioner) Service(name string, action pkgaction.ServiceAction) error + type DockerOptions struct + EngineOptions string + EngineOptionsPath string + type EngineConfigContext struct + AuthOptions auth.AuthOptions + DockerOptionsDir string + DockerPort int + EngineOptions engine.EngineOptions + type FedoraProvisioner struct + type GenericProvisioner struct + AuthOptions auth.AuthOptions + DaemonOptionsFile string + DockerOptionsDir string + Driver drivers.Driver + EngineOptions engine.EngineOptions + KubernetesManifestFile string + OsReleaseId string + OsReleaseInfo *OsRelease + Packages []string + SwarmOptions swarm.SwarmOptions + func (provisioner *GenericProvisioner) CompatibleWithHost() bool + func (provisioner *GenericProvisioner) GenerateDockerOptions(dockerPort int) (*DockerOptions, error) + func (provisioner *GenericProvisioner) Generatek8sOptions() (*k8sOptions, error) + func (provisioner *GenericProvisioner) GetAuthOptions() auth.AuthOptions + func (provisioner *GenericProvisioner) GetDockerOptionsDir() string + func (provisioner *GenericProvisioner) GetDriver() drivers.Driver + func (provisioner *GenericProvisioner) Hostname() (string, error) + func (provisioner *GenericProvisioner) SSHCommand(args string) (string, error) + func (provisioner *GenericProvisioner) SetHostname(hostname string) error + func (provisioner *GenericProvisioner) SetOsReleaseInfo(info *OsRelease) + 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) (*DockerOptions, error) + Generatek8sOptions func() (*k8sOptions, error) + GetAuthOptions func() auth.AuthOptions + 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) (string, 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 NewCentosProvisioner(d drivers.Driver) Provisioner + func NewDebianProvisioner(d drivers.Driver) Provisioner + func NewFedoraProvisioner(d drivers.Driver) Provisioner + func NewRancherProvisioner(d drivers.Driver) Provisioner + func NewRedHatProvisioner(d drivers.Driver) Provisioner + func NewUbuntuProvisioner(d drivers.Driver) Provisioner + type RancherProvisioner struct + func (provisioner *RancherProvisioner) Package(name string, action pkgaction.PackageAction) error + func (provisioner *RancherProvisioner) Provision(swarmOptions swarm.SwarmOptions, authOptions auth.AuthOptions, ...) error + func (provisioner *RancherProvisioner) Service(name string, action pkgaction.ServiceAction) error + func (provisioner *RancherProvisioner) SetHostname(hostname string) error + type RedHatProvisioner struct + DockerRPMPath string + func (provisioner *RedHatProvisioner) GenerateDockerOptions(dockerPort int) (*DockerOptions, error) + func (provisioner *RedHatProvisioner) Package(name string, action pkgaction.PackageAction) error + func (provisioner *RedHatProvisioner) Provision(swarmOptions swarm.SwarmOptions, authOptions auth.AuthOptions, ...) error + func (provisioner *RedHatProvisioner) SSHCommand(args string) (string, error) + func (provisioner *RedHatProvisioner) Service(name string, action pkgaction.ServiceAction) error + func (provisioner *RedHatProvisioner) SetHostname(hostname string) error + type RegisteredProvisioner struct + New func(d drivers.Driver) Provisioner + type SwarmCommandContext struct + AuthOptions auth.AuthOptions + ContainerName string + DockerDir string + DockerPort int + Ip string + Port string + SwarmImage string + SwarmOptions swarm.SwarmOptions + type UbuntuProvisioner struct + func (provisioner *UbuntuProvisioner) Package(name string, action pkgaction.PackageAction) error + func (provisioner *UbuntuProvisioner) Provision(swarmOptions swarm.SwarmOptions, authOptions auth.AuthOptions, ...) error + func (provisioner *UbuntuProvisioner) Service(name string, action pkgaction.ServiceAction) error