engine

package
v1.12.2-1 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2016 License: Apache-2.0 Imports: 9 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) PostStop

func (e *Engine) PostStop() error

PostStop cleans up the credentials endpoint setup by disabling loopback routing and removing the rerouting rule from the netfilter table

func (*Engine) PreStart

func (e *Engine) PreStart() error

PreStart prepares the ECS Agent for starting. It also configures the instance to handle credentials requests from containers by rerouting these requests to to the ECS Agent's credentials endpoint

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