vpanel

package module
v0.0.0-...-9f69552 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2015 License: Apache-2.0 Imports: 16 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.

README

Yet another amazing AngularJS app!

Getting Started

Documentation

(Coming soon)

Examples

(Coming soon)

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ContainerError    = ContainerState("Error")
	ContainerCreating = ContainerState("Creating")
	ContainerStopping = ContainerState("Stopping")
	ContainerStopped  = ContainerState("Stopped")
	ContainerStarting = ContainerState("Starting")
	ContainerRunning  = ContainerState("Running")
	ContainerFreezing = ContainerState("Freezing")
	ContainerFrozen   = ContainerState("Frozen")
)
View Source
var Config config
View Source
var Logger logger

Functions

func ContainerTemplates

func ContainerTemplates() ([]string, error)

Types

type Action

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

type Container

type Container struct {
	Metadata ContainerMetadata
	Stats    ContainerStats
	// contains filtered or unexported fields
}

func (*Container) ConfigItem

func (c *Container) ConfigItem(key string) string

func (*Container) ConfigItems

func (c *Container) ConfigItems(key string) []string

func (*Container) Create

func (c *Container) Create() error

func (*Container) Destroy

func (c *Container) Destroy() error

func (*Container) Freeze

func (c *Container) Freeze() error

func (*Container) Start

func (c *Container) Start() error

func (*Container) Stop

func (c *Container) Stop() error

type ContainerMetadata

type ContainerMetadata struct {
	Id          uuid.UUID      `json:"id"`
	Name        string         `json:"name"`
	Hostname    string         `json:"hostname"`
	IPAddresses []net.IP       `json:"ip"`
	Template    string         `json:"template"`
	AutoStart   bool           `json:"autostart"`
	State       ContainerState `json:"state"`
	Err         error          `json:"-"`
}

func NewContainerMetadata

func NewContainerMetadata() ContainerMetadata

func (*ContainerMetadata) IsValid

func (c *ContainerMetadata) IsValid() bool

func (*ContainerMetadata) Validate

func (c *ContainerMetadata) Validate(expression bool, err error)

func (*ContainerMetadata) ValidateHostname

func (c *ContainerMetadata) ValidateHostname()

func (*ContainerMetadata) ValidateName

func (c *ContainerMetadata) ValidateName()

func (*ContainerMetadata) ValidateTemplate

func (c *ContainerMetadata) ValidateTemplate()

type ContainerNotFoundError

type ContainerNotFoundError error

type ContainerState

type ContainerState string

type ContainerStats

type ContainerStats struct {
	Cpu    float64     `json:"cpu"`
	Memory MemoryStats `json:"memory"`
	// contains filtered or unexported fields
}

type CreateAction

type CreateAction Action

type DestroyAction

type DestroyAction Action

type DiskStats

type DiskStats struct {
	Utilization float64 `json:"utilization"`
	Free        string  `json:"free"`
	Total       string  `json:"total"`
}

type DuplicateContainerIdError

type DuplicateContainerIdError error

type FreezeAction

type FreezeAction Action

type HostMonitor

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

func NewHostMonitor

func NewHostMonitor(m *Manager) *HostMonitor

func (*HostMonitor) HostStats

func (m *HostMonitor) HostStats() HostStats

func (*HostMonitor) Start

func (m *HostMonitor) Start()

func (*HostMonitor) Stop

func (m *HostMonitor) Stop()

type HostStats

type HostStats struct {
	Hostname string               `json:"hostname"`
	Cpu      float64              `json:"cpu"`
	Memory   MemoryStats          `json:"memory"`
	Disk     map[string]DiskStats `json:"disk"`
	Uptime   string               `json:"uptime"`
}

type InvalidStateErr

type InvalidStateErr error

type Manager

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

func NewManager

func NewManager() *Manager

func (*Manager) AddContainer

func (m *Manager) AddContainer(container *Container) error

func (*Manager) CreateContainer

func (m *Manager) CreateContainer(metadata ContainerMetadata) error

func (*Manager) DestroyContainer

func (m *Manager) DestroyContainer(id string) error

func (*Manager) GetContainer

func (m *Manager) GetContainer(id string) (*Container, error)

type MemoryStats

type MemoryStats struct {
	Utilization float64 `json:"utilization"`
	Free        string  `json:"free"`
	Total       string  `json:"total"`
}

type StartAction

type StartAction Action

type StopAction

type StopAction Action

type ValidationError

type ValidationError error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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