Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 04-Jan-2021 | - | ||||
README.md | H A D | 04-Jan-2021 | 1 KiB | 43 | 32 | |
api.go | H A D | 04-Jan-2021 | 878 | 18 | 14 | |
client.go | H A D | 04-Jan-2021 | 598 | 26 | 18 | |
create.go | H A D | 04-Jan-2021 | 3.2 KiB | 93 | 72 | |
delete.go | H A D | 04-Jan-2021 | 2.8 KiB | 86 | 66 | |
lifecycle_test.go | H A D | 04-Jan-2021 | 6.1 KiB | 247 | 213 | |
metadata_get.go | H A D | 04-Jan-2021 | 3.2 KiB | 102 | 78 | |
metadata_set.go | H A D | 04-Jan-2021 | 3.4 KiB | 98 | 76 | |
models.go | H A D | 04-Jan-2021 | 1.2 KiB | 43 | 34 | |
properties_get.go | H A D | 04-Jan-2021 | 2.9 KiB | 87 | 66 | |
properties_set.go | H A D | 04-Jan-2021 | 2.9 KiB | 82 | 62 | |
resource_id.go | H A D | 04-Jan-2021 | 1.2 KiB | 47 | 33 | |
resource_id_test.go | H A D | 04-Jan-2021 | 1.9 KiB | 79 | 72 | |
version.go | H A D | 04-Jan-2021 | 308 | 15 | 9 |
README.md
1## Queue Storage Queues SDK for API version 2019-12-12 2 3This package allows you to interact with the Queues Queue Storage API 4 5### Supported Authorizers 6 7* Azure Active Directory (for the Resource Endpoint `https://storage.azure.com`) 8* SharedKeyLite (Blob, File & Queue) 9 10### Example Usage 11 12```go 13package main 14 15import ( 16 "context" 17 "fmt" 18 "time" 19 20 "github.com/Azure/go-autorest/autorest" 21 "github.com/tombuildsstuff/giovanni/storage/2019-12-12/queue/queues" 22) 23 24func Example() error { 25 accountName := "storageaccount1" 26 storageAccountKey := "ABC123...." 27 queueName := "myqueue" 28 29 storageAuth := autorest.NewSharedKeyLiteAuthorizer(accountName, storageAccountKey) 30 queuesClient := queues.New() 31 queuesClient.Client.Authorizer = storageAuth 32 33 ctx := context.TODO() 34 metadata := map[string]string{ 35 "hello": "world", 36 } 37 if _, err := queuesClient.Create(ctx, accountName, queueName, metadata); err != nil { 38 return fmt.Errorf("Error creating Queue: %s", err) 39 } 40 41 return nil 42} 43```