bucket

package
v0.0.0-...-381d51a Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	PresignURLLifetime = 10 * time.Minute
)

Functions

This section is empty.

Types

type Bucket

type Bucket interface {
	CreateBucket() error
	GeneratePresignedURL(key string) (string, map[string]string, string, error) // presignedURL, multipart-form, downloadURL, error
}

func NewGCSBucket

func NewGCSBucket(bucketName, endpoint, region string, insecure bool) (Bucket, error)

func NewS3Bucket

func NewS3Bucket(bucketName, endpoint, region, accessKey, secretKey string, insecure bool) (Bucket, error)

Jump to

Keyboard shortcuts

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