common

package
v0.0.0-...-c9014b7 Latest Latest
Warning

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

Go to latest
Published: May 15, 2017 License: Apache-2.0, CC-BY-SA-4.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LabelKeyNamespace = "namespace"
	LabelKeyService   = "service"
	LabelKeyApp       = "app"
	LabelKeyName      = "name"
)

special labels define

View Source
const (
	EnvironmentPriority  = "PRIORITY"
	EnvironmentMinNumber = "MIN_NUMBER"
)

special Environment define

View Source
const (
	TaskTypeCreateContainer = iota
	TaskTypeDestroyContainer
	TaskTypeStartContainer
	TaskTypeStopContainer
)

tasks

View Source
const (
	EnvTaskTypeKey = "TASK_TYPE"
	EnvTaskStart   = "start"
	EnvTaskStop    = "stop"
	EnvTaskCreate  = "create"
	EnvTaskDestroy = "destroy"
)

TASK_TYPE

View Source
const (
	Affinity   = "affinity"
	Constraint = "constraint"
	Applots    = "applots"
)

affinity and constaint

View Source
const (
	DefaultAppLots  = 1
	DefaultPriority = -1 // prevent seize all containers in cluster, when ...
	DefaultMinNum   = 0
)

default app lots

View Source
const EnvStopTimeout = "STOP_TIMEOUT"

EnvStopTimeout Stop time out

Variables

This section is empty.

Functions

This section is empty.

Types

type Filter

type Filter struct {
	Key      string
	Operater string
	Pattern  string
}

Filter is parse from filter string

type ScaleAPI

type ScaleAPI struct {
	Items []ScaleItem
}

ScaleAPI is scale http api

type ScaleConfig

type ScaleConfig ScaleAPI

ScaleConfig is ...

type ScaleItem

type ScaleItem struct {
	Filters []string
	Number  int
	ENVs    []string
	Labels  map[string]string
}

ScaleItem is

Jump to

Keyboard shortcuts

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