Documentation
¶
Index ¶
- Variables
- type Logger
- func (logger *Logger) Debug(a ...any)
- func (logger *Logger) Debugf(format string, a ...any)
- func (logger *Logger) Error(a ...any)
- func (logger *Logger) Errorf(format string, a ...any)
- func (logger *Logger) Fatal(a ...any)
- func (logger *Logger) Fatalf(format string, a ...any)
- func (logger *Logger) Info(a ...any)
- func (logger *Logger) Infof(format string, a ...any)
- func (logger *Logger) Print(a ...any)
- func (logger *Logger) Printf(format string, a ...any)
- func (logger *Logger) Println(a ...any)
- func (logger *Logger) Warn(a ...any)
- func (logger *Logger) Warnf(format string, a ...any)
- type Progress
- type Provider
- type ProviderInfo
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrLoggerExists = errors.New("Logger already exists")
)
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider interface {
Get(path string, writer io.WriteCloser, progressCallback func(progress Progress)) error // Get a file at the path and write to the writer
Put(path string, size int64, reader io.ReadCloser, progressCallback func(progress Progress)) error // Put a file to the path using the reader
List(path string) ([]fs.DirEntry, error) // List files under a directory
Move(src, dst string) error // Move file from src to dst
Delete(path string, recursive, remote bool) error // Delete file at the path, optionally recursively and remotely
Mkdir(path string, parents bool) error // Create a directory, optionally create parents if they don't exist
Copy(src, dst string) error // Copy file (reference) from src to dst
Info() (ProviderInfo, error) // Fetch info of the provider
}
type ProviderInfo ¶
Click to show internal directories.
Click to hide internal directories.