s3

package module
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2026 License: MIT Imports: 9 Imported by: 0

README

s3

s3 unils

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config interface {
	GetPresignedDownloadURL(objectKey string) (string, error)
	GetPresignedDownloadURLX(objectKey string) string

	GetPresignedUploadURL(objectKey string, contentType *string) (string, error)
	GetPresignedUploadURLX(objectKey string, contentType *string) string
}

func New

func New(settings Settings) Config

type LinkSettings

type LinkSettings struct {
	LiveTimeDuration time.Duration
	MaxSizeByte      int
}

type Settings

type Settings struct {
	Url          string
	Region       string
	Bucket       string
	AccessKey    string
	SecretKey    string
	UsePathStyle bool

	Upload   *LinkSettings
	Download *LinkSettings
}

Jump to

Keyboard shortcuts

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