container

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2020 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

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(ipfsEndpoint, engineName, engineAddress, engineNetwork string) (*Container, error)

New initializes the Container struct by connecting creating the Docker client.

func (*Container) Build added in v0.2.0

func (c *Container) Build(srv *service.Service) error

Build the imge of the container

func (*Container) Start added in v0.21.0

func (c *Container) Start(srv *service.Service, instanceHash, runnerHash, instanceEnvHash hash.Hash, instanceEnv []string, registerPayload []byte) (err error)

Start starts the service.

func (*Container) Stop added in v0.21.0

func (c *Container) Stop(srv *service.Service, runnerHash hash.Hash) error

Stop stops an instance.

type Status

type Status uint

Status of the service.

const (
	UNKNOWN Status = iota
	STOPPED
	STARTING
	RUNNING
)

Possible status for services.

Jump to

Keyboard shortcuts

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