Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultDownloadPartSize = units.MiB * 5
DefaultDownloadPartSize is the default part size for downloading files from the local filesystem. This is the same as the default part size for S3.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LocalDownloader ¶
type LocalDownloader struct {
// contains filtered or unexported fields
}
LocalDownloader implements downloading a checkpoint from the local filesystem and sends it to the client in an archive file.
func NewLocalDownloader ¶
func NewLocalDownloader(aw archive.ArchiveWriter, prefix string) (*LocalDownloader, error)
NewLocalDownloader returns a new LocalDownloader.
func (*LocalDownloader) Close ¶
func (d *LocalDownloader) Close() error
Close closes the underlying ArchiveWriter.
Click to show internal directories.
Click to hide internal directories.