Documentation ¶
Index ¶
- Variables
- func CheckDimensions(width, height, frames int, opts Options) error
- func CheckFileSize(size int, opts Options) error
- func IsSecurityOptionsAllowed() error
- func LimitFileSize(r io.Reader, opts Options) io.Reader
- func VerifySignature(signature, path string) error
- func VerifySourceNetwork(addr string) error
- func VerifySourceURL(imageURL string) error
- type Options
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidSignature = errors.New("Invalid signature") ErrInvalidSignatureEncoding = errors.New("Invalid signature encoding") )
View Source
var ErrInvalidSourceAddress = errors.New("invalid source address")
View Source
var ErrSecurityOptionsNotAllowed = ierrors.New(403, "Security processing options are not allowed", "Invalid URL")
View Source
var ErrSourceAddressNotAllowed = errors.New("source address is not allowed")
View Source
var ErrSourceFileTooBig = ierrors.New(422, "Source image file is too big", "Invalid source image")
View Source
var ErrSourceFrameResolutionTooBig = ierrors.New(422, "Source image frame resolution is too big", "Invalid source image")
View Source
var ErrSourceResolutionTooBig = ierrors.New(422, "Source image resolution is too big", "Invalid source image")
Functions ¶
func CheckDimensions ¶
func CheckFileSize ¶ added in v3.14.0
func IsSecurityOptionsAllowed ¶ added in v3.14.0
func IsSecurityOptionsAllowed() error
func VerifySignature ¶
func VerifySourceNetwork ¶ added in v3.15.0
func VerifySourceURL ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.