objects

package
v0.0.0-...-71b2787 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2026 License: BSD-3-Clause Imports: 10 Imported by: 12

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrDisabled = errors.New("object storage is not enabled for this server")

Functions

func Context

func Context(ctx context.Context, client *s3.Client) context.Context

func Enabled

func Enabled(conf ini.File) bool

func ForContext

func ForContext(ctx context.Context) *s3.Client

func Middleware

func Middleware(client *s3.Client) func(next http.Handler) http.Handler

func NewClient

func NewClient(conf ini.File) (*s3.Client, error)

func URL

func URL(conf ini.File) string

Types

type S3Resolver

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

func (*S3Resolver) ResolveEndpoint

func (r *S3Resolver) ResolveEndpoint(
	ctx context.Context,
	params s3.EndpointParameters,
) (transport.Endpoint, error)

Jump to

Keyboard shortcuts

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