summaryrefslogtreecommitdiff
path: root/internal/storage/storage.go
diff options
context:
space:
mode:
authorLibravatar kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com>2023-06-22 20:46:36 +0100
committerLibravatar GitHub <noreply@github.com>2023-06-22 20:46:36 +0100
commit9a22102fa8b1ce47571d5bba71e8f36895d21bf0 (patch)
tree3c2af6db0a3905d31243cd840d1dd50bea59dbb0 /internal/storage/storage.go
parent[docs] Clarify email requirement for OIDC (#1918) (diff)
downloadgotosocial-9a22102fa8b1ce47571d5bba71e8f36895d21bf0.tar.xz
[bugfix/chore] oauth entropy fix + media cleanup tasks rewrite (#1853)
Diffstat (limited to 'internal/storage/storage.go')
-rw-r--r--internal/storage/storage.go8
1 files changed, 5 insertions, 3 deletions
diff --git a/internal/storage/storage.go b/internal/storage/storage.go
index f131b4292..ea8184881 100644
--- a/internal/storage/storage.go
+++ b/internal/storage/storage.go
@@ -46,9 +46,11 @@ type PresignedURL struct {
Expiry time.Time // link expires at this time
}
-// ErrAlreadyExists is a ptr to underlying storage.ErrAlreadyExists,
-// to put the related errors in the same package as our storage wrapper.
-var ErrAlreadyExists = storage.ErrAlreadyExists
+var (
+ // Ptrs to underlying storage library errors.
+ ErrAlreadyExists = storage.ErrAlreadyExists
+ ErrNotFound = storage.ErrNotFound
+)
// Driver wraps a kv.KVStore to also provide S3 presigned GET URLs.
type Driver struct {