structs

package
v0.0.0-...-b659250 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2016 License: Apache-2.0, 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 {
	Name    string `json:"name"`
	Release string `json:"release"`
	Status  string `json:"status"`

	Outputs    map[string]string `json:"-"`
	Parameters map[string]string `json:"-"`
	Tags       map[string]string `json:"-"`
}

type Apps

type Apps []App

type Build

type Build struct {
	Id       string `json:"id"`
	App      string `json:"app"`
	Logs     string `json:"logs"`
	Manifest string `json:"manifest"`
	Release  string `json:"release"`

	Status string `json:"status"`
	Reason string `json:"reason"`

	Description string `json:"description"`

	Started time.Time `json:"started"`
	Ended   time.Time `json:"ended"`
}

func NewBuild

func NewBuild(app string) *Build

type Builds

type Builds []Build

type Capacity

type Capacity struct {
	ClusterMemory  int64 `json:"cluster-memory"`
	InstanceMemory int64 `json:"instance-memory"`
	ProcessCount   int64 `json:"process-count"`
	ProcessMemory  int64 `json:"process-memory"`
	ProcessWidth   int64 `json:"process-width"`
}

type Certificate

type Certificate struct {
	Id         string    `json:"id"`
	Domain     string    `json:"domain"`
	Expiration time.Time `json:"expiration"`
}

type Certificates

type Certificates []Certificate

func (Certificates) Len

func (c Certificates) Len() int

func (Certificates) Less

func (c Certificates) Less(i, j int) bool

func (Certificates) Swap

func (c Certificates) Swap(i, j int)

type Event

type Event struct {
	Action    string            `json:"action"` // app:create, release:create, release:promote, etc.
	Status    string            `json:"status"` // success or error
	Data      map[string]string `json:"data"`   // {"rack": "example-rack", "app": "example-app", "id": "R123456789", "message": "unable to load release"}
	Timestamp time.Time         `json:"timestamp"`
}

type Index

type Index map[string]IndexItem

type IndexItem

type IndexItem struct {
	Name    string      `json:"name"`
	Mode    os.FileMode `json:"mode"`
	ModTime time.Time   `json:"mtime"`
}

type Instance

type Instance struct {
	Agent     bool      `json:"agent"`
	Cpu       float64   `json:"cpu"`
	Id        string    `json:"id"`
	Memory    float64   `json:"memory"`
	PrivateIp string    `json:"private-ip"`
	Processes int       `json:"processes"`
	PublicIp  string    `json:"public-ip"`
	Status    string    `json:"status"`
	Started   time.Time `json:"started"`
}

func (*Instance) DockerClient

func (i *Instance) DockerClient() (*docker.Client, error)

func (*Instance) DockerHost

func (i *Instance) DockerHost() string

func (*Instance) Ip

func (i *Instance) Ip() string

type InstanceResource

type InstanceResource struct {
	Total int `json:"total"`
	Free  int `json:"free"`
	Used  int `json:"used"`
}

func (InstanceResource) PercentUsed

func (ir InstanceResource) PercentUsed() float64

type Instances

type Instances []Instance

type LogStreamOptions

type LogStreamOptions struct {
	Filter string        `json:"filter"`
	Follow bool          `json:"follow"`
	Since  time.Duration `json:"since"`
}

type Release

type Release struct {
	Id       string    `json:"id"`
	App      string    `json:"app"`
	Build    string    `json:"build"`
	Env      string    `json:"env"`
	Manifest string    `json:"manifest"`
	Created  time.Time `json:"created"`
}

func NewRelease

func NewRelease(app string) *Release

type Releases

type Releases []Release

type Service

type Service struct {
	Name         string `json:"name"`
	Status       string `json:"status"`
	StatusReason string `json:"status-reason"`
	Type         string `json:"type"`

	Apps    Apps              `json:"apps"`
	Exports map[string]string `json:"exports"`

	Outputs    map[string]string `json:"-"`
	Parameters map[string]string `json:"-"`
	Tags       map[string]string `json:"-"`
}

type Services

type Services []Service

type System

type System struct {
	Count   int    `json:"count"`
	Name    string `json:"name"`
	Region  string `json:"region"`
	Status  string `json:"status"`
	Type    string `json:"type"`
	Version string `json:"version"`
}

Jump to

Keyboard shortcuts

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