2018-05-21 19:05:11 +00:00
|
|
|
package storage
|
|
|
|
|
2020-04-01 15:47:41 +00:00
|
|
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
|
|
// Licensed under the MIT License. See License.txt in the project root for license information.
|
2018-05-21 19:05:11 +00:00
|
|
|
|
|
|
|
import (
|
|
|
|
"net/url"
|
|
|
|
"time"
|
|
|
|
)
|
|
|
|
|
|
|
|
// SASOptions includes options used by SAS URIs for different
|
|
|
|
// services and resources.
|
|
|
|
type SASOptions struct {
|
|
|
|
APIVersion string
|
|
|
|
Start time.Time
|
|
|
|
Expiry time.Time
|
|
|
|
IP string
|
|
|
|
UseHTTPS bool
|
|
|
|
Identifier string
|
|
|
|
}
|
|
|
|
|
|
|
|
func addQueryParameter(query url.Values, key, value string) url.Values {
|
|
|
|
if value != "" {
|
|
|
|
query.Add(key, value)
|
|
|
|
}
|
|
|
|
return query
|
|
|
|
}
|