types

package
v0.0.0-...-6a33cd4 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2014 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Clouds

type Clouds struct {
	Plans []Plan
}

type Containers

type Containers struct {
	ID         string `json:"Id"`
	Image      string
	Command    string
	Created    int64
	Status     string
	Ports      []Port
	SizeRw     int64
	SizeRootFs int64
	Names      []string
}

type Fleet

type Fleet struct {
	// contains filtered or unexported fields
}

func NewFleet

func NewFleet(ships []Ship) Fleet

func (*Fleet) Add

func (fleet *Fleet) Add(value Ship)

func (*Fleet) Append

func (fleet *Fleet) Append(ships []Ship)

func (*Fleet) AppendShip

func (fleet *Fleet) AppendShip(ship Ship)

func (*Fleet) Available

func (fleet *Fleet) Available() []Ship

func (*Fleet) Delete

func (fleet *Fleet) Delete(ship Ship)

func (*Fleet) Find

func (fleet *Fleet) Find(idOrName string) Ship

func (*Fleet) Ships

func (fleet *Fleet) Ships() []Ship

func (*Fleet) Update

func (fleet *Fleet) Update(ship Ship)

type Plan

type Plan struct {
	Id        string `json:"id"`
	Provider  string `json:"cloud_provider"`
	Continent string `json:"continent"`
	Region    string `json:"region"`
	Plan      string `json:"plan"`
}

type Port

type Port struct {
	PrivatePort int64
	PublicPort  int64
	Type        string
	IP          string
}

type Ship

type Ship struct {
	Id         string `json:"id"`
	Name       string `json:"name"`
	Fqdn       string `json:"fqdn"`
	Ip         string `json:"ipAddress"`
	State      string `json:"state"`
	Os         string `json:"os"`
	Plan       string `json:"plan"`
	Port       int    `json:"port"`
	Schema     string `json:"schema"`
	LocalPort  int
	Containers []Containers
	Touched    bool
}

func (*Ship) IsNil

func (ship *Ship) IsNil() bool

type Ships

type Ships struct {
	Ships []Ship
}

Jump to

Keyboard shortcuts

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