providers

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: May 30, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type S3Config

type S3Config struct {
	Region          string
	Bucket          string
	AccessKeyID     string
	SecretAccessKey string
	Endpoint        string // optional; leave empty for real AWS S3
}

S3Config carries the per-request S3 credentials and target. Your Majesty should populate this from whatever source is appropriate (database, JWT claims, request headers, etc.)

type S3Provider

type S3Provider struct {
	// contains filtered or unexported fields
}

func NewS3Provider

func NewS3Provider(cfg S3Config) (*S3Provider, error)

func (*S3Provider) CreateFolder

func (p *S3Provider) CreateFolder(ctx context.Context, parent *string, name string, metadata map[string]string) (*string, error)

func (*S3Provider) ToTusHandler

func (p *S3Provider) ToTusHandler(basePath string, uploadPrefix string) (*handler.Handler, error)

Jump to

Keyboard shortcuts

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