mirror of
https://github.com/caddyserver/caddy.git
synced 2025-10-19 07:43:17 +00:00
filesystem: Globally declared filesystems, fs
directive (#5833)
This commit is contained in:
parent
b359ca565c
commit
c839a98ff5
30 changed files with 450 additions and 219 deletions
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
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue