azblob

package
v0.0.0-...-2b48260 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2024 License: Apache-2.0 Imports: 17 Imported by: 4

Documentation

Index

Constants

View Source
const (
	// KIND defines the kind of backupstore driver
	KIND = "azblob"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BackupStoreDriver

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

BackupStoreDriver defines the variables and method that backupstore will use.

func (*BackupStoreDriver) Download

func (s *BackupStoreDriver) Download(src, dst string) error

Download gets a item data from the backup target

func (*BackupStoreDriver) FileExists

func (s *BackupStoreDriver) FileExists(filePath string) bool

FileExists checks if file exists on the backup target

func (*BackupStoreDriver) FileSize

func (s *BackupStoreDriver) FileSize(filePath string) int64

FileSize return content length of the filePath on the backup target

func (*BackupStoreDriver) FileTime

func (s *BackupStoreDriver) FileTime(filePath string) time.Time

FileTime returns file last modified time on the backup target

func (*BackupStoreDriver) GetURL

func (s *BackupStoreDriver) GetURL() string

GetURL returns URL of the backup target

func (*BackupStoreDriver) Kind

func (s *BackupStoreDriver) Kind() string

Kind returns the driver type

func (*BackupStoreDriver) List

func (s *BackupStoreDriver) List(listPath string) ([]string, error)

List return items that on the backup target including prefixes

func (*BackupStoreDriver) Read

func (s *BackupStoreDriver) Read(src string) (io.ReadCloser, error)

func (*BackupStoreDriver) Remove

func (s *BackupStoreDriver) Remove(path string) error

Remove deletes files on the backup target

func (*BackupStoreDriver) Upload

func (s *BackupStoreDriver) Upload(src, dst string) error

Upload creates a item on the backup target by opening source file

func (*BackupStoreDriver) Write

func (s *BackupStoreDriver) Write(dst string, rs io.ReadSeeker) error

Write creates a item on the backup target from io stream

Jump to

Keyboard shortcuts

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