apps

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2016 License: Apache-2.0 Imports: 2 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	Labels       map[string]string `json:"labels"`
	HealthChecks []HealthCheck     `json:"healthChecks"`
	ID           AppId             `json:"id"`
	Tasks        []Task            `json:"tasks"`
}

func ParseApp

func ParseApp(jsonBlob []byte) (*App, error)

func ParseApps

func ParseApps(jsonBlob []byte) ([]*App, error)

func (*App) ConsulServiceName added in v0.3.2

func (app *App) ConsulServiceName() string

func (*App) IsConsulApp added in v0.3.1

func (app *App) IsConsulApp() bool

type AppId added in v0.3.2

type AppId string

Marathon Application Id (aka PathId) Usually in the form of /rootGroup/subGroup/subSubGroup/name allowed characters: lowercase letters, digits, hyphens, slash

func (AppId) ConsulServiceName added in v0.3.2

func (id AppId) ConsulServiceName() string

func (AppId) String added in v0.3.2

func (id AppId) String() string

type AppWrapper

type AppWrapper struct {
	App App `json:"app"`
}

type AppsResponse

type AppsResponse struct {
	Apps []*App `json:"apps"`
}

type HealthCheck

type HealthCheck struct {
	Path                   string `json:"path"`
	PortIndex              int    `json:"portIndex"`
	Protocol               string `json:"protocol"`
	GracePeriodSeconds     int    `json:"gracePeriodSeconds"`
	IntervalSeconds        int    `json:"intervalSeconds"`
	TimeoutSeconds         int    `json:"timeoutSeconds"`
	MaxConsecutiveFailures int    `json:"maxConsecutiveFailures"`
}

type HealthCheckResult added in v0.3.2

type HealthCheckResult struct {
	Alive bool `json:"alive"`
}

type Task added in v0.3.2

type Task struct {
	ID                 TaskId              `json:"id"`
	TaskStatus         string              `json:"taskStatus"`
	AppID              AppId               `json:"appId"`
	Host               string              `json:"host"`
	Ports              []int               `json:"ports"`
	HealthCheckResults []HealthCheckResult `json:"healthCheckResults"`
}

func ParseTask added in v0.3.2

func ParseTask(event []byte) (*Task, error)

func ParseTasks added in v0.3.2

func ParseTasks(jsonBlob []byte) ([]*Task, error)

func (*Task) IsHealthy added in v0.3.2

func (t *Task) IsHealthy() bool

type TaskId added in v0.3.2

type TaskId string

Marathon Task Id Usually in the form of AppId.uuid with '/' replaced with '_'

func (TaskId) String added in v0.3.2

func (id TaskId) String() string

type TasksResponse added in v0.3.2

type TasksResponse struct {
	Tasks []*Task `json:"tasks"`
}

Jump to

Keyboard shortcuts

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