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:
parent
283e89d0f4
commit
e98b189b82
6 changed files with 45 additions and 7 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue