package
0.27.0
Repository: https://github.com/tombuildsstuff/giovanni.git
Documentation: pkg.go.dev

# README

Blob Storage Account SDK for API version 2020-08-04

This package allows you to interact with the Accounts Blob Storage API

Supported Authorizers

  • Azure Active Directory

Example Usage

package main

import (
	"context"
	"fmt"
	"time"
	
	"github.com/tombuildsstuff/giovanni/storage/2020-08-04/blob/accounts"
)

func Example() error {
	accountName := "storageaccount1"
    
    // e.g. https://github.com/tombuildsstuff/giovanni/blob/76f5f686c99ecdcc3fa533a0330d0e1aacb1c327/example/azuread-auth/main.go#L54
    client, err := buildClient()
    if err != nil {
    	return fmt.Errorf("error building client: %s", err)
    }
    
    ctx := context.TODO()
    
    input := StorageServiceProperties{
        StaticWebsite: &StaticWebsite{
            Enabled:              true,
            IndexDocument:        index,
            ErrorDocument404Path: errorDocument,
        },
    }
    
    _, err = client.SetServiceProperties(ctx, accountName, input)
    if err != nil {
        return fmt.Errorf("error setting properties: %s", err)
    }
    
    time.Sleep(2 * time.Second)
    
    _, err = accountsClient.GetServiceProperties(ctx, accountName)
    if err != nil {
        return fmt.Errorf("error getting properties: %s", err)
    }
    
    return nil 
}

# Functions

No description provided by the author
No description provided by the author
No description provided by the author

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

No description provided by the author
Client is the base client for Blob Storage Blobs.
CorsRule specifies a CORS rule for the Blob service.
CorsRules sets the CORS rules.
DeleteRetentionPolicy the blob service properties for soft delete.
No description provided by the author
Logging specifies the access logging options for the Blob service.
MetricsConfig specifies the hour and/or minute metrics options for the Blob service.
No description provided by the author
StaticWebsite sets the static website support properties on the Blob service.
No description provided by the author

# Type aliases

No description provided by the author