Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 04-Jan-2021 | - | ||||
README.md | H A D | 04-Jan-2021 | 1 KiB | 43 | 32 | |
client.go | H A D | 04-Jan-2021 | 602 | 26 | 18 | |
create.go | H A D | 04-Jan-2021 | 3.5 KiB | 102 | 80 | |
delete.go | H A D | 04-Jan-2021 | 3.2 KiB | 96 | 74 | |
get.go | H A D | 04-Jan-2021 | 3.8 KiB | 113 | 84 | |
lifecycle_test.go | H A D | 04-Jan-2021 | 3.7 KiB | 108 | 90 | |
metadata_get.go | H A D | 04-Jan-2021 | 3.6 KiB | 107 | 83 | |
metadata_set.go | H A D | 04-Jan-2021 | 3.7 KiB | 103 | 81 | |
resource_id.go | H A D | 04-Jan-2021 | 1.6 KiB | 57 | 42 | |
resource_id_test.go | H A D | 04-Jan-2021 | 2.2 KiB | 81 | 75 | |
version.go | H A D | 04-Jan-2021 | 313 | 15 | 9 |
README.md
1## File Storage Directories SDK for API version 2017-07-29 2 3This package allows you to interact with the Directories File Storage API 4 5### Supported Authorizers 6 7* SharedKeyLite (Blob, File & Queue) 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/file/directories" 21) 22 23func Example() error { 24 accountName := "storageaccount1" 25 storageAccountKey := "ABC123...." 26 shareName := "myshare" 27 directoryName := "myfiles" 28 29 storageAuth := autorest.NewSharedKeyLiteAuthorizer(accountName, storageAccountKey) 30 directoriesClient := directories.New() 31 directoriesClient.Client.Authorizer = storageAuth 32 33 ctx := context.TODO() 34 metadata := map[string]string{ 35 "hello": "world", 36 } 37 if _, err := directoriesClient.Create(ctx, accountName, shareName, directoryName, metadata); err != nil { 38 return fmt.Errorf("Error creating Directory: %s", err) 39 } 40 41 return nil 42} 43```