Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithMaxChunkGroup ¶
func WithMaxChunkGroup(maxChunkGroup int) *maxChunkGroupOption
WithMaxChunkGroup specifies how many 256KiB chunks can be uploaded at a time. Raising this value may increase RAM usage, and cost more if we have to retry blocks.
The default value is 64 (16MiB groups)
Types ¶
type ProgressListenerFunc ¶
type ProgressListenerFunc func(count int64)
ProgressListenerFunc is called with a total number of bytes processed.
type ResumableUpload ¶
type ResumableUpload interface {
io.WriteCloser
SetConsumer(consumer *state.Consumer)
SetProgressListener(progressListener ProgressListenerFunc)
}
ResumableUpload represents a resumable upload session to google cloud storage.
func NewResumableUpload ¶
func NewResumableUpload(uploadURL string, opts ...Option) ResumableUpload
NewResumableUpload starts a new resumable upload session targeting the specified Google Cloud Storage uploadURL.
Click to show internal directories.
Click to hide internal directories.