debian-forge-composer/internal/target/vmware_target.go
Sanne Raymaekers 8a8607cdf6 internal/vmware: add support for the GOVC_FOLDER option
When importing the ova it also creates a VM, and users don't always have
permission to register in the default folder.
2023-05-25 10:14:32 +02:00

23 lines
618 B
Go

package target
const TargetNameVMWare TargetName = "org.osbuild.vmware"
type VMWareTargetOptions struct {
Host string `json:"host"`
Username string `json:"username"`
Password string `json:"password"`
Datacenter string `json:"datacenter"`
Cluster string `json:"cluster"`
Datastore string `json:"datastore"`
Folder string `json:"folder"`
}
func (VMWareTargetOptions) isTargetOptions() {}
func NewVMWareTarget(options *VMWareTargetOptions) *Target {
return newTarget(TargetNameVMWare, options)
}
func NewVMWareTargetResult() *TargetResult {
return newTargetResult(TargetNameVMWare, nil)
}