model

package
v2.0.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2017 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	//InstanceDied not runnig due to failure
	InstanceDied InstanceStatus
	//InstanceStopped stopped by request
	InstanceStopped = InstanceStatus(10)
	//InstanceStarted started
	InstanceStarted = InstanceStatus(20)
)

Functions

This section is empty.

Types

type Config

type Config struct {
	Network          string
	APIPort          string
	Domain           string
	ImageName        string
	StorePath        string
	InstanceDataPath string
	LogLevel         string
	Autostart        bool
}

Config stores settings for the appliance

type Instance

type Instance struct {
	Name    string
	ID      string
	Created time.Time
	Status  InstanceStatus
	IP      string
	Port    string
}

Instance is a contianer instance

func NewInstance

func NewInstance(name string) *Instance

NewInstance return a new json instance

type InstanceStatus

type InstanceStatus int

InstanceStatus last known state of an instance

Jump to

Keyboard shortcuts

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