Пример #1
0
func NewCreate() *Create {
	create := &Create{}
	create.Data = data.NewData()

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

	return create
}
Пример #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
}
Пример #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
}
Пример #4
0
func NewUninstall() *Uninstall {
	d := &Uninstall{}
	d.Data = data.NewData()
	return d
}
Пример #5
0
func NewInspect() *Inspect {
	d := &Inspect{}
	d.Data = data.NewData()
	return d
}
Пример #6
0
Файл: list.go Проект: vmware/vic
func NewList() *List {
	d := &List{}
	d.Data = data.NewData()
	return d
}
Пример #7
0
func NewUpgrade() *Upgrade {
	upgrade := &Upgrade{}
	upgrade.Data = data.NewData()

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

	return create
}