mirror of
https://github.com/octoleo/restic.git
synced 2024-11-30 08:44:02 +00:00
29 lines
1.0 KiB
Go
29 lines
1.0 KiB
Go
package storage
|
|
|
|
// QueueServiceClient contains operations for Microsoft Azure Queue Storage
|
|
// Service.
|
|
type QueueServiceClient struct {
|
|
client Client
|
|
auth authentication
|
|
}
|
|
|
|
// GetServiceProperties gets the properties of your storage account's queue service.
|
|
// See: https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/get-queue-service-properties
|
|
func (q *QueueServiceClient) GetServiceProperties() (*ServiceProperties, error) {
|
|
return q.client.getServiceProperties(queueServiceName, q.auth)
|
|
}
|
|
|
|
// SetServiceProperties sets the properties of your storage account's queue service.
|
|
// See: https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/set-queue-service-properties
|
|
func (q *QueueServiceClient) SetServiceProperties(props ServiceProperties) error {
|
|
return q.client.setServiceProperties(props, queueServiceName, q.auth)
|
|
}
|
|
|
|
// GetQueueReference returns a Container object for the specified queue name.
|
|
func (q *QueueServiceClient) GetQueueReference(name string) *Queue {
|
|
return &Queue{
|
|
qsc: q,
|
|
Name: name,
|
|
}
|
|
}
|