azure: normalize the terms for Azure credentials
The account field is actually a storage account and the secret key is actually a storage secret key. This is clearer to the user.
This commit is contained in:
parent
3ce3a2ad80
commit
771f9bf849
2 changed files with 14 additions and 14 deletions
|
|
@ -1,10 +1,10 @@
|
|||
package target
|
||||
|
||||
type AzureTargetOptions struct {
|
||||
Filename string `json:"filename"`
|
||||
Account string `json:"account"`
|
||||
AccessKey string `json:"accessKey"`
|
||||
Container string `json:"container"`
|
||||
Filename string `json:"filename"`
|
||||
StorageAccount string `json:"storageAccount"`
|
||||
StorageAccessKey string `json:"storageAccessKey"`
|
||||
Container string `json:"container"`
|
||||
}
|
||||
|
||||
func (AzureTargetOptions) isTargetOptions() {}
|
||||
|
|
|
|||
|
|
@ -36,9 +36,9 @@ type awsUploadSettings struct {
|
|||
func (awsUploadSettings) isUploadSettings() {}
|
||||
|
||||
type azureUploadSettings struct {
|
||||
Account string `json:"account"`
|
||||
AccessKey string `json:"accessKey"`
|
||||
Container string `json:"container"`
|
||||
StorageAccount string `json:"storageAccount"`
|
||||
StorageAccessKey string `json:"storageAccessKey"`
|
||||
Container string `json:"container"`
|
||||
}
|
||||
|
||||
func (azureUploadSettings) isUploadSettings() {}
|
||||
|
|
@ -107,9 +107,9 @@ func targetsToUploadResponses(targets []*target.Target) []uploadResponse {
|
|||
case *target.AzureTargetOptions:
|
||||
upload.ProviderName = "azure"
|
||||
upload.Settings = &azureUploadSettings{
|
||||
Account: options.Account,
|
||||
AccessKey: options.AccessKey,
|
||||
Container: options.Container,
|
||||
StorageAccount: options.StorageAccount,
|
||||
StorageAccessKey: options.StorageAccessKey,
|
||||
Container: options.Container,
|
||||
}
|
||||
uploads = append(uploads, upload)
|
||||
}
|
||||
|
|
@ -140,10 +140,10 @@ func uploadRequestToTarget(u uploadRequest, imageType distro.ImageType) *target.
|
|||
case *azureUploadSettings:
|
||||
t.Name = "org.osbuild.azure"
|
||||
t.Options = &target.AzureTargetOptions{
|
||||
Filename: imageType.Filename(),
|
||||
Account: options.Account,
|
||||
AccessKey: options.AccessKey,
|
||||
Container: options.Container,
|
||||
Filename: imageType.Filename(),
|
||||
StorageAccount: options.StorageAccount,
|
||||
StorageAccessKey: options.StorageAccessKey,
|
||||
Container: options.Container,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue