summaryrefslogtreecommitdiffhomepage
path: root/filesystem.go
diff options
context:
space:
mode:
authora <[email protected]>2024-01-13 14:12:43 -0600
committerGitHub <[email protected]>2024-01-13 20:12:43 +0000
commitc839a98ff527932fd14460829142c486f4531a7b (patch)
tree3a4a9745d2bc54ff557b4439ea0fe2dbc58238e0 /filesystem.go
parentb359ca565c624b8718eac79058bff0591b250d0e (diff)
downloadcaddy-c839a98ff527932fd14460829142c486f4531a7b.tar.gz
caddy-c839a98ff527932fd14460829142c486f4531a7b.zip
filesystem: Globally declared filesystems, `fs` directive (#5833)
Diffstat (limited to 'filesystem.go')
-rw-r--r--filesystem.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/filesystem.go b/filesystem.go
new file mode 100644
index 000000000..9785f57d4
--- /dev/null
+++ b/filesystem.go
@@ -0,0 +1,10 @@
+package caddy
+
+import "io/fs"
+
+type FileSystems interface {
+ Register(k string, v fs.FS)
+ Unregister(k string)
+ Get(k string) (v fs.FS, ok bool)
+ Default() fs.FS
+}