upload

package
v4.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 1, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Uploader

type Uploader struct {
	// contains filtered or unexported fields
}

Uploader struct provides a struct to upload

func Init

func Init(bucket *service.Bucket, partSize int) *Uploader

Init creates a uploader struct

func (*Uploader) Upload

func (u *Uploader) Upload(fd io.Reader, objectKey string) error

Upload uploads multi parts of large object

func (*Uploader) UploadWithContext added in v4.1.0

func (u *Uploader) UploadWithContext(ctx context.Context, fd io.Reader, objectKey string) error

UploadWithContext add support for context

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL