method

Backend.SignedURL

func (backend *Backend) SignedURL( ctx context.Context, key string, ttl time.Duration, ) (string, error)

Create a SigV4 GET URL for a private object.

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

@param ctx
The ctx value.
@param key
The key value.
@param ttl
The ttl value.
@returns
The declared result.

ttl must be between one second and seven days. Object keys are validated before signing.

Related types

  • Backend

    An S3 storage and URL-signing backend.