Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Default provisioning provider for vms is OpenNebula. // This is just an endpoint for Megam. We could have openstack, chef, salt, puppet etc. DefaultProvider = "one" DefaultImage = "megam" DefaultCpuThrottle = "1" // DefaultOneEndpoint is the default address that the service binds to an IaaS (OpenNebula). DefaultOneEndpoint = "http://localhost:2633/RPC2" // DefaultUserid the default userid for the IaaS service (OpenNebula). DefaultOneUserid = "oneadmin" // DefaultOnePassword is the default password for the IaaS service (OpenNebula). DefaultOnePassword = "password" // DefaultOneTemplate is the default template for the IaaS service (OpenNebula). DefaultOneTemplate = "megam" // DefaultOneZone is the default master zone for the IaaS service (OpenNebula). DefaultOneMasterZone = "OpenNebula" // DefaultOneZone is the default zone for the IaaS service (OpenNebula). DefaultOneZone = "africa" //DefaultOneCluster is the default cluster for Host in the Iaas service (OpenNebula) DefaultOneCluster = "cluster-a" //DefaultOneCluster is the default cluster for Host in the Iaas service (OpenNebula) DefaultOneVnetPri = "vnet-pri" //DefaultOneCluster is the default cluster for Host in the Iaas service (OpenNebula) DefaultOneVnetPub = "vnet-pub" ONEZONE = "zone" )
View Source
const (
TOPIC = "vms"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Provider string `json:"provider" toml:"provider"` One one.One `json:"one" toml:"one"` }
func (Config) ToInterface ¶
func (c Config) ToInterface() interface{}
convert the config to just an interface.
type Handler ¶
type Handler struct { EventChannel chan bool // contains filtered or unexported fields }
func NewHandler ¶
type Service ¶
type Service struct { Handler *Handler Consumer *nsq.Consumer Meta *meta.Config Deployd *Config // contains filtered or unexported fields }
Service manages the listener and handler for an HTTP endpoint.
func NewService ¶
NewService returns a new instance of Service.
Click to show internal directories.
Click to hide internal directories.