target: add new fields to target and cleanup

We need some more fields in target struct to support weldr API. This commit
introduces them. Also a bit of cleanup is done.
This commit is contained in:
Ondřej Budai 2019-11-26 20:07:44 +01:00 committed by Tom Gundersen
parent 364ea62f59
commit df7e14d5eb
4 changed files with 44 additions and 24 deletions

View file

@ -9,8 +9,5 @@ type AzureTargetOptions struct {
func (AzureTargetOptions) isTargetOptions() {}
func NewAzureTarget(options *AzureTargetOptions) *Target {
return &Target{
Name: "org.osbuild.azure",
Options: options,
}
return newTarget("org.osbuild.azure", options)
}