Versions in this module Expand all Collapse all v0 v0.16.2 Sep 2, 2019 Changes in this version + const LastReleaseBeforeCEVersioning + var ErrDetectionFailed = errors.New("OS type not recognized") + var ErrUnknownYumOsRelease = errors.New("unknown OS for Yum repository") + func ConfigureAuth(p Provisioner) error + func DockerClientVersion(ssh SSHCommander) (string, error) + func Register(name string, p *RegisteredProvisioner) + func SetDetector(newDetector Detector) + func WaitForDocker(p Provisioner, dockerPort int) error + type ArchProvisioner struct + func (provisioner *ArchProvisioner) CompatibleWithHost() bool + func (provisioner *ArchProvisioner) Package(name string, action pkgaction.PackageAction) error + func (provisioner *ArchProvisioner) Provision(swarmOptions swarm.Options, authOptions auth.Options, ...) error + func (provisioner *ArchProvisioner) String() string + type Boot2DockerProvisioner struct + AuthOptions auth.Options + Driver drivers.Driver + EngineOptions engine.Options + OsReleaseInfo *OsRelease + SwarmOptions swarm.Options + func (provisioner *Boot2DockerProvisioner) AttemptIPContact(dockerPort int) + func (provisioner *Boot2DockerProvisioner) CompatibleWithHost() bool + func (provisioner *Boot2DockerProvisioner) GenerateDockerOptions(dockerPort int) (*DockerOptions, error) + func (provisioner *Boot2DockerProvisioner) GetAuthOptions() auth.Options + func (provisioner *Boot2DockerProvisioner) GetDockerOptionsDir() string + func (provisioner *Boot2DockerProvisioner) GetDriver() drivers.Driver + func (provisioner *Boot2DockerProvisioner) GetOsReleaseInfo() (*OsRelease, error) + func (provisioner *Boot2DockerProvisioner) GetSwarmOptions() swarm.Options + func (provisioner *Boot2DockerProvisioner) Hostname() (string, error) + func (provisioner *Boot2DockerProvisioner) Package(name string, action pkgaction.PackageAction) error + func (provisioner *Boot2DockerProvisioner) Provision(swarmOptions swarm.Options, authOptions auth.Options, ...) error + func (provisioner *Boot2DockerProvisioner) SSHCommand(args string) (string, error) + func (provisioner *Boot2DockerProvisioner) Service(name string, action serviceaction.ServiceAction) error + func (provisioner *Boot2DockerProvisioner) SetHostname(hostname string) error + func (provisioner *Boot2DockerProvisioner) SetOsReleaseInfo(info *OsRelease) + func (provisioner *Boot2DockerProvisioner) String() string + type CentosProvisioner struct + func (provisioner *CentosProvisioner) String() string + type CoreOSProvisioner struct + func (provisioner *CoreOSProvisioner) GenerateDockerOptions(dockerPort int) (*DockerOptions, error) + func (provisioner *CoreOSProvisioner) Package(name string, action pkgaction.PackageAction) error + func (provisioner *CoreOSProvisioner) Provision(swarmOptions swarm.Options, authOptions auth.Options, ...) error + func (provisioner *CoreOSProvisioner) SetHostname(hostname string) error + func (provisioner *CoreOSProvisioner) String() string + type DebianProvisioner struct + func (provisioner *DebianProvisioner) Package(name string, action pkgaction.PackageAction) error + func (provisioner *DebianProvisioner) Provision(swarmOptions swarm.Options, authOptions auth.Options, ...) error + func (provisioner *DebianProvisioner) String() string + type Detector interface + DetectProvisioner func(d drivers.Driver) (Provisioner, error) + type DockerOptions struct + EngineOptions string + EngineOptionsPath string + type EngineConfigContext struct + AuthOptions auth.Options + DockerOptionsDir string + DockerPort int + EngineOptions engine.Options + type ErrDaemonAvailable struct + func NewErrDaemonAvailable(err error) ErrDaemonAvailable + func (e ErrDaemonAvailable) Error() string + type FakeDetector struct + func (fd *FakeDetector) DetectProvisioner(d drivers.Driver) (Provisioner, error) + type FakeProvisioner struct + func (fp *FakeProvisioner) CompatibleWithHost() bool + func (fp *FakeProvisioner) GenerateDockerOptions(dockerPort int) (*DockerOptions, error) + func (fp *FakeProvisioner) GetAuthOptions() auth.Options + func (fp *FakeProvisioner) GetDockerOptionsDir() string + func (fp *FakeProvisioner) GetDriver() drivers.Driver + func (fp *FakeProvisioner) GetOsReleaseInfo() (*OsRelease, error) + func (fp *FakeProvisioner) GetSwarmOptions() swarm.Options + func (fp *FakeProvisioner) Hostname() (string, error) + func (fp *FakeProvisioner) Package(name string, action pkgaction.PackageAction) error + func (fp *FakeProvisioner) Provision(swarmOptions swarm.Options, authOptions auth.Options, ...) error + func (fp *FakeProvisioner) SSHCommand(args string) (string, error) + func (fp *FakeProvisioner) Service(name string, action serviceaction.ServiceAction) error + func (fp *FakeProvisioner) SetHostname(hostname string) error + func (fp *FakeProvisioner) SetOsReleaseInfo(info *OsRelease) + func (fp *FakeProvisioner) String() string + type FedoraProvisioner struct + func (provisioner *FedoraProvisioner) String() string + type GenericProvisioner struct + AuthOptions auth.Options + DaemonOptionsFile string + DockerOptionsDir string + Driver drivers.Driver + EngineOptions engine.Options + OsReleaseID string + OsReleaseInfo *OsRelease + Packages []string + SwarmOptions swarm.Options + func (provisioner *GenericProvisioner) CompatibleWithHost() bool + func (provisioner *GenericProvisioner) GenerateDockerOptions(dockerPort int) (*DockerOptions, error) + func (provisioner *GenericProvisioner) GetAuthOptions() auth.Options + func (provisioner *GenericProvisioner) GetDockerOptionsDir() string + func (provisioner *GenericProvisioner) GetDriver() drivers.Driver + func (provisioner *GenericProvisioner) GetOsReleaseInfo() (*OsRelease, error) + func (provisioner *GenericProvisioner) GetSwarmOptions() swarm.Options + func (provisioner *GenericProvisioner) Hostname() (string, error) + func (provisioner *GenericProvisioner) SetHostname(hostname string) error + func (provisioner *GenericProvisioner) SetOsReleaseInfo(info *OsRelease) + type GenericSSHCommander struct + Driver drivers.Driver + func (sshCmder GenericSSHCommander) SSHCommand(args string) (string, error) + type NetstatProvisioner struct + func (p *NetstatProvisioner) SSHCommand(args string) (string, error) + type OracleLinuxProvisioner struct + func (provisioner *OracleLinuxProvisioner) String() string + type OsRelease struct + AnsiColor string + BugReportURL string + HomeURL string + ID string + IDLike string + Name string + PrettyName string + SupportURL string + Variant string + VariantID string + Version string + VersionID string + func NewOsRelease(contents []byte) (*OsRelease, error) + func (osr *OsRelease) ParseOsRelease(osReleaseContents []byte) error + type PackageListInfo struct + OsRelease string + OsReleaseVersion string + type Provisioner interface + CompatibleWithHost func() bool + GenerateDockerOptions func(dockerPort int) (*DockerOptions, error) + GetAuthOptions func() auth.Options + GetDockerOptionsDir func() string + GetDriver func() drivers.Driver + GetOsReleaseInfo func() (*OsRelease, error) + GetSwarmOptions func() swarm.Options + Hostname func() (string, error) + Package func(name string, action pkgaction.PackageAction) error + Provision func(swarmOptions swarm.Options, authOptions auth.Options, ...) error + Service func(name string, action serviceaction.ServiceAction) error + SetHostname func(hostname string) error + SetOsReleaseInfo func(info *OsRelease) + func DetectProvisioner(d drivers.Driver) (Provisioner, error) + func NewArchProvisioner(d drivers.Driver) Provisioner + func NewBoot2DockerProvisioner(d drivers.Driver) Provisioner + func NewCentosProvisioner(d drivers.Driver) Provisioner + func NewCoreOSProvisioner(d drivers.Driver) Provisioner + func NewDebianProvisioner(d drivers.Driver) Provisioner + func NewFakeProvisioner(d drivers.Driver) Provisioner + func NewFedoraProvisioner(d drivers.Driver) Provisioner + func NewNetstatProvisioner() Provisioner + func NewOracleLinuxProvisioner(d drivers.Driver) Provisioner + func NewRancherProvisioner(d drivers.Driver) Provisioner + func NewSUSEProvisioner(d drivers.Driver) Provisioner + func NewUbuntuProvisioner(d drivers.Driver) Provisioner + func NewUbuntuSystemdProvisioner(d drivers.Driver) Provisioner + type RancherProvisioner struct + func (provisioner *RancherProvisioner) Package(name string, action pkgaction.PackageAction) error + func (provisioner *RancherProvisioner) Provision(swarmOptions swarm.Options, authOptions auth.Options, ...) error + func (provisioner *RancherProvisioner) Service(name string, action serviceaction.ServiceAction) error + func (provisioner *RancherProvisioner) SetHostname(hostname string) error + func (provisioner *RancherProvisioner) String() string + type RedHatProvisioner struct + func NewRedHatProvisioner(osReleaseID string, d drivers.Driver) *RedHatProvisioner + func (provisioner *RedHatProvisioner) GenerateDockerOptions(dockerPort int) (*DockerOptions, error) + func (provisioner *RedHatProvisioner) Package(name string, action pkgaction.PackageAction) error + func (provisioner *RedHatProvisioner) Provision(swarmOptions swarm.Options, authOptions auth.Options, ...) error + func (provisioner *RedHatProvisioner) SetHostname(hostname string) error + func (provisioner *RedHatProvisioner) String() string + type RedHatSSHCommander struct + Driver drivers.Driver + func (sshCmder RedHatSSHCommander) SSHCommand(args string) (string, error) + type RegisteredProvisioner struct + New func(d drivers.Driver) Provisioner + type SSHCommander interface + SSHCommand func(args string) (string, error) + type SUSEProvisioner struct + func (provisioner *SUSEProvisioner) CompatibleWithHost() bool + func (provisioner *SUSEProvisioner) Package(name string, action pkgaction.PackageAction) error + func (provisioner *SUSEProvisioner) Provision(swarmOptions swarm.Options, authOptions auth.Options, ...) error + func (provisioner *SUSEProvisioner) String() string + type StandardDetector struct + func (detector StandardDetector) DetectProvisioner(d drivers.Driver) (Provisioner, error) + type SystemdProvisioner struct + func NewSystemdProvisioner(osReleaseID string, d drivers.Driver) SystemdProvisioner + func (p *SystemdProvisioner) GenerateDockerOptions(dockerPort int) (*DockerOptions, error) + func (p *SystemdProvisioner) Service(name string, action serviceaction.ServiceAction) error + func (p *SystemdProvisioner) String() string + type UbuntuProvisioner struct + func (provisioner *UbuntuProvisioner) CompatibleWithHost() bool + func (provisioner *UbuntuProvisioner) Package(name string, action pkgaction.PackageAction) error + func (provisioner *UbuntuProvisioner) Provision(swarmOptions swarm.Options, authOptions auth.Options, ...) error + func (provisioner *UbuntuProvisioner) Service(name string, action serviceaction.ServiceAction) error + func (provisioner *UbuntuProvisioner) String() string + type UbuntuSystemdProvisioner struct + func (provisioner *UbuntuSystemdProvisioner) CompatibleWithHost() bool + func (provisioner *UbuntuSystemdProvisioner) Package(name string, action pkgaction.PackageAction) error + func (provisioner *UbuntuSystemdProvisioner) Provision(swarmOptions swarm.Options, authOptions auth.Options, ...) error + func (provisioner *UbuntuSystemdProvisioner) String() string