function

New

func New(config Config) (*Backend, error)

Create an S3-compatible upload backend.

Source adapters/storage/s3/s3.go:62

@param config
The config value.
@returns
The declared result.

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

Related types

  • Config

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

  • Backend

    An S3 storage and URL-signing backend.