fsops

package
v0.0.0-...-d046737 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 15, 2025 License: Apache-2.0 Imports: 9 Imported by: 3

Documentation

Index

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) List

func (f *FileSystemOperator) List(path string) ([]string, error)

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

type FileSystemOps interface {
	LocalPath(path string) string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL