app_examiner

package
Version: v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2015 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const AppNotFoundErrorMessage = "App not found."

Variables

This section is empty.

Functions

func New

func New(receptorClient receptor.Client) *appExaminer

Types

type AppExaminer

type AppExaminer interface {
	ListApps() ([]AppInfo, error)
	ListCells() ([]CellInfo, error)
	AppStatus(appName string) (AppInfo, error)
}

type AppInfo

type AppInfo struct {
	ProcessGuid            string
	DesiredInstances       int
	ActualRunningInstances int
	Stack                  string
	EnvironmentVariables   []EnvironmentVariable
	StartTimeout           uint
	DiskMB                 int
	MemoryMB               int
	CPUWeight              uint
	Ports                  []uint16
	Routes                 route_helpers.AppRoutes
	LogGuid                string
	LogSource              string
	Annotation             string
	ActualInstances        []InstanceInfo
}

type CellInfo

type CellInfo struct {
	CellID           string
	RunningInstances int
	ClaimedInstances int
	Missing          bool
}

type EnvironmentVariable

type EnvironmentVariable struct {
	Name  string
	Value string
}

type InstanceInfo

type InstanceInfo struct {
	InstanceGuid   string
	CellID         string
	Index          int
	Ip             string
	Ports          []PortMapping
	State          string
	Since          int64
	PlacementError string
	CrashCount     int
}

type PortMapping

type PortMapping struct {
	HostPort      uint16
	ContainerPort uint16
}

Source Files

Directories

Path Synopsis
This file was generated by counterfeiter
This file was generated by counterfeiter

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL