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

..04-Jan-2021-

README.mdH A D04-Jan-20211 KiB4332

client.goH A D04-Jan-2021602 2618

create.goH A D04-Jan-20213.5 KiB10280

delete.goH A D04-Jan-20213.2 KiB9674

get.goH A D04-Jan-20213.8 KiB11384

lifecycle_test.goH A D04-Jan-20213.7 KiB10890

metadata_get.goH A D04-Jan-20213.6 KiB10783

metadata_set.goH A D04-Jan-20213.7 KiB10381

resource_id.goH A D04-Jan-20211.6 KiB5742

resource_id_test.goH A D04-Jan-20212.2 KiB8175

version.goH A D04-Jan-2021313 159

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