Documentation ¶
Index ¶
Constants ¶
View Source
const MULTIPART_CHUNK_SIZE = 8 * 1024 * 1024
Variables ¶
View Source
var ErrProgressCompleted error = errors.New("Progress done")
Functions ¶
This section is empty.
Types ¶
type ProgressMessage ¶
func NewProgressMessage ¶
func NewProgressMessage(progress int, total int, err error) ProgressMessage
func (ProgressMessage) IsCompleted ¶
func (self ProgressMessage) IsCompleted() bool
func (ProgressMessage) IsErrored ¶
func (self ProgressMessage) IsErrored() bool
type ProgressWriter ¶
type ProgressWriter struct { ProgressChan chan ProgressMessage Progress uint64 Total uint64 }
func NewProgressWriter ¶
func NewProgressWriter(progressChan chan ProgressMessage, total uint64) *ProgressWriter
type S3Transport ¶
type S3Transport struct {
// contains filtered or unexported fields
}
func NewS3Transport ¶
func NewS3Transport(bucket *s3.Bucket) S3Transport
func (S3Transport) Download ¶
func (self S3Transport) Download(blob Blob) chan ProgressMessage
func (S3Transport) Upload ¶
func (self S3Transport) Upload(blob Blob) chan ProgressMessage
type Transport ¶
type Transport interface { Upload(blob Blob) chan ProgressMessage Download(blob Blob) chan ProgressMessage Exists(blob Blob) (bool, error) }
Click to show internal directories.
Click to hide internal directories.