Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetupPocketbase ¶
func SetupPocketbase(storagePath string) *pocketbase.PocketBase
Types ¶
type Application ¶
type Application interface {
Start() error
}
Application is the interface for the application
type InMemoryFile ¶
type InMemoryFile struct {
// contains filtered or unexported fields
}
InMemoryFile represents an in-memory file.
func NewInMemoryFile ¶
func NewInMemoryFile(name string, content []byte) *InMemoryFile
NewInMemoryFile creates a new in-memory file.
type InMemoryFileInfo ¶
type InMemoryFileInfo struct {
// contains filtered or unexported fields
}
InMemoryFileInfo implements os.FileInfo for in-memory files.
func (*InMemoryFileInfo) IsDir ¶
func (fi *InMemoryFileInfo) IsDir() bool
IsDir returns whether the file is a directory.
func (*InMemoryFileInfo) ModTime ¶
func (fi *InMemoryFileInfo) ModTime() time.Time
ModTime returns the modification time of the file.
func (*InMemoryFileInfo) Mode ¶
func (fi *InMemoryFileInfo) Mode() os.FileMode
Mode returns the file's mode.
func (*InMemoryFileInfo) Name ¶
func (fi *InMemoryFileInfo) Name() string
Name returns the name of the file.
func (*InMemoryFileInfo) Size ¶
func (fi *InMemoryFileInfo) Size() int64
Size returns the size of the file.
func (*InMemoryFileInfo) Sys ¶
func (fi *InMemoryFileInfo) Sys() interface{}
Sys returns the underlying data source.
type InMemoryFileSystem ¶
type InMemoryFileSystem struct {
// contains filtered or unexported fields
}
InMemoryFileSystem implements the sftp.FileSystem interface.
func NewInMemoryFileSystem ¶
func NewInMemoryFileSystem() *InMemoryFileSystem
NewInMemoryFileSystem creates a new in-memory file system.
func (*InMemoryFileSystem) AddFile ¶
func (fs *InMemoryFileSystem) AddFile(name string, content []byte)
AddFile adds a new file to the in-memory file system.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.