targets: add dummy azure and aws targets

These are not currently implemented in the backend, but shows how
the API will look like.

Signed-off-by: Tom Gundersen <teg@jklm.no>
This commit is contained in:
Tom Gundersen 2019-11-22 13:31:05 +01:00 committed by Ondřej Budai
parent 283e89d0f4
commit e98b189b82
6 changed files with 45 additions and 7 deletions

View file

@ -27,6 +27,10 @@ func (target *Target) UnmarshalJSON(data []byte) error {
}
var options TargetOptions
switch rawTarget.Name {
case "org.osbuild.azure":
options = new(AzureTargetOptions)
case "org.osbuild.aws":
options = new(AWSTargetOptions)
case "org.osbuild.local":
options = new(LocalTargetOptions)
default: