Documentation ¶
Index ¶
- Constants
- Variables
- func PullImage(channel, version string, override, preferLocal bool) (v string, err error)
- func Start() (err error)
- func ValidateQcow2(fh *os.File) (err error)
- type DNSServer
- type EtcdServer
- 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) HandlesNFS(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)
- type VMmap
- type VMs
Constants ¶
View Source
const ( Raw Qcow2 Tap HDD = "HDD" CDROM = "CDROM" Local = "localfs" Remote = "URL" )
View Source
const (
EtcdName = "corectld.store"
)
Variables ¶
View Source
var ( RecursiveNameServers = []string{ "8.8.8.8:53", "8.8.4.4:53", } LocalDomainName = "coreos.local" WatermarkHeader = "#\n# This file is automatically generated " + "and managed by corectl\n#\n" EmbeddedDNSport = "15353" )
View Source
var ( // EtcdClientURLs have listeners created and handle etcd API traffic EtcdClientURLs = []string{"http://localhost:2379"} // EtcdPeerURLs don't have listeners created for them, they are used to pass // Etcd validation EtcdPeerURLs = []string{"http://0.0.0.0:2380"} )
View Source
var ( ErrServerShuttingDown = fmt.Errorf("Request ignored as server is shutting down") ErrNothingToShutdown = fmt.Errorf("Request ignored as no VMs were found running") ErrUnknownVM = fmt.Errorf("Request ignored as no VM with requested name or UUID was found") )
View Source
var ErrFileIsNotQCOW2 = fmt.Errorf("File doesn't appear to be a qcow one")
View Source
var ServerTimeout = 25 * time.Second
Functions ¶
func ValidateQcow2 ¶ added in v0.7.12
adapted from github.com/vbatts/qcow2/cmd/qcow2-info/main.go
Types ¶
type DNSServer ¶ added in v0.7.12
type DNSServer struct {
// contains filtered or unexported fields
}
func (*DNSServer) PortForward ¶ added in v0.7.17
type EtcdServer ¶ added in v0.7.12
type EtcdServer struct { *etcdserver.EtcdServer // contains filtered or unexported fields }
Etcd is a Server which manages an Etcd cluster
func (*EtcdServer) Start ¶ added in v0.7.12
func (e *EtcdServer) Start() (err error)
Starts starts the etcd server and listening for client connections
func (*EtcdServer) Stop ¶ added in v0.7.12
func (e *EtcdServer) Stop()
Stop closes all connections and stops the Etcd server
type NetworkInterface ¶
NetworkInterface ...
type RPCreply ¶
type RPCservice ¶
type RPCservice struct{}
func (*RPCservice) AvailableImages ¶
func (*RPCservice) HandlesNFS ¶ added in v0.7.14
func (*RPCservice) RemoveImage ¶
func (*RPCservice) UUIDtoMACaddr ¶
type ServerContext ¶ added in v0.7.1
type ServerContext struct { Meta *release.Info Media MediaAssets Active VMmap APIserver *manners.GracefulServer EtcdServer *EtcdServer EtcdClient client.KeysAPI DNSServer *DNSServer Jobs sync.WaitGroup AcceptingRequests bool WorkingNFS bool Oops chan error sync.Mutex }
Config ...
var Daemon *ServerContext
func (*ServerContext) NewDNSServer ¶ added in v0.7.12
func (d *ServerContext) NewDNSServer(root, serverAddress string, ns []string) (err error)
type StorageAssets ¶
type StorageAssets struct {
CDDrives, HardDrives map[string]StorageDevice `json:",omitempty"`
}
StorageAssets ...
func (*StorageAssets) PrettyPrint ¶
func (volumes *StorageAssets) PrettyPrint(root bool)
type StorageDevice ¶
StorageDevice ...
type VMInfo ¶
type VMInfo struct {
Name, Channel, Version, UUID string
MacAddress, PublicIP string
InternalSSHkey, InternalSSHprivate string
Cpus, Memory, Pid 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.