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

@ -11,8 +11,5 @@ type AWSTargetOptions struct {
func (AWSTargetOptions) isTargetOptions() {}
func NewAWSTarget(options *AWSTargetOptions) *Target {
return &Target{
Name: "org.osbuild.aws",
Options: options,
}
return newTarget("org.osbuild.aws", options)
}