marathon

package
Version: v0.9.5 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2017 License: Apache-2.0 Imports: 24 Imported by: 1

Documentation

Index

Constants

View Source
const (
	INSTANCES_FLAG  = "instances"
	STEP_DELAY_FLAG = "stepdel"
	RESUME_FLAG     = "resume"
	LB_FLAG         = "lb"
	LB_TIMEOUT_FLAG = "lb-timeout"
	BG_DRYRUN_FLAG  = "dry"
)
View Source
const (
	HOST_FLAG         = "host"
	SCALE_FLAG        = "scale"
	FORMAT_FLAG       = "format"
	TEMPLATE_CTX_FLAG = "tempctx"
	DEFAULT_CTX       = "template-context.json"
	STOP_DEPLOYS_FLAG = "stop-deploys"
)
View Source
const (
	STDERR_FLAG    = "stderr"
	FOLLOW_FLAG    = "follow"
	POLL_FLAG      = "poll"
	COMPLETED_FLAG = "completed"
	LATEST_FLAG    = "latest"
)
View Source
const (
	WAIT_FLAG      string = "wait"
	TIMEOUT_FLAG   string = "wait-timeout"
	FORCE_FLAG     string = "force"
	DETAIL_FLAG    string = "detail"
	PARAMS_FLAG    string = "param"
	ENV_FILE_FLAG  string = "env-file"
	IGNORE_MISSING string = "ignore"
	INSECURE_FLAG  string = "insecure"
	ENV_NAME       string = "env_name"
	DRYRUN_FLAG    string = "dry-run"
)
View Source
const (
	DefaultEnv    = "-"
	ContextErrFmt = "Error parsing template context: %s - %s"
)
View Source
const (
	T_APPLICATIONS = `` /* 277-byte string literal not displayed */

	T_APPLICATION = `` /* 858-byte string literal not displayed */

	T_VERSIONS = `
{{ "VERSIONS" }}
{{ range .Versions }}{{ . }}
{{end}}`

	T_DEPLOYMENT_ID = `
{{ "DEPLOYMENT_ID" }}	{{ "VERSION" }}
{{ .DeploymentID }}	{{ .Version }}`

	T_TASKS = `` /* 172-byte string literal not displayed */

	T_TASK = `` /* 199-byte string literal not displayed */

	T_DEPLOYMENTS = `` /* 217-byte string literal not displayed */

	T_LEADER_INFO = `
{{ "Leader:" }}	{{ .Leader }}
`

	T_PING = `
{{ "HOST" }}	{{ "DURATION" }}
{{ .Host }}	{{ .Elapsed | msDur }}
`

	T_MARATHON_INFO = `` /* 862-byte string literal not displayed */

	T_QUEUED_TASKS = `` /* 139-byte string literal not displayed */

	T_MESSAGE = `
{{ "Message:" }}	{{ .Message }}
`
	T_GROUPS = `` /* 168-byte string literal not displayed */

)

Variables

View Source
var Funcs = FuncMap()

Templated based Functions

Functions

func AddJailedMarathonToCmd

func AddJailedMarathonToCmd(rc *cobra.Command, c *cliconfig.ConfigFile)

Jails (chroots) marathon by including only it's sub commands when we only have a single environment declared and already know the cluster type

func AddMarathonToCmd

func AddMarathonToCmd(rc *cobra.Command, c *cliconfig.ConfigFile)

Associates the marathon service to the given command

func AddToMarathonCommand added in v0.9.4

func AddToMarathonCommand(child *cobra.Command)

func FuncMap added in v0.9.3

func FuncMap() template.FuncMap

func N added in v0.9.3

func N(start, end int) (stream chan int)

func TemplateExists added in v0.9.0

func TemplateExists(filename string) bool

func Usage added in v0.9.2

func Usage(c *cobra.Command) func() error

Types

type TemplateContext added in v0.8.9

type TemplateContext struct {
	Environments map[string]*TemplateEnvironment `json:"environments,omitempty"`
}

func LoadTemplateContext added in v0.8.9

func LoadTemplateContext(filename string) (*TemplateContext, error)

func (*TemplateContext) Transform added in v0.8.9

func (ctx *TemplateContext) Transform(writer io.Writer, descriptor string) error

type TemplateEnvironment added in v0.8.9

type TemplateEnvironment struct {
	Apps map[string]map[string]interface{} `json:"apps,omitempty"`
}

type Templated added in v0.8.6

type Templated struct {
	cli.FormatData
}

func (Templated) Data added in v0.8.6

func (d Templated) Data() cli.FormatData

func (Templated) ToColumns added in v0.8.6

func (d Templated) ToColumns(output io.Writer) error

Jump to

Keyboard shortcuts

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