Documentation
¶
Index ¶
- func NewDaemon(ctx context.Context, koanf *koanf.Koanf) (contentresolver.ContentResolver, error)
- type ArchiveFS
- func (a *ArchiveFS) FsName() string
- func (a *ArchiveFS) Info() (fs.FileInfo, error)
- func (a *ArchiveFS) IsDir() bool
- func (a *ArchiveFS) ModTime() time.Time
- func (a *ArchiveFS) Mode() fs.FileMode
- func (a *ArchiveFS) Name() string
- func (a *ArchiveFS) Open(ctx context.Context, filename string) (vfs.File, error)
- func (a *ArchiveFS) ReadDir(ctx context.Context, path string) ([]fs.DirEntry, error)
- func (a *ArchiveFS) Rename(ctx context.Context, oldpath string, newpath string) error
- func (a *ArchiveFS) Size() int64
- func (afs *ArchiveFS) Stat(ctx context.Context, filename string) (fs.FileInfo, error)
- func (a *ArchiveFS) Sys() any
- func (a *ArchiveFS) Type() fs.FileMode
- func (a *ArchiveFS) Unlink(ctx context.Context, filename string) error
- type ArchivePlugin
- type Daemon
- func (d *Daemon) Close(ctx context.Context) error
- func (d *Daemon) Extensions() []string
- func (d *Daemon) Name() string
- func (d *Daemon) NewArchiveFS(ctx context.Context, archivePath, name string, f vfs.File, size int64, ...) (*ArchiveFS, error)
- func (d *Daemon) RarLoader(ctx context.Context, archivePath string, f vfs.File, size int64) (map[string]fileEntry, error)
- func (d *Daemon) ResolveFS(ctx context.Context, sourcePath string, file vfs.File) (vfs.Filesystem, error)
- func (d *Daemon) SevenZipLoader(ctx context.Context, archivePath string, ctxreader vfs.File, size int64) (map[string]fileEntry, error)
- func (d *Daemon) ZipLoader(ctx context.Context, archivePath string, f vfs.File, size int64) (map[string]fileEntry, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDaemon ¶
func NewDaemon(ctx context.Context, koanf *koanf.Koanf) (contentresolver.ContentResolver, error)
Types ¶
type ArchiveFS ¶
type ArchiveFS struct {
// contains filtered or unexported fields
}
type ArchivePlugin ¶
type ArchivePlugin struct{}
func (*ArchivePlugin) NewContentProvider ¶
func (a *ArchivePlugin) NewContentProvider(context.Context, *koanf.Koanf, vfs.Filesystem) (contentresolver.ContentResolver, error)
NewContentProvider implements tstor.DaemonPlugin.
type Daemon ¶
type Daemon struct {
// contains filtered or unexported fields
}
func (*Daemon) Extensions ¶
Extensions implements daemon.Daemon.
func (*Daemon) NewArchiveFS ¶
func (*Daemon) ResolveFS ¶
func (d *Daemon) ResolveFS(ctx context.Context, sourcePath string, file vfs.File) (vfs.Filesystem, error)
ResolveFS implements daemon.Daemon.
func (*Daemon) SevenZipLoader ¶
Click to show internal directories.
Click to hide internal directories.