Add the information about osbuid artifact to the target result. Specifically the name of the osbuild pipeline which was exported for the specific target, and the filename of the exported file. This will later enable embedding this information in Koji build metadata to make it easy to reproduce the image build using the attached manifest.
23 lines
653 B
Go
23 lines
653 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(artifact *OsbuildArtifact) *TargetResult {
|
|
return newTargetResult(TargetNameVMWare, nil, artifact)
|
|
}
|