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