azure

package
v1.4.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 11, 2021 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AZURE_FILESHARE_USAGE_BYTES = "Share-Usage-Bytes"

	AZURE_ETAG = "Etag"

	AZURE_LAST_MODIFIED = "Last-Modified"

	AZURE_URL = "URL"

	AZURE_X_MS_SHARE_QUOTA = "X-Ms-Share-Quota"
)

Variables

View Source
var MaxTimeForSingleHttpRequest = 50 * time.Minute

TryTimeout indicates the maximum time allowed for any single try of an HTTP request.

Functions

func ConvertHeaderToStruct

func ConvertHeaderToStruct(msg map[string][]string) (*pstruct.Struct, error)

func ConvertStructToAzureMetadata

func ConvertStructToAzureMetadata(pbs *pstruct.Struct) (azfile.Metadata, error)

func ConvertStructToStructMap

func ConvertStructToStructMap(msg map[string]string) (*pstruct.Struct, error)

Types

type AzureAdapter

type AzureAdapter struct {
	// contains filtered or unexported fields
}

func (*AzureAdapter) Close

func (ad *AzureAdapter) Close() error

func (*AzureAdapter) CreateFileShare

func (*AzureAdapter) DeleteFileShare

func (*AzureAdapter) GetFileShare

func (*AzureAdapter) GetFileSharePermissions

func (ad *AzureAdapter) GetFileSharePermissions(ctx context.Context, fileshareName string) (*azfile.SignedIdentifiers, error)

func (*AzureAdapter) GetFileShareProperties

func (ad *AzureAdapter) GetFileShareProperties(ctx context.Context, fileshareName string) (*azfile.ShareGetPropertiesResponse, error)

func (*AzureAdapter) GetFileShareStatistics

func (ad *AzureAdapter) GetFileShareStatistics(ctx context.Context, fileshareName string) (*azfile.ShareStats, error)

func (*AzureAdapter) ListFileShare

func (*AzureAdapter) ParseFileShare

func (ad *AzureAdapter) ParseFileShare(fs storage.Share) (*file.FileShare, error)

func (*AzureAdapter) UpdatefileShare

func (*AzureAdapter) UpdatefileShareMetadata added in v1.0.1

func (ad *AzureAdapter) UpdatefileShareMetadata(ctx context.Context, fs *file.UpdateFileShareRequest,
	shareURL azfile.ShareURL) (map[string][]string, error)

func (*AzureAdapter) UpdatefileShareQuota added in v1.0.1

func (ad *AzureAdapter) UpdatefileShareQuota(ctx context.Context, fs *file.UpdateFileShareRequest,
	fsMeta map[string][]string, shareURL azfile.ShareURL) (*file.FileShare, error)

type AzureFSDriverFactory

type AzureFSDriverFactory struct {
}

func (*AzureFSDriverFactory) CreateFileStorageDriver

func (factory *AzureFSDriverFactory) CreateFileStorageDriver(backend *backendpb.BackendDetail) (driver.FileStorageDriver, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL