3e68d47da6
Signed-off-by: David Justice <david@devigned.com>
28 lines
575 B
Go
28 lines
575 B
Go
package storage
|
|
|
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
// Licensed under the MIT License. See License.txt in the project root for license information.
|
|
|
|
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
|
|
}
|