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