Documentation ¶
Index ¶
Constants ¶
const ( ModuleName = "azqueue" ModuleVersion = "v1.0.0" )
Variables ¶
This section is empty.
Functions ¶
func ComputeHMACSHA256 ¶
func ComputeHMACSHA256(cred *SharedKeyCredential, message string) (string, error)
ComputeHMACSHA256 is a helper for computing the signed string outside of this package.
Types ¶
type AccessPolicyPermission ¶
type AccessPolicyPermission struct {
Read, Add, Update, Process bool
}
AccessPolicyPermission type simplifies creating the permissions string for a queue's access policy. Initialize an instance of this type and then call its String method to set AccessPolicy's Permission field.
func (*AccessPolicyPermission) Parse ¶
func (p *AccessPolicyPermission) Parse(s string) error
Parse initializes the AccessPolicyPermission's fields from a string.
func (*AccessPolicyPermission) String ¶
func (p *AccessPolicyPermission) String() string
String produces the access policy permission string for an Azure Storage queue. Call this method to set AccessPolicy's Permission field.
type SharedKeyCredPolicy ¶
type SharedKeyCredPolicy struct {
// contains filtered or unexported fields
}
func NewSharedKeyCredPolicy ¶
func NewSharedKeyCredPolicy(cred *SharedKeyCredential) *SharedKeyCredPolicy
type SharedKeyCredential ¶
type SharedKeyCredential struct {
// contains filtered or unexported fields
}
SharedKeyCredential contains an account's name and its primary or secondary key.
func NewSharedKeyCredential ¶
func NewSharedKeyCredential(accountName string, accountKey string) (*SharedKeyCredential, error)
NewSharedKeyCredential creates an immutable SharedKeyCredential containing the storage account's name and either its primary or secondary key.
func (*SharedKeyCredential) AccountName ¶
func (c *SharedKeyCredential) AccountName() string
AccountName returns the Storage account's name.
func (*SharedKeyCredential) SetAccountKey ¶
func (c *SharedKeyCredential) SetAccountKey(accountKey string) error
SetAccountKey replaces the existing account key with the specified account key.