Documentation ¶
Index ¶
- type FS
- func (fs *FS) CopyPart(srcFS common.OriginFS, p common.Part) error
- func (fs *FS) DeletePart(p common.Part) error
- func (fs *FS) DownloadPart(p common.Part, w io.Writer) error
- func (fs *FS) Init() error
- func (fs *FS) ListParts() ([]common.Part, error)
- func (fs *FS) RemoveEmptyDirs() error
- func (fs *FS) String() string
- func (fs *FS) UploadPart(p common.Part, r io.Reader) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FS ¶
type FS struct { // Path to S3 credentials file. CredsFilePath string // Pat to S3 configs file. ConfigFilePath string // GCS bucket to use. Bucket string // Directory in the bucket to write to. Dir string // contains filtered or unexported fields }
FS represents filesystem for backups in S3.
Init must be called before calling other FS methods.
func (*FS) DeletePart ¶
DeletePart deletes part p from fs.
func (*FS) DownloadPart ¶
DownloadPart downloads part p from fs to w.
func (*FS) RemoveEmptyDirs ¶
RemoveEmptyDirs recursively removes empty dirs in fs.
Click to show internal directories.
Click to hide internal directories.