Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
Provider is a struct which gives access to SAS generation methods. Will cache last token generated until it expires. Use NewApimSasToken or NewApimSasTokenDuration to correctly instantiate this structure
func NewApimSasProvider ¶
NewApimSasProvider returns a new ApimSasToken with a default lifetime of 2 hours
func NewApimSasProviderDuration ¶
NewApimSasProviderDuration returns a new ApimSasToken with a defined lifetime
func (*Provider) GetSasToken ¶
GetSasToken generates a new Sas Token. If a token has been previously generated and it's still valid, then the previous token will be returned
Click to show internal directories.
Click to hide internal directories.