s3presigner

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2026 License: MIT Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package s3presigner provides an S3 presigned URL generator for file uploads. It implements the livetemplate.Presigner interface for direct client-to-S3 uploads.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type S3Config

type S3Config struct {
	Bucket          string
	Region          string
	AccessKeyID     string
	SecretAccessKey string
	Endpoint        string        // Custom endpoint for MinIO/LocalStack
	Expiry          time.Duration // Default: 15 minutes
	KeyPrefix       string        // Optional prefix prepended to S3 key
}

S3Config configures AWS S3 presigned upload behavior.

type S3Presigner

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

S3Presigner generates presigned PUT URLs for S3 uploads. It implements the livetemplate.Presigner interface.

func NewS3Presigner

func NewS3Presigner(cfg S3Config) (*S3Presigner, error)

NewS3Presigner creates a new S3 presigner with the given configuration.

func (*S3Presigner) Presign

Presign generates a presigned PUT URL for uploading directly to S3.

Jump to

Keyboard shortcuts

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