Documentation
¶
Index ¶
- func AddLocal(fSys fs.FS, zConfig *ZipAsFolder) error
- func MatchPath(vfsPath string) (vPath, name string, pathStr string, err error)
- func NewFSWithMiniResolver(config Config, miniResolverClient *resolver.MiniResolver, ...) (*vFSRW, error)
- type AESConfig
- type Afero
- type Config
- type MiniKVStore
- type OS
- type Remote
- type S3
- type SFTP
- type VFS
- type VFSRW
- type Web
- type ZipAsFolder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFSWithMiniResolver ¶
Types ¶
type MiniKVStore ¶
type Remote ¶
type Remote struct {
CAs []certconfig.Certificate `toml:"ca"`
Address string `toml:"address"`
ClientTLS *loader.Config `toml:"clienttls"`
BaseDir string `toml:"basedir"`
JWTKey config.EnvString `toml:"jwtkey"`
InsecureSkipVerify bool `toml:"insecureskipverify"`
}
type S3 ¶
type S3 struct {
AccessKeyID config.EnvString `toml:"accesskeyid"`
SecretAccessKey config.EnvString `toml:"secretaccesskey"`
Endpoint config.EnvString `toml:"endpoint"`
Region config.EnvString `toml:"region"`
UseSSL bool `toml:"usessl"`
Debug bool `toml:"debug"`
CAPEM string `toml:"capem"`
BaseUrl string `toml:"baseurl"`
DNSNetwork string `toml:"dnsnetwork"`
DNSAddress string `toml:"dnsaddress"`
}
type VFS ¶
type VFS struct {
Name string `toml:"name"`
Type string `toml:"type"`
ReadOnly bool `toml:"readonly"`
ZipAsFolder *ZipAsFolder `toml:"zipasfolder"`
S3 *S3 `toml:"s3,omitempty"`
OS *OS `toml:"os,omitempty"`
SFTP *SFTP `toml:"sftp,omitempty"`
Remote *Remote `toml:"remote,omitempty"`
MiniKVStore *MiniKVStore `toml:"minikvstore,omitempty"`
Web *Web `toml:"web,omitempty"`
Afero *Afero `toml:"afero,omitempty"`
}
type VFSRW ¶
type VFSRW interface {
fmt.Stringer
writefs.CopyFS
writefs.CreateFS
writefs.MkDirFS
writefs.RenameFS
writefs.RemoveFS
writefs.CloseFS
writefs.EqualFS
writefs.IsWriteableFS
writefs.SubFS
writefs.SubCreateFS
writefs.RealPathFS
writefs.IsEmptyFS
fs.FS
fs.ReadDirFS
fs.ReadFileFS
fs.StatFS
AddFS(name string, vfsConfig *VFS, fsys fs.FS)
GetFSNames() []string
}
Click to show internal directories.
Click to hide internal directories.