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

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

	return create
}
Esempio n. 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
}
Esempio n. 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
}
Esempio n. 4
0
func NewUninstall() *Uninstall {
	d := &Uninstall{}
	d.Data = data.NewData()
	return d
}
Esempio n. 5
0
func NewInspect() *Inspect {
	d := &Inspect{}
	d.Data = data.NewData()
	return d
}
Esempio n. 6
0
File: list.go Progetto: vmware/vic
func NewList() *List {
	d := &List{}
	d.Data = data.NewData()
	return d
}
Esempio n. 7
0
func NewUpgrade() *Upgrade {
	upgrade := &Upgrade{}
	upgrade.Data = data.NewData()

	return upgrade
}
Esempio n. 8
0
File: debug.go Progetto: vmware/vic
func NewDebug() *Debug {
	d := &Debug{}
	d.Data = data.NewData()
	return d
}
Esempio n. 9
0
File: create.go Progetto: vmware/vic
func NewCreate() *Create {
	create := &Create{}
	create.Data = data.NewData()

	return create
}