s3

package
v0.0.0-...-5f827c9 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type S3Provider

type S3Provider struct {
	KeyId                      string
	KeySecret                  string
	Region                     string
	Bucket                     string
	Timeout                    time.Duration
	PresignedUrlExpirationMins time.Duration
	// contains filtered or unexported fields
}

func (S3Provider) CheckFileExists

func (s S3Provider) CheckFileExists(ctx context.Context, bucket, key string) bool

func (S3Provider) GeneratePresignedUploadURL

func (s S3Provider) GeneratePresignedUploadURL(ctx context.Context, bucket, key string, expireMinutes time.Duration) (string, string, error)

Jump to

Keyboard shortcuts

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