engine

package
v1.7.0-1 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2015 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Engine

type Engine struct {
	// contains filtered or unexported fields
}

Engine contains methods invoked when ecs-init is run

func New

func New() (*Engine, error)

New creates an instance of Engine

func (*Engine) PreStart

func (e *Engine) PreStart() error

PreStart prepares the ECS Agent for starting

func (*Engine) PreStop

func (e *Engine) PreStop() error

PreStop sends commands to Docker to stop the ECS Agent

func (*Engine) ReloadCache

func (e *Engine) ReloadCache() error

ReloadCache reloads the cached image of the ECS Agent into Docker

func (*Engine) StartSupervised

func (e *Engine) StartSupervised() error

StartSupervised starts the ECS Agent and ensures it stays running, except for terminal errors (indicated by an agent exit code of 5)

Jump to

Keyboard shortcuts

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