azure

package
v0.0.0-...-f81bbf2 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2023 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AzureFileStorage

type AzureFileStorage struct {
	knoxite.StorageFilesystem
	// contains filtered or unexported fields
}

AzureFileStorage stores data on an Azure File Storage.

func (*AzureFileStorage) AvailableSpace

func (backend *AzureFileStorage) AvailableSpace() (uint64, error)

AvailableSpace returns the free space on this backend.

func (*AzureFileStorage) Close

func (backend *AzureFileStorage) Close() error

Close the backend.

func (*AzureFileStorage) CreatePath

func (backend *AzureFileStorage) CreatePath(p string) error

CreatePath creates a dir including all its parent dirs, when required.

func (*AzureFileStorage) DeleteFile

func (backend *AzureFileStorage) DeleteFile(p string) error

DeleteFile deletes a file from Azure file storage.

func (*AzureFileStorage) Description

func (backend *AzureFileStorage) Description() string

Description returns a user-friendly description for this backend.

func (*AzureFileStorage) Location

func (backend *AzureFileStorage) Location() string

Location returns the type and location of the repository.

func (*AzureFileStorage) NewBackend

func (*AzureFileStorage) NewBackend(u url.URL) (knoxite.Backend, error)

NewBackend returns a AzureFileStorage backend. URL needs to be the Storage account file service URL endpoint (get it from the Azure portal).

func (*AzureFileStorage) Protocols

func (backend *AzureFileStorage) Protocols() []string

Protocols returns the Protocol Schemes supported by this backend.

func (*AzureFileStorage) ReadFile

func (backend *AzureFileStorage) ReadFile(p string) ([]byte, error)

ReadFile reads a file from Azure file storage.

func (*AzureFileStorage) Stat

func (backend *AzureFileStorage) Stat(p string) (uint64, error)

Stat returns the size of a file.

func (*AzureFileStorage) WriteFile

func (backend *AzureFileStorage) WriteFile(p string, data []byte) (size uint64, err error)

WriteFile writes a file on Azure file storage.

Jump to

Keyboard shortcuts

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