driver

package
v0.2.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileInfo

type FileInfo interface {
	Path() string
	Size() int64
	ModTime() time.Time
	IsDir() bool
}

type FileWriter

type FileWriter interface {
	io.WriteCloser
	Size() int64
	Cancel() error
	Commit() error
}

type StorageDriver

type StorageDriver interface {
	Name() string
	GetContent(string) ([]byte, error)
	PutContent(string, []byte) error
	Reader(string) (io.ReadCloser, error)
	Writer(string) (FileWriter, error)
	Stat(string) (FileInfo, error)
	List(string) ([]string, error)
	Move(string, string) error
	Delete(string) error
	Walk(string) ([]FileInfo, error)
	WalkDir(string) ([]string, error)
	//WalkDirWithDepth(from string, depth int) ([]string, error)
	RootDirectory() string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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