marathon

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2014 License: Apache-2.0 Imports: 4 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
	Port            string
	HealthCheckPath string
	Tasks           []Task
}

An app may have multiple processes

func FetchApps

func FetchApps(endpoint string) ([]App, 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 AppConfigResponse

type AppConfigResponse struct {
	Apps []AppConfiguration `json:apps`
}

type AppConfiguration

type AppConfiguration struct {
	Id           string         `json:id`
	HealthChecks []HealthChecks `json:healthChecks`
}

type HealthChecks

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

type Task

type Task struct {
	Host string
	Port string
}

Describes an app process running

Jump to

Keyboard shortcuts

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