Documentation ¶
Index ¶
- Constants
- type Container
- func (c *Container) Build(srvHash hash.Hash, path string) error
- func (c *Container) Download(url string) (string, error)
- func (c *Container) Start(srv *service.Service, instanceHash, runnerHash, instanceEnvHash hash.Hash, ...) (err error)
- func (c *Container) Stop(srv *service.Service, runnerHash hash.Hash) error
Constants ¶
View Source
const ( // DefaultStopGracePeriod is the default timeout value between stopping a container and killing it. DefaultStopGracePeriod = 10 * time.Second // DefaultMaximumRetryCount is the default number of time to restart the container if it crashes. DefaultMaximumRetryCount = 3 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Container ¶ added in v0.2.0
type Container struct {
// contains filtered or unexported fields
}
Container starts and stops the MESG Service in Docker Container.
func New ¶ added in v0.2.0
func New(engineName, engineAddress, engineNetwork string, maximumRetryCount int, stopGracePeriod time.Duration) (*Container, error)
New initializes the Container struct by connecting creating the Docker client.
func (*Container) Download ¶ added in v0.23.0
Download downloads the tarball of the source of a service from a HTTP url. Don't forget to remove the downloaded service.
Click to show internal directories.
Click to hide internal directories.