Documentation ¶
Index ¶
- Constants
- type FileSystemOperator
- func (f *FileSystemOperator) Download(src, dst string) error
- func (f *FileSystemOperator) FileExists(filePath string) bool
- func (f *FileSystemOperator) FileSize(filePath string) int64
- func (f *FileSystemOperator) FileTime(filePath string) time.Time
- func (f *FileSystemOperator) List(path string) ([]string, error)
- func (f *FileSystemOperator) Read(src string) (io.ReadCloser, error)
- func (f *FileSystemOperator) Remove(path string) error
- func (f *FileSystemOperator) Upload(src, dst string) error
- func (f *FileSystemOperator) Write(dst string, rs io.ReadSeeker) error
- type FileSystemOps
Constants ¶
View Source
const (
MaxCleanupLevel = 10
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileSystemOperator ¶
type FileSystemOperator struct {
FileSystemOps
}
func NewFileSystemOperator ¶
func NewFileSystemOperator(ops FileSystemOps) *FileSystemOperator
func (*FileSystemOperator) Download ¶
func (f *FileSystemOperator) Download(src, dst string) error
func (*FileSystemOperator) FileExists ¶
func (f *FileSystemOperator) FileExists(filePath string) bool
func (*FileSystemOperator) FileSize ¶
func (f *FileSystemOperator) FileSize(filePath string) int64
func (*FileSystemOperator) FileTime ¶
func (f *FileSystemOperator) FileTime(filePath string) time.Time
func (*FileSystemOperator) Read ¶
func (f *FileSystemOperator) Read(src string) (io.ReadCloser, error)
func (*FileSystemOperator) Remove ¶
func (f *FileSystemOperator) Remove(path string) error
func (*FileSystemOperator) Upload ¶
func (f *FileSystemOperator) Upload(src, dst string) error
func (*FileSystemOperator) Write ¶
func (f *FileSystemOperator) Write(dst string, rs io.ReadSeeker) error
type FileSystemOps ¶
Click to show internal directories.
Click to hide internal directories.