A community based topic aggregation platform built on atproto
1package imageproxy
2
3import "errors"
4
5var (
6 // ErrInvalidPreset is returned when a preset name is not found in the preset registry.
7 ErrInvalidPreset = errors.New("invalid image preset")
8
9 // ErrInvalidDID is returned when a DID string does not match expected atproto DID format.
10 ErrInvalidDID = errors.New("invalid DID format")
11
12 // ErrInvalidCID is returned when a CID string is not a valid content identifier.
13 ErrInvalidCID = errors.New("invalid CID format")
14
15 // ErrPDSFetchFailed is returned when fetching a blob from a PDS fails for any reason.
16 ErrPDSFetchFailed = errors.New("failed to fetch blob from PDS")
17
18 // ErrPDSNotFound is returned when the requested blob does not exist on the PDS.
19 ErrPDSNotFound = errors.New("blob not found on PDS")
20
21 // ErrPDSTimeout is returned when a PDS request exceeds the configured timeout.
22 ErrPDSTimeout = errors.New("PDS request timed out")
23
24 // ErrUnsupportedFormat is returned when the source image format cannot be processed.
25 ErrUnsupportedFormat = errors.New("unsupported image format")
26
27 // ErrImageTooLarge is returned when the source image exceeds the maximum allowed size.
28 ErrImageTooLarge = errors.New("source image exceeds size limit")
29
30 // ErrProcessingFailed is returned when image processing fails for any reason.
31 ErrProcessingFailed = errors.New("image processing failed")
32
33 // ErrNilDependency is returned when a required dependency is nil.
34 ErrNilDependency = errors.New("required dependency is nil")
35)