Documentation ¶
Index ¶
- type AzureFileStorage
- func (backend *AzureFileStorage) AvailableSpace() (uint64, error)
- func (backend *AzureFileStorage) Close() error
- func (backend *AzureFileStorage) CreatePath(p string) error
- func (backend *AzureFileStorage) DeleteFile(p string) error
- func (backend *AzureFileStorage) Description() string
- func (backend *AzureFileStorage) Location() string
- func (*AzureFileStorage) NewBackend(u url.URL) (knoxite.Backend, error)
- func (backend *AzureFileStorage) Protocols() []string
- func (backend *AzureFileStorage) ReadFile(p string) ([]byte, error)
- func (backend *AzureFileStorage) Stat(p string) (uint64, error)
- func (backend *AzureFileStorage) WriteFile(p string, data []byte) (size uint64, err error)
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) 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 ¶
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.
Click to show internal directories.
Click to hide internal directories.