Versions in this module Expand all Collapse all v2 v2.3.0 Aug 28, 2026 Changes in this version + const DefaultPresignDurationMinutes + const SecretDivisor + var ErrCallerRequired = errors.New("caller required in context") + var ErrEntClientRequired = errors.New("storing secrets requires ent client") + var ErrInvalidSecretLength = errors.New("secret must be 128 bytes when provided") + var ErrMissingFileID = errors.New("missing file id") + var ErrMissingObjectURI = errors.New("file metadata missing object URI") + var ErrTokenManagerRequired = errors.New("proxy presign requires token manager") + func GenerateDownloadURL(ctx context.Context, file *storagetypes.File, duration time.Duration, ...) (string, error) + func GenerateDownloadURLWithSecret(file *storagetypes.File, secret []byte, duration time.Duration, ...) (string, error) + func ShouldBypassPresignInterceptor(ctx context.Context) bool + func WithPresignInterceptorBypass(ctx context.Context) context.Context Other modules containing this package github.com/theopenlane/core