docker_app_runner

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2015 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AttemptedToCreateLatticeDebugErrorMessage = reserved_app_ids.LatticeDebugLogStreamAppId + " is a reserved app name. It is used internally to stream debug logs for lattice components."
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AppRunner

type AppRunner interface {
	CreateDockerApp(params CreateDockerAppParams) error
	CreateLrp(createLrpJson []byte) (string, error)
	ScaleApp(name string, instances int) error
	UpdateAppRoutes(name string, routes RouteOverrides) error
	RemoveApp(name string) error
}

func New

func New(receptorClient receptor.Client, systemDomain string) AppRunner

type CreateDockerAppParams

type CreateDockerAppParams struct {
	Name                 string
	StartCommand         string
	DockerImagePath      string
	AppArgs              []string
	EnvironmentVariables map[string]string
	Privileged           bool
	Monitor              bool
	Instances            int
	CPUWeight            uint
	MemoryMB             int
	DiskMB               int
	Ports                PortConfig
	WorkingDir           string
	RouteOverrides       RouteOverrides
	Timeout              time.Duration
}

type PortConfig

type PortConfig struct {
	Monitored uint16
	Exposed   []uint16
}

func (PortConfig) IsEmpty

func (portConfig PortConfig) IsEmpty() bool

type RouteOverride

type RouteOverride struct {
	HostnamePrefix string
	Port           uint16
}

type RouteOverrides

type RouteOverrides []RouteOverride

Directories

Path Synopsis
This file was generated by counterfeiter
This file was generated by counterfeiter

Jump to

Keyboard shortcuts

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