mirror of
https://github.com/caddyserver/caddy.git
synced 2026-01-16 17:20:34 +00:00
filesystem: Globally declared filesystems, fs directive (#5833)
This commit is contained in:
10
filesystem.go
Normal file
10
filesystem.go
Normal file
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user