function

New

Create an S3-compatible upload backend.

Arguments

ArgumentTypeDescription
configConfigThe config value.

Returns

The declared result.

(*Backend, error)

How it works

New validates the endpoint, credentials, region, bucket, transport security, and spool bounds without contacting the service.

Full signature

Related types

  • Config

    Endpoint, credentials, HTTP transport, and bounded upload-spooling settings.

  • Backend

    An S3 storage and URL-signing backend.