s3

package module
v0.1.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Driver

func Driver(items ...Option) storage.Driver

Driver creates an S3-compatible storage driver.

func Provider added in v0.1.3

func Provider(items ...Option) runaprovider.Provider

Provider registers an S3-compatible storage driver.

Types

type Option

type Option func(*options)

Option configures an S3-compatible storage driver.

func Bucket

func Bucket(value string) Option

Bucket sets the S3 bucket.

func Client

func Client(client *s3.Client) Option

Client uses an existing AWS S3 client.

func Config added in v0.1.3

func Config(path string) Option

Config sets the feature-specific config path. Defaults to storage.s3.

func Credentials

func Credentials(accessKey string, secretKey string, sessionToken ...string) Option

Credentials sets static credentials.

func Domain

func Domain(value string) Option

Domain sets public URL domain.

func Endpoint

func Endpoint(value string) Option

Endpoint sets an S3-compatible endpoint for MinIO/R2/OSS.

func Name

func Name(value string) Option

Name sets driver name metadata.

func PathStyle

func PathStyle(value bool) Option

PathStyle forces path-style addressing for MinIO-like services.

func Presigner

func Presigner(client *s3.PresignClient) Option

Presigner uses an existing S3 presign client.

func Region

func Region(value string) Option

Region sets the signing region.

func URLPrefix

func URLPrefix(value string) Option

URLPrefix sets public URL prefix.

func Uploader added in v0.1.3

func Uploader(uploader *manager.Uploader) Option

Uploader uses an existing AWS S3 multipart uploader.

func Use added in v0.1.3

func Use(name string) Option

Use selects the shared s3 config name used by Provider.

Jump to

Keyboard shortcuts

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