Documentation ¶
Index ¶
- Constants
- type BackupStoreDriver
- func (s *BackupStoreDriver) Download(src, dst string) error
- func (s *BackupStoreDriver) FileExists(filePath string) bool
- func (s *BackupStoreDriver) FileSize(filePath string) int64
- func (s *BackupStoreDriver) FileTime(filePath string) time.Time
- func (s *BackupStoreDriver) GetURL() string
- func (s *BackupStoreDriver) Kind() string
- func (s *BackupStoreDriver) List(listPath string) ([]string, error)
- func (s *BackupStoreDriver) Read(src string) (io.ReadCloser, error)
- func (s *BackupStoreDriver) Remove(path string) error
- func (s *BackupStoreDriver) Upload(src, dst string) error
- func (s *BackupStoreDriver) Write(dst string, rs io.ReadSeeker) error
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
Click to show internal directories.
Click to hide internal directories.