Skip to content

Commit f678869

Browse files
authored
cephfs refactoring + make home layout configurable (#4911)
1 parent c71d5a1 commit f678869

File tree

21 files changed

+358
-1663
lines changed

21 files changed

+358
-1663
lines changed
+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Enhancement: cephfs refactoring + make home layout configurable
2+
3+
https://github.com/cs3org/reva/pull/4911

changelog/unreleased/enhance-ceph.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Enhancement: Refactor Ceph code
2+
3+
https://github.com/cs3org/reva/pull/4824

go.mod

+1
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ require (
7474
github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2 // indirect
7575
github.com/beorn7/perks v1.0.1 // indirect
7676
github.com/bmizerany/pat v0.0.0-20210406213842-e4b6760bdd6f // indirect
77+
github.com/cern-eos/go-eosgrpc v0.0.0-20240812132646-f105d2304f38 // indirect
7778
github.com/cespare/xxhash v1.1.0 // indirect
7879
github.com/cespare/xxhash/v2 v2.3.0 // indirect
7980
github.com/davecgh/go-spew v1.1.1 // indirect

internal/grpc/services/gateway/gateway.go

+6
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ type config struct {
7171
EtagCacheTTL int `mapstructure:"etag_cache_ttl"`
7272
AllowedUserAgents map[string][]string `mapstructure:"allowed_user_agents"` // map[path][]user-agent
7373
CreateHomeCacheTTL int `mapstructure:"create_home_cache_ttl"`
74+
HomeLayout string `mapstructure:"home_layout"`
7475
}
7576

7677
// sets defaults.
@@ -111,6 +112,11 @@ func (c *config) ApplyDefaults() {
111112
if c.TransferExpires == 0 {
112113
c.TransferExpires = 100 * 60 // seconds
113114
}
115+
116+
// default to /home
117+
if c.HomeLayout == "" {
118+
c.HomeLayout = "/home"
119+
}
114120
}
115121

116122
type svc struct {

0 commit comments

Comments
 (0)