Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'internal/vfs/vfs.go')
-rw-r--r--internal/vfs/vfs.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/internal/vfs/vfs.go b/internal/vfs/vfs.go
index 7bd51db2..2304f903 100644
--- a/internal/vfs/vfs.go
+++ b/internal/vfs/vfs.go
@@ -6,6 +6,7 @@ import (
log "github.com/sirupsen/logrus"
+ "gitlab.com/gitlab-org/gitlab-pages/internal/config"
"gitlab.com/gitlab-org/gitlab-pages/metrics"
)
@@ -13,6 +14,7 @@ import (
type VFS interface {
Root(ctx context.Context, path string) (Root, error)
Name() string
+ Reconfigure(config *config.Config) error
}
func Instrumented(fs VFS) VFS {
@@ -50,3 +52,7 @@ func (i *instrumentedVFS) Root(ctx context.Context, path string) (Root, error) {
func (i *instrumentedVFS) Name() string {
return i.fs.Name()
}
+
+func (i *instrumentedVFS) Reconfigure(cfg *config.Config) error {
+ return i.fs.Reconfigure(cfg)
+}