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

..04-Jan-2021-

README.mdH A D04-Jan-2021872 3928

acl_get.goH A D04-Jan-20212.9 KiB9471

acl_set.goH A D04-Jan-20213 KiB9975

client.goH A D04-Jan-2021598 2618

create.goH A D04-Jan-20212.9 KiB9168

delete.goH A D04-Jan-20212.7 KiB8057

exists.goH A D04-Jan-20212.7 KiB8158

lifecycle_test.goH A D04-Jan-20213.6 KiB11392

models.goH A D04-Jan-2021724 3022

query.goH A D04-Jan-20212.8 KiB8863

resource_id.goH A D04-Jan-20211.6 KiB5538

resource_id_test.goH A D04-Jan-20212 KiB7872

version.goH A D04-Jan-2021308 159

README.md

1## Table Storage Tables SDK for API version 2017-07-29
2
3This package allows you to interact with the Tables Table Storage API
4
5### Supported Authorizers
6
7* SharedKeyLite (Table)
8
9### Example Usage
10
11```go
12package main
13
14import (
15	"context"
16	"fmt"
17	"time"
18
19	"github.com/Azure/go-autorest/autorest"
20	"github.com/tombuildsstuff/giovanni/storage/2017-07-29/table/tables"
21)
22
23func Example() error {
24	accountName := "storageaccount1"
25    storageAccountKey := "ABC123...."
26    tableName := "mytable"
27
28    storageAuth := autorest.NewSharedKeyLiteTableAuthorizer(accountName, storageAccountKey)
29    tablesClient := tables.New()
30    tablesClient.Client.Authorizer = storageAuth
31
32    ctx := context.TODO()
33    if _, err := tablesClient.Insert(ctx, accountName, tableName); err != nil {
34        return fmt.Errorf("Error creating Table: %s", err)
35    }
36
37    return nil
38}
39```