Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContainerDaemon ¶ added in v0.5.0
type ContainerDaemon struct {
// contains filtered or unexported fields
}
ContainerDaemon run core as container.
func NewContainerDaemon ¶ added in v0.5.0
func NewContainerDaemon(cfg *config.Config, c container.Container) *ContainerDaemon
NewContainerDaemon creates new dameon that will be run in container.
func (*ContainerDaemon) Logs ¶ added in v0.5.0
func (d *ContainerDaemon) Logs() (io.ReadCloser, error)
Logs returns the core's docker service logs.
func (*ContainerDaemon) Start ¶ added in v0.5.0
func (d *ContainerDaemon) Start() error
Start starts the docker core.
func (*ContainerDaemon) Status ¶ added in v0.5.0
func (d *ContainerDaemon) Status() (container.StatusType, error)
Status returns the Status of the docker service of the daemon.
func (*ContainerDaemon) Stop ¶ added in v0.5.0
func (d *ContainerDaemon) Stop() error
Stop stops the MESG Core docker container.
type Daemon ¶ added in v0.5.0
type Daemon interface {
Start() error
Stop() error
Status() (container.StatusType, error)
Logs() (io.ReadCloser, error)
}
Daemon is an interface that start, stop etc core as daemon.
Click to show internal directories.
Click to hide internal directories.