Skip to content

Commit 88bb38d

Browse files
authored
feat(storages): add simplefs (#17)
* feat(storages): add simplefs * fix(simplefs): don't return error if not getting the mapping key * fix(simplefs): call Start to start the goroutine * fix(go-redis): support TLS configuration * feat(deps): bump go-redis client version * feat(deps): bump to prepare the release
1 parent 0d6842b commit 88bb38d

File tree

36 files changed

+1308
-35
lines changed

36 files changed

+1308
-35
lines changed

.github/workflows/generate_release.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22

3-
release=("badger" "core" "etcd" "go-redis" "nats" "nuts" "olric" "otter" "redis")
3+
release=("badger" "core" "etcd" "go-redis" "nats" "nuts" "olric" "otter" "redis" "simplefs")
44

55
IFS= read -r -d '' tpl <<EOF
66
name: Tag submodules on release

.github/workflows/release.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,3 +210,25 @@ jobs:
210210
ref: 'refs/tags/redis/caddy/${{ github.ref_name }}',
211211
sha: context.sha
212212
})
213+
-
214+
name: Create Simplefs tag
215+
uses: actions/github-script@v7
216+
with:
217+
script: |
218+
github.rest.git.createRef({
219+
owner: context.repo.owner,
220+
repo: context.repo.repo,
221+
ref: 'refs/tags/simplefs/${{ github.ref_name }}',
222+
sha: context.sha
223+
})
224+
-
225+
name: Create Simplefs caddy tag
226+
uses: actions/github-script@v7
227+
with:
228+
script: |
229+
github.rest.git.createRef({
230+
owner: context.repo.owner,
231+
repo: context.repo.repo,
232+
ref: 'refs/tags/simplefs/caddy/${{ github.ref_name }}',
233+
sha: context.sha
234+
})

.github/workflows/static.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ jobs:
4646
- nuts
4747
- otter
4848
- redis
49+
- simplefs
4950
name: Validate quality
5051
runs-on: ubuntu-latest
5152
steps:

Makefile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
.PHONY: bump-version dependencies generate-release golangci-lint unit-tests
22

3-
MODULES_LIST=badger core etcd go-redis nats nuts olric otter redis
4-
STORAGES_LIST=badger etcd go-redis nats nuts olric otter redis
5-
TESTS_LIST=badger core etcd go-redis nats nuts otter redis
3+
MODULES_LIST=badger core etcd go-redis nats nuts olric otter redis simplefs
4+
STORAGES_LIST=badger etcd go-redis nats nuts olric otter redis simplefs
5+
TESTS_LIST=badger core etcd go-redis nats nuts otter redis simplefs
66

77
bump-version:
88
test $(from)
@@ -17,6 +17,7 @@ bump-version:
1717
sed -i '' 's/github.com\/darkweak\/storages\/olric $(from)/github.com\/darkweak\/storages\/olric $(to)/' olric/caddy/go.mod
1818
sed -i '' 's/github.com\/darkweak\/storages\/otter $(from)/github.com\/darkweak\/storages\/otter $(to)/' otter/caddy/go.mod
1919
sed -i '' 's/github.com\/darkweak\/storages\/redis $(from)/github.com\/darkweak\/storages\/redis $(to)/' redis/caddy/go.mod
20+
sed -i '' 's/github.com\/darkweak\/storages\/simplefs $(from)/github.com\/darkweak\/storages\/simplefs $(to)/' simplefs/caddy/go.mod
2021

2122
for storage in $(STORAGES_LIST) ; do \
2223
sed -i '' 's/github.com\/darkweak\/storages\/core $(from)/github.com\/darkweak\/storages\/core $(to)/' $$storage/go.mod ; \

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,4 @@ Using caddy, you can build your instance using the following template `xcaddy bu
1313
* [Olric](https://github.com/buraksezer/olric)
1414
* [Otter](https://github.com/maypok86/otter)
1515
* [Redis](https://github.com/redis/rueidis)
16+
* [Simplefs](https://github.com/darkweak/simplefs)

badger/caddy/go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ go 1.22.1
44

55
require (
66
github.com/caddyserver/caddy/v2 v2.8.4
7-
github.com/darkweak/storages/badger v0.0.10
8-
github.com/darkweak/storages/core v0.0.10
7+
github.com/darkweak/storages/badger v0.0.11
8+
github.com/darkweak/storages/core v0.0.11
99
)
1010

1111
require (

badger/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ go 1.22.1
44

55
require (
66
dario.cat/mergo v1.0.0
7-
github.com/darkweak/storages/core v0.0.10
7+
github.com/darkweak/storages/core v0.0.11
88
github.com/dgraph-io/badger/v3 v3.2103.5
99
github.com/pierrec/lz4/v4 v4.1.21
1010
go.uber.org/zap v1.27.0

etcd/caddy/go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ go 1.22.1
44

55
require (
66
github.com/caddyserver/caddy/v2 v2.8.4
7-
github.com/darkweak/storages/core v0.0.10
8-
github.com/darkweak/storages/etcd v0.0.10
7+
github.com/darkweak/storages/core v0.0.11
8+
github.com/darkweak/storages/etcd v0.0.11
99
)
1010

1111
require (

etcd/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ go 1.22.1
55
replace github.com/darkweak/storages/core => ../core
66

77
require (
8-
github.com/darkweak/storages/core v0.0.10
8+
github.com/darkweak/storages/core v0.0.11
99
github.com/pierrec/lz4/v4 v4.1.21
1010
go.etcd.io/etcd/client/v3 v3.5.14
1111
go.uber.org/zap v1.27.0

go-redis/caddy/go.mod

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ go 1.22.1
44

55
require (
66
github.com/caddyserver/caddy/v2 v2.8.4
7-
github.com/darkweak/storages/core v0.0.10
8-
github.com/darkweak/storages/go-redis v0.0.10
7+
github.com/darkweak/storages/core v0.0.11
8+
github.com/darkweak/storages/go-redis v0.0.11
99
)
1010

1111
require (
@@ -75,7 +75,7 @@ require (
7575
github.com/prometheus/procfs v0.12.0 // indirect
7676
github.com/quic-go/qpack v0.4.0 // indirect
7777
github.com/quic-go/quic-go v0.44.0 // indirect
78-
github.com/redis/go-redis/v9 v9.5.4 // indirect
78+
github.com/redis/go-redis/v9 v9.6.0 // indirect
7979
github.com/rs/xid v1.5.0 // indirect
8080
github.com/russross/blackfriday/v2 v2.1.0 // indirect
8181
github.com/shopspring/decimal v1.2.0 // indirect

0 commit comments

Comments
 (0)