internal/target: add Azure image HyperV generation
This commit is contained in:
parent
867ff9c06e
commit
d2f50a4224
1 changed files with 12 additions and 4 deletions
|
|
@ -2,11 +2,19 @@ package target
|
|||
|
||||
const TargetNameAzureImage TargetName = "org.osbuild.azure.image"
|
||||
|
||||
type HyperVGenerationType string
|
||||
|
||||
const (
|
||||
HyperVGenV1 HyperVGenerationType = "V1"
|
||||
HyperVGenV2 HyperVGenerationType = "V2"
|
||||
)
|
||||
|
||||
type AzureImageTargetOptions struct {
|
||||
TenantID string `json:"tenant_id"`
|
||||
Location string `json:"location,omitempty"`
|
||||
SubscriptionID string `json:"subscription_id"`
|
||||
ResourceGroup string `json:"resource_group"`
|
||||
TenantID string `json:"tenant_id"`
|
||||
Location string `json:"location,omitempty"`
|
||||
SubscriptionID string `json:"subscription_id"`
|
||||
ResourceGroup string `json:"resource_group"`
|
||||
HyperVGeneration HyperVGenerationType `json:"hyperv_generation"`
|
||||
}
|
||||
|
||||
func (AzureImageTargetOptions) isTargetOptions() {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue