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 MesosDnsId string EscapedId string HealthCheckPath string HealthChecks []HealthCheck Tasks []Task ServicePort int ServicePorts []int Env map[string]string Labels 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, conf *configuration.Configuration) (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
type HealthCheck ¶ added in v0.2.13
type HealthCheck struct { // One of TCP, HTTP or COMMAND Protocol string // The path (if Protocol is HTTP) Path string // The position of the port targeted in the ports array PortIndex int }
A health check on the application
Click to show internal directories.
Click to hide internal directories.