Documentation ¶
Index ¶
- Constants
- Variables
- func HandleVPNtunnels() (f func(), err error)
- func PullImage(channel, version string, override, preferLocal bool) (v string, err error)
- func Start() (err error)
- type MediaAssets
- type NetworkInterface
- type RPCquery
- type RPCreply
- type RPCservice
- func (s *RPCservice) ActiveVMs(r *http.Request, args *RPCquery, reply *RPCreply) (err error)
- func (s *RPCservice) AvailableImages(r *http.Request, args *RPCquery, reply *RPCreply) (err error)
- func (s *RPCservice) Echo(r *http.Request, args *RPCquery, reply *RPCreply) (err error)
- func (s *RPCservice) RemoveImage(r *http.Request, args *RPCquery, reply *RPCreply) (err error)
- func (s *RPCservice) Run(r *http.Request, args *RPCquery, reply *RPCreply) (err error)
- func (s *RPCservice) Stop(r *http.Request, args *RPCquery, reply *RPCreply) (err error)
- func (s *RPCservice) StopVMs(r *http.Request, args *RPCquery, reply *RPCreply) (err error)
- func (s *RPCservice) UUIDtoMACaddr(r *http.Request, args *RPCquery, reply *RPCreply) (err error)
- type ServerContext
- type StorageAssets
- type StorageDevice
- type VMInfo
- func (vm *VMInfo) Log() string
- func (vm *VMInfo) MkRunDir() error
- func (vm *VMInfo) PrettyPrint()
- func (vm *VMInfo) RunDir() string
- func (vm *VMInfo) SSHkeyGen() (err error)
- func (vm *VMInfo) TTY() string
- func (vm *VMInfo) ValidateCDROM(path string) (err error)
- func (vm *VMInfo) ValidateCloudConfig(config string) (err error)
- func (vm *VMInfo) ValidateVolumes(volumes []string, root bool) (err error)
Constants ¶
View Source
const ( Raw Tap HDD = "HDD" CDROM = "CDROM" Local = "localfs" Remote = "URL" Attached = true Detached = false )
Variables ¶
View Source
var (
ErrServerShuttingDown = fmt.Errorf("Request ignored as server shutting down")
)
View Source
var ServerTimeout = 25 * time.Second
Functions ¶
func HandleVPNtunnels ¶
func HandleVPNtunnels() (f func(), err error)
Types ¶
type NetworkInterface ¶
NetworkInterface ...
type RPCreply ¶
type RPCservice ¶
type RPCservice struct{}
func (*RPCservice) AvailableImages ¶
func (*RPCservice) RemoveImage ¶
func (*RPCservice) UUIDtoMACaddr ¶
type ServerContext ¶ added in v0.7.1
type ServerContext struct { DataStore client.KeysAPI Meta *release.Info Media MediaAssets Active map[string]*VMInfo APIserver *manners.GracefulServer Jobs sync.WaitGroup AcceptingRequests bool Oops chan error sync.Mutex }
Config ...
var Daemon *ServerContext
type StorageAssets ¶
type StorageAssets struct {
CDDrives, HardDrives map[string]StorageDevice `json:",omitempty"`
}
StorageAssets ...
func (*StorageAssets) PrettyPrint ¶
func (volumes *StorageAssets) PrettyPrint(root int)
type VMInfo ¶
type VMInfo struct {
Name, Channel, Version, UUID string
MacAddress, PublicIP string
InternalSSHkey, InternalSSHprivate string
Cpus, Memory, Pid, Root int
SSHkey, CloudConfig, CClocation string `json:",omitempty"`
AddToHypervisor, AddToKernel string `json:",omitempty"`
Ethernet []NetworkInterface
Storage StorageAssets `json:",omitempty"`
VMInfo - per VM settings
func (*VMInfo) PrettyPrint ¶
func (vm *VMInfo) PrettyPrint()
func (*VMInfo) ValidateCDROM ¶
ValidateCDROM ...
func (*VMInfo) ValidateCloudConfig ¶
ValidateCloudConfig ...
Source Files ¶
Click to show internal directories.
Click to hide internal directories.