multipart

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2022 License: MIT Imports: 13 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BeginUpload added in v1.9.0

func BeginUpload(ctx context.Context, project *uplink.Project, bucket, key string, options *UploadOptions) (info uplink.UploadInfo, err error)

BeginUpload begins a new multipart upload to bucket and key.

Use project.UploadPart to upload individual parts.

Use project.CommitUpload to finish the upload.

Use project.AbortUpload to cancel the upload at any time.

UploadObject is a convenient way to upload single part objects.

Types

type UploadOptions

type UploadOptions struct {
	// When Expires is zero, there is no expiration.
	Expires time.Time

	CustomMetadata uplink.CustomMetadata
}

UploadOptions contains additional options for uploading.

Jump to

Keyboard shortcuts

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