Documentation ¶
Index ¶
- Variables
- func BsSysLogPort() int
- func LogIsBS(pool string) (bool, error)
- func LogLoadAll() (map[string]DockerLogConfig, error)
- func LogOpts(pool string) (string, map[string]string, error)
- func SafeAttachWaitContainer(p DockerProvisioner, opts docker.AttachToContainerOptions) (int, error)
- type AppLocker
- type Container
- func (c *Container) Address() *url.URL
- func (c *Container) AsUnit(a provision.App) provision.Unit
- func (c *Container) Available() bool
- func (c *Container) Commit(p DockerProvisioner, writer io.Writer) (string, error)
- func (c *Container) Create(args *CreateArgs) error
- func (c *Container) Exec(p DockerProvisioner, stdout, stderr io.Writer, cmd string, args ...string) error
- func (c *Container) ExpectedStatus() provision.Status
- func (c *Container) Logs(p DockerProvisioner, w io.Writer) (int, error)
- func (c *Container) NetworkInfo(p DockerProvisioner) (NetworkInfo, error)
- func (c *Container) Remove(p DockerProvisioner) error
- func (c *Container) SetImage(p DockerProvisioner, imageID string) error
- func (c *Container) SetStatus(p DockerProvisioner, status provision.Status, updateDB bool) error
- func (c *Container) Shell(p DockerProvisioner, stdin io.Reader, stdout, stderr io.Writer, pty Pty) error
- func (c *Container) ShortID() string
- func (c *Container) Sleep(p DockerProvisioner) error
- func (c *Container) Start(args *StartArgs) error
- func (c *Container) Stop(p DockerProvisioner) error
- func (c *Container) ValidAddr() bool
- type CreateArgs
- type DockerLogConfig
- type DockerProvisioner
- type NetworkInfo
- type Pty
- type SchedulerError
- type SchedulerOpts
- type StartArgs
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrLogDriverMandatory = errors.New("log-driver is mandatory") ErrLogDriverBSNoParams = errors.New("bs log-driver do not accept log-opts, please use node-container-update to configure it.") )
Functions ¶
func BsSysLogPort ¶
func BsSysLogPort() int
func LogLoadAll ¶
func LogLoadAll() (map[string]DockerLogConfig, error)
func SafeAttachWaitContainer ¶
func SafeAttachWaitContainer(p DockerProvisioner, opts docker.AttachToContainerOptions) (int, error)
Types ¶
type Container ¶
func (*Container) Commit ¶
Commits commits the container, creating an image in Docker. It then returns the image identifier for usage in future container creation.
func (*Container) Create ¶
func (c *Container) Create(args *CreateArgs) error
func (*Container) ExpectedStatus ¶
func (*Container) NetworkInfo ¶
func (c *Container) NetworkInfo(p DockerProvisioner) (NetworkInfo, error)
func (*Container) Remove ¶
func (c *Container) Remove(p DockerProvisioner) error
func (*Container) SetImage ¶
func (c *Container) SetImage(p DockerProvisioner, imageID string) error
func (*Container) Sleep ¶
func (c *Container) Sleep(p DockerProvisioner) error
func (*Container) Stop ¶
func (c *Container) Stop(p DockerProvisioner) error
type CreateArgs ¶
type DockerLogConfig ¶
type DockerLogConfig struct {
types.DockerLogConfig
}
func (*DockerLogConfig) Save ¶
func (logConf *DockerLogConfig) Save(pool string) error
type DockerProvisioner ¶
type NetworkInfo ¶
type SchedulerError ¶
type SchedulerError struct {
Base error
}
func (*SchedulerError) Error ¶
func (e *SchedulerError) Error() string
type SchedulerOpts ¶
type SchedulerOpts struct { AppName string ProcessName string UpdateName bool ActionLimiter provision.ActionLimiter LimiterDone func() }
Click to show internal directories.
Click to hide internal directories.