1 package storage 2 3 // Copyright (c) Microsoft Corporation. All rights reserved. 4 // Licensed under the MIT License. See License.txt in the project root for license information. 5 6 import ( 7 "net/url" 8 "time" 9 ) 10 11 // SASOptions includes options used by SAS URIs for different 12 // services and resources. 13 type SASOptions struct { 14 APIVersion string 15 Start time.Time 16 Expiry time.Time 17 IP string 18 UseHTTPS bool 19 Identifier string 20 } 21 22 func addQueryParameter(query url.Values, key, value string) url.Values { 23 if value != "" { 24 query.Add(key, value) 25 } 26 return query 27 } 28