Categorygithub.com/beyondstorage/go-service-azblob/v2
modulepackage
2.3.0
Repository: https://github.com/beyondstorage/go-service-azblob.git
Documentation: pkg.go.dev

# README

Build Status Integration Tests License

go-services-azblob

Azure Blob Storage service support for go-storage.

Install

go get github.com/beyondstorage/go-service-azblob/v2

Usage

import (
	"log"

	_ "github.com/beyondstorage/go-service-azblob/v2"
	"github.com/beyondstorage/go-storage/v4/services"
)

func main() {
	store, err := services.NewStoragerFromString("azblob://container_name/path/to/workdir?credential=hmac:<account_name>:<account_key>&endpoint=https:<account_name>.<endpoint_suffix>")
	if err != nil {
		log.Fatal(err)
	}
	
	// Write data from io.Reader into hello.txt
	n, err := store.Write("hello.txt", r, length)
}

# Packages

No description provided by the author

# Functions

GetObjectSystemMetadata will get ObjectSystemMetadata from Object.
GetStorageSystemMetadata will get SystemMetadata from StorageMeta.
New will create both Servicer and Storager.
NewServicer will create Servicer only.
NewStorager will create Storager only.
WithAccessTier will apply access_tier value to Options.
WithDefaultServicePairs will apply default_service_pairs value to Options.
WithDefaultStoragePairs will apply default_storage_pairs value to Options.
WithEnableVirtualDir will apply enable_virtual_dir value to Options.
WithEncryptionKey will apply encryption_key value to Options.
WithEncryptionScope will apply encryption_scope value to Options.
WithServiceFeatures will apply service_features value to Options.
WithStorageFeatures will apply storage_features value to Options.

# Constants

AppendBlobIfMaxSizeLessThanOrEqual ensures that the AppendBlock operation succeeds only if the append blob's size is less than or equal to a value.
AppendNumberMaximum is the max append numbers in append operation.
AppendSizeMaximum is the max append size in per append operation.
All available storage classes are listed here.
All available storage classes are listed here.
All available storage classes are listed here.
All available storage classes are listed here.
Type is the type for azblob.
WriteSizeMaximum is the maximum size for write operation.

# Variables

ErrEncryptionKeyInvalid will be returned while encryption key is invalid.

# Structs

DefaultServicePairs is default pairs for specific action.
DefaultStoragePairs is default pairs for specific action.
ObjectSystemMetadata stores system metadata for object.
Service is the azblob config.
No description provided by the author
Storage is the azblob service client.
No description provided by the author
StorageSystemMetadata stores system metadata for storage meta.

# Type aliases

StorageClass is the storage class used in storage lib.