Extend Weldr API to allow user to specify option to upload built image to VMWare, makes use of previously define upload target.
17 lines
471 B
Go
17 lines
471 B
Go
package target
|
|
|
|
type VMWareTargetOptions struct {
|
|
Filename string `json:"filename"`
|
|
Host string `json:"host"`
|
|
Username string `json:"username"`
|
|
Password string `json:"password"`
|
|
Datacenter string `json:"datacenter"`
|
|
Cluster string `json:"cluster"`
|
|
Datastore string `json:"datastore"`
|
|
}
|
|
|
|
func (VMWareTargetOptions) isTargetOptions() {}
|
|
|
|
func NewVMWareTarget(options *VMWareTargetOptions) *Target {
|
|
return newTarget("org.osbuild.vmware", options)
|
|
}
|