Beispiel #1
0
func NewCreate() *Create {
	create := &Create{}
	create.Data = data.NewData()

	// FIXME: make this a flag
	create.logfile = "create.log"

	return create
}
Beispiel #2
0
func getVPXData(url *url.URL) *data.Data {
	result := data.NewData()
	result.URL = url
	result.DisplayName = "test001"
	result.ComputeResourcePath = "/DC0/host/DC0_C0/Resources"
	result.ImageDatastorePath = "LocalDS_0"
	result.ExternalNetwork.Name = "VM Network"
	result.BridgeNetworkName = "bridge"
	result.VolumeLocations = make(map[string]string)
	result.VolumeLocations["volume-store"] = "LocalDS_0/volumes/test"

	return result
}
Beispiel #3
0
func getESXData(url *url.URL) *data.Data {
	result := data.NewData()
	result.URL = url
	result.DisplayName = "test001"
	result.ComputeResourcePath = "/ha-datacenter/host/localhost.localdomain/Resources"
	result.ImageDatastorePath = "LocalDS_0"
	result.BridgeNetworkName = "bridge"
	result.ManagementNetworkName = "VM Network"
	result.ExternalNetworkName = "VM Network"
	result.VolumeLocations = make(map[string]string)
	result.VolumeLocations["volume-store"] = "LocalDS_0/volumes/test"

	return result
}
Beispiel #4
0
func NewUninstall() *Uninstall {
	d := &Uninstall{}
	d.Data = data.NewData()
	return d
}
Beispiel #5
0
func NewInspect() *Inspect {
	d := &Inspect{}
	d.Data = data.NewData()
	return d
}
Beispiel #6
0
func NewList() *List {
	d := &List{}
	d.Data = data.NewData()
	return d
}
Beispiel #7
0
func NewUpgrade() *Upgrade {
	upgrade := &Upgrade{}
	upgrade.Data = data.NewData()

	return upgrade
}
Beispiel #8
0
func NewDebug() *Debug {
	d := &Debug{}
	d.Data = data.NewData()
	return d
}
Beispiel #9
0
func NewCreate() *Create {
	create := &Create{}
	create.Data = data.NewData()

	return create
}