Documentation ¶
Index ¶
- type LocalClient
- func (c *LocalClient) Delete(disk string, file *fs.FileInfo) error
- func (c *LocalClient) Download(disk string, file *fs.FileInfo) (bytes io.ReadCloser, err error)
- func (c *LocalClient) GetDiskNames() ([]string, error)
- func (c *LocalClient) GetFileNames(diskName string, maxDepth uint) (*fs.DirectoryInfo, error)
- type S3Client
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LocalClient ¶
func (*LocalClient) Download ¶
func (c *LocalClient) Download(disk string, file *fs.FileInfo) (bytes io.ReadCloser, err error)
func (*LocalClient) GetDiskNames ¶
func (c *LocalClient) GetDiskNames() ([]string, error)
func (*LocalClient) GetFileNames ¶
func (c *LocalClient) GetFileNames(diskName string, maxDepth uint) (*fs.DirectoryInfo, error)
type S3Client ¶
type S3Client struct { Name string AccessKey string SecretKey string Token string Region string Endpoint string ForcePathStyle bool EnvName string AutoDiscoverDisks bool Disks *config.DisksConfiguration // contains filtered or unexported fields }
func (*S3Client) GetDiskNames ¶
func (*S3Client) GetFileNames ¶
GetFileNames TODO: do something smart with unused parameter maxDepth
Click to show internal directories.
Click to hide internal directories.