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 Retention metaclient.Retention }
UploadOptions contains additional options for uploading.
Click to show internal directories.
Click to hide internal directories.