Documentation ¶
Index ¶
- Constants
- func GetSelenoidConfigDir() string
- func GetSelenoidUIConfigDir() string
- type Architectures
- type ArgsAware
- type ArgsProvider
- type Browser
- type BrowserEnvAware
- type Browsers
- type ConfigDirAware
- type Configurable
- type DockerConfigurator
- func (c *DockerConfigurator) Close() error
- func (c *DockerConfigurator) Configure() (*SelenoidConfig, error)
- func (c *DockerConfigurator) Download() (string, error)
- func (c *DockerConfigurator) DownloadUI() (string, error)
- func (c *DockerConfigurator) IsConfigured() bool
- func (c *DockerConfigurator) IsDownloaded() bool
- func (c *DockerConfigurator) IsRunning() bool
- func (c *DockerConfigurator) IsUIDownloaded() bool
- func (c *DockerConfigurator) IsUIRunning() bool
- func (c *DockerConfigurator) PrintArgs() error
- func (c *DockerConfigurator) PrintUIArgs() error
- func (c *DockerConfigurator) Start() error
- func (c *DockerConfigurator) StartUI() error
- func (c *DockerConfigurator) Status()
- func (c *DockerConfigurator) Stop() error
- func (c *DockerConfigurator) StopUI() error
- func (c *DockerConfigurator) UIStatus()
- type DownloadAware
- type Downloadable
- type Driver
- type DriversConfigurator
- func (d *DriversConfigurator) Close() error
- func (d *DriversConfigurator) Configure() (*SelenoidConfig, error)
- func (d *DriversConfigurator) Download() (string, error)
- func (d *DriversConfigurator) DownloadUI() (string, error)
- func (d *DriversConfigurator) IsConfigured() bool
- func (d *DriversConfigurator) IsDownloaded() bool
- func (d *DriversConfigurator) IsRunning() bool
- func (d *DriversConfigurator) IsUIDownloaded() bool
- func (d *DriversConfigurator) IsUIRunning() bool
- func (d *DriversConfigurator) PrintArgs() error
- func (d *DriversConfigurator) PrintUIArgs() error
- func (d *DriversConfigurator) Start() error
- func (d *DriversConfigurator) StartUI() error
- func (d *DriversConfigurator) Status()
- func (d *DriversConfigurator) Stop() error
- func (d *DriversConfigurator) StopUI() error
- func (d *DriversConfigurator) UIStatus()
- type EnvAware
- type Files
- type Forceable
- type GracefulAware
- type JSONMessage
- type JSONProgress
- type Lifecycle
- func (l *Lifecycle) Close()
- func (l *Lifecycle) Configure() error
- func (l *Lifecycle) Download() error
- func (l *Lifecycle) DownloadUI() error
- func (l *Lifecycle) PrintArgs() error
- func (l *Lifecycle) PrintUIArgs() error
- func (l *Lifecycle) Start() error
- func (l *Lifecycle) StartUI() error
- func (l *Lifecycle) Status()
- func (l *Lifecycle) Stop() error
- func (l *Lifecycle) StopUI() error
- func (l *Lifecycle) UIStatus()
- type LifecycleConfig
- type Logger
- type LogsAware
- type PortAware
- type RequestedBrowsersAware
- type Runnable
- type SelenoidConfig
- type StatusProvider
- type UserNSAware
- type VersionAware
Constants ¶
View Source
const ( DefaultPort = 4444 UIDefaultPort = 8080 DefaultRegistryUrl = "https://index.docker.io" DefaultDriversInfoURL = "https://raw.githubusercontent.com/aerokube/cm/master/browsers.json" )
View Source
const (
Latest = "latest"
)
Variables ¶
This section is empty.
Functions ¶
func GetSelenoidConfigDir ¶
func GetSelenoidConfigDir() string
func GetSelenoidUIConfigDir ¶
func GetSelenoidUIConfigDir() string
Types ¶
type Architectures ¶
type ArgsProvider ¶
type BrowserEnvAware ¶
type BrowserEnvAware struct {
BrowserEnv string
}
type ConfigDirAware ¶
type ConfigDirAware struct {
ConfigDir string
}
type Configurable ¶
type Configurable interface { IsConfigured() bool Configure() (*SelenoidConfig, error) }
type DockerConfigurator ¶
type DockerConfigurator struct { Logger ConfigDirAware VersionAware DownloadAware RequestedBrowsersAware ArgsAware EnvAware BrowserEnvAware PortAware UserNSAware LogsAware GracefulAware LastVersions int Pull bool RegistryUrl string BrowsersJson string ShmSize int Tmpfs int VNC bool // contains filtered or unexported fields }
func NewDockerConfigurator ¶
func NewDockerConfigurator(config *LifecycleConfig) (*DockerConfigurator, error)
func (*DockerConfigurator) Close ¶
func (c *DockerConfigurator) Close() error
func (*DockerConfigurator) Configure ¶
func (c *DockerConfigurator) Configure() (*SelenoidConfig, error)
func (*DockerConfigurator) Download ¶
func (c *DockerConfigurator) Download() (string, error)
func (*DockerConfigurator) DownloadUI ¶
func (c *DockerConfigurator) DownloadUI() (string, error)
func (*DockerConfigurator) IsConfigured ¶
func (c *DockerConfigurator) IsConfigured() bool
func (*DockerConfigurator) IsDownloaded ¶
func (c *DockerConfigurator) IsDownloaded() bool
func (*DockerConfigurator) IsRunning ¶
func (c *DockerConfigurator) IsRunning() bool
func (*DockerConfigurator) IsUIDownloaded ¶
func (c *DockerConfigurator) IsUIDownloaded() bool
func (*DockerConfigurator) IsUIRunning ¶
func (c *DockerConfigurator) IsUIRunning() bool
func (*DockerConfigurator) PrintArgs ¶
func (c *DockerConfigurator) PrintArgs() error
func (*DockerConfigurator) PrintUIArgs ¶
func (c *DockerConfigurator) PrintUIArgs() error
func (*DockerConfigurator) Start ¶
func (c *DockerConfigurator) Start() error
func (*DockerConfigurator) StartUI ¶
func (c *DockerConfigurator) StartUI() error
func (*DockerConfigurator) Status ¶
func (c *DockerConfigurator) Status()
func (*DockerConfigurator) Stop ¶
func (c *DockerConfigurator) Stop() error
func (*DockerConfigurator) StopUI ¶
func (c *DockerConfigurator) StopUI() error
func (*DockerConfigurator) UIStatus ¶
func (c *DockerConfigurator) UIStatus()
type DownloadAware ¶
type DownloadAware struct {
DownloadNeeded bool
}
type Downloadable ¶
type DriversConfigurator ¶
type DriversConfigurator struct { Logger ConfigDirAware VersionAware DownloadAware ArgsAware EnvAware BrowserEnvAware PortAware RequestedBrowsersAware LogsAware GracefulAware DriversInfoUrl string GithubBaseUrl string OS string Arch string }
func NewDriversConfigurator ¶
func NewDriversConfigurator(config *LifecycleConfig) *DriversConfigurator
func (*DriversConfigurator) Close ¶
func (d *DriversConfigurator) Close() error
func (*DriversConfigurator) Configure ¶
func (d *DriversConfigurator) Configure() (*SelenoidConfig, error)
func (*DriversConfigurator) Download ¶
func (d *DriversConfigurator) Download() (string, error)
func (*DriversConfigurator) DownloadUI ¶
func (d *DriversConfigurator) DownloadUI() (string, error)
func (*DriversConfigurator) IsConfigured ¶
func (d *DriversConfigurator) IsConfigured() bool
func (*DriversConfigurator) IsDownloaded ¶
func (d *DriversConfigurator) IsDownloaded() bool
func (*DriversConfigurator) IsRunning ¶
func (d *DriversConfigurator) IsRunning() bool
func (*DriversConfigurator) IsUIDownloaded ¶
func (d *DriversConfigurator) IsUIDownloaded() bool
func (*DriversConfigurator) IsUIRunning ¶
func (d *DriversConfigurator) IsUIRunning() bool
func (*DriversConfigurator) PrintArgs ¶
func (d *DriversConfigurator) PrintArgs() error
func (*DriversConfigurator) PrintUIArgs ¶
func (d *DriversConfigurator) PrintUIArgs() error
func (*DriversConfigurator) Start ¶
func (d *DriversConfigurator) Start() error
func (*DriversConfigurator) StartUI ¶
func (d *DriversConfigurator) StartUI() error
func (*DriversConfigurator) Status ¶
func (d *DriversConfigurator) Status()
func (*DriversConfigurator) Stop ¶
func (d *DriversConfigurator) Stop() error
func (*DriversConfigurator) StopUI ¶
func (d *DriversConfigurator) StopUI() error
func (*DriversConfigurator) UIStatus ¶
func (d *DriversConfigurator) UIStatus()
type Files ¶
type Files map[string]Architectures
type GracefulAware ¶
type JSONMessage ¶
type JSONMessage struct { Status string `json:"status,omitempty"` Progress *JSONProgress `json:"progressDetail,omitempty"` ID string `json:"id,omitempty"` ProgressMessage string `json:"progress,omitempty"` //deprecated }
JSONMessage defines a message struct from docker.
type JSONProgress ¶
type JSONProgress struct { Current int64 `json:"current,omitempty"` Total int64 `json:"total,omitempty"` Start int64 `json:"start,omitempty"` // If true, don't show xB/yB HideCounts bool `json:"hidecounts,omitempty"` Units string `json:"units,omitempty"` // contains filtered or unexported fields }
JSONProgress describes a Progress. terminalFd is the fd of the current terminal, Start is the initial value for the operation. Current is the current status and value of the progress made towards Total. Total is the end value describing when we made 100% progress for an operation.
type Lifecycle ¶
type Lifecycle struct { Logger Forceable Config *LifecycleConfig // contains filtered or unexported fields }
func NewLifecycle ¶
func NewLifecycle(config *LifecycleConfig) (*Lifecycle, error)
func (*Lifecycle) DownloadUI ¶
func (*Lifecycle) PrintUIArgs ¶
type LifecycleConfig ¶
type LifecycleConfig struct { Quiet bool Force bool Graceful bool GracefulTimeout time.Duration ConfigDir string Browsers string BrowserEnv string Download bool Args string Env string Version string Port int DisableLogs bool // Docker specific LastVersions int RegistryUrl string BrowsersJson string ShmSize int Tmpfs int VNC bool UserNS string // Drivers specific UseDrivers bool DriversInfoUrl string GithubBaseUrl string OS string Arch string }
type RequestedBrowsersAware ¶
type RequestedBrowsersAware struct {
Browsers string
}
type SelenoidConfig ¶
type StatusProvider ¶
type StatusProvider interface { Status() UIStatus() }
type UserNSAware ¶
type UserNSAware struct {
UserNS string
}
type VersionAware ¶
type VersionAware struct {
Version string
}
Click to show internal directories.
Click to hide internal directories.