• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..04-Jan-2021-

README.mdH A D04-Jan-20211 KiB4332

api.goH A D04-Jan-2021878 1814

client.goH A D04-Jan-2021598 2618

create.goH A D04-Jan-20213.2 KiB9372

delete.goH A D04-Jan-20212.8 KiB8666

lifecycle_test.goH A D04-Jan-20216.1 KiB247213

metadata_get.goH A D04-Jan-20213.2 KiB10278

metadata_set.goH A D04-Jan-20213.4 KiB9876

models.goH A D04-Jan-20211.2 KiB4334

properties_get.goH A D04-Jan-20212.9 KiB8766

properties_set.goH A D04-Jan-20212.9 KiB8262

resource_id.goH A D04-Jan-20211.2 KiB4733

resource_id_test.goH A D04-Jan-20211.9 KiB7972

version.goH A D04-Jan-2021308 159

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```