marathon

package
v0.2.9 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 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 App

type App struct {
	Id              string
	EscapedId       string
	HealthCheckPath string
	Tasks           []Task
	ServicePort     int
	Env             map[string]string
}

An app may have multiple processes

type AppList added in v0.2.0

type AppList []App

func FetchApps

func FetchApps(maraconf configuration.Marathon) (AppList, error)

Apps returns a struct that describes Marathon current app and their sub tasks information.

Parameters:

endpoint: Marathon HTTP endpoint, e.g. http://localhost:8080

func (AppList) Len added in v0.2.0

func (slice AppList) Len() int

func (AppList) Less added in v0.2.0

func (slice AppList) Less(i, j int) bool

func (AppList) Swap added in v0.2.0

func (slice AppList) Swap(i, j int)

type HealthChecks

type HealthChecks struct {
	Path string `json:path`
}

type MarathonApp added in v0.2.0

type MarathonApp struct {
	Id           string            `json:id`
	HealthChecks []HealthChecks    `json:healthChecks`
	Ports        []int             `json:ports`
	Env          map[string]string `json:env`
}

type MarathonApps added in v0.2.0

type MarathonApps struct {
	Apps []MarathonApp `json:apps`
}

type MarathonTask added in v0.2.0

type MarathonTask struct {
	AppId        string
	Id           string
	Host         string
	Ports        []int
	ServicePorts []int
	StartedAt    string
	StagedAt     string
	Version      string
}

type MarathonTaskList added in v0.2.0

type MarathonTaskList []MarathonTask

func (MarathonTaskList) Len added in v0.2.0

func (slice MarathonTaskList) Len() int

func (MarathonTaskList) Less added in v0.2.0

func (slice MarathonTaskList) Less(i, j int) bool

func (MarathonTaskList) Swap added in v0.2.0

func (slice MarathonTaskList) Swap(i, j int)

type MarathonTasks added in v0.2.0

type MarathonTasks struct {
	Tasks MarathonTaskList `json:tasks`
}

type Task

type Task struct {
	Host string
	Port int
}

Describes an app process running

Jump to

Keyboard shortcuts

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