Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 04-Jan-2021 | - | ||||
README.md | H A D | 04-Jan-2021 | 872 | 39 | 28 | |
acl_get.go | H A D | 04-Jan-2021 | 2.9 KiB | 94 | 71 | |
acl_set.go | H A D | 04-Jan-2021 | 3 KiB | 99 | 75 | |
client.go | H A D | 04-Jan-2021 | 598 | 26 | 18 | |
create.go | H A D | 04-Jan-2021 | 2.9 KiB | 91 | 68 | |
delete.go | H A D | 04-Jan-2021 | 2.7 KiB | 80 | 57 | |
exists.go | H A D | 04-Jan-2021 | 2.7 KiB | 81 | 58 | |
lifecycle_test.go | H A D | 04-Jan-2021 | 3.6 KiB | 113 | 92 | |
models.go | H A D | 04-Jan-2021 | 724 | 30 | 22 | |
query.go | H A D | 04-Jan-2021 | 2.8 KiB | 88 | 63 | |
resource_id.go | H A D | 04-Jan-2021 | 1.6 KiB | 55 | 38 | |
resource_id_test.go | H A D | 04-Jan-2021 | 2 KiB | 78 | 72 | |
version.go | H A D | 04-Jan-2021 | 308 | 15 | 9 |
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```