daemon

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 7, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL