Documentation ¶
Index ¶
- func Download(diskName string, directoryName string, fileName string, groupName string) (bytes io.ReadCloser, err error)
- func FindDirectory(diskName string, directoryName string) *backup.Directory
- func GetFilenames(diskName string, directoryName string, fileName string) []string
- func InitializeConfiguration()
- func UpdateDiskInfo()
- type Client
- type DiskData
- type FileGroup
- type FileLookup
- type TemporalFile
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetFilenames ¶
func InitializeConfiguration ¶
func InitializeConfiguration()
func UpdateDiskInfo ¶
func UpdateDiskInfo()
Types ¶
type Client ¶
type Client interface { GetDiskNames() ([]string, error) GetFileNames(disk string, maxDepth uint) (*fs.DirectoryInfo, error) Download(disk string, file *fs.FileInfo) (bytes io.ReadCloser, err error) Delete(disk string, file *fs.FileInfo) error }
func NewClient ¶
func NewClient(config *config.ClientConfiguration) Client
type DiskData ¶
type DiskData struct { Name string SafeName string Definition backup.Definition // contains filtered or unexported fields }
func (*DiskData) MarshalJSON ¶
type FileGroup ¶
type FileGroup []TemporalFile
func (FileGroup) Len ¶
BEGIN The following Methods for FileGroup have to be implemented for sort.Interface Len is the number of elements in the collection.
func (FileGroup) Less ¶
Less reports whether the element with index i should sort before the element with index j.
type FileLookup ¶
Click to show internal directories.
Click to hide internal directories.