Documentation
¶
Overview ¶
Package signedurl provides interfaces and implementations for signing and verifying URLs.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidKey = NewSignedURLError(nil, "invalid key provided")
Functions ¶
This section is empty.
Types ¶
type JWTOption ¶
type JWTOption func(o *JWTOptions)
JWTOption defines a single option function.
func WithQueryParam ¶
func WithSecret ¶
type JWTOptions ¶
type JWTOptions struct {
// contains filtered or unexported fields
}
JWTOptions defines the available options for this package.
type JWTSignedURL ¶
type JWTSignedURL struct {
JWTOptions
}
JWTSignedURL implements the Signer and Verifier interfaces using JWT for signing URLs.
func NewJWTSignedURL ¶
func NewJWTSignedURL(opts ...JWTOption) (*JWTSignedURL, error)
type SignatureVerificationError ¶
type SignatureVerificationError struct {
SignedURLError
}
func NewSignatureVerificationError ¶
func NewSignatureVerificationError(innerErr error) SignatureVerificationError
func (SignatureVerificationError) Is ¶
func (e SignatureVerificationError) Is(tgt error) bool
type SignedURLError ¶
type SignedURLError struct {
// contains filtered or unexported fields
}
func NewSignedURLError ¶
func NewSignedURLError(innerErr error, message string) SignedURLError
NewSignedURLError creates a new SignedURLError with the provided inner error and message.
func (SignedURLError) Error ¶
func (e SignedURLError) Error() string
Error implements the error interface for errorConst.
func (SignedURLError) Unwrap ¶
func (e SignedURLError) Unwrap() error
Click to show internal directories.
Click to hide internal directories.