Documentation
¶
Index ¶
Constants ¶
View Source
const MaxWriteSize = 10 * 1024 * 1024
Variables ¶
View Source
var ErrInvalidPath = errors.New("invalid local path")
Functions ¶
Types ¶
type Service ¶
type Service interface {
Root() string
List(ctx context.Context, relPath string) ([]Entry, error)
Stat(ctx context.Context, relPath string) (*Entry, error)
Read(ctx context.Context, relPath string) ([]byte, *Entry, error)
Write(ctx context.Context, relPath string, data []byte, createOnly bool) (*Entry, error)
Mkdir(ctx context.Context, relPath string) (*Entry, error)
Delete(ctx context.Context, relPath string) error
Move(ctx context.Context, fromPath, toPath string) (*Entry, error)
}
Click to show internal directories.
Click to hide internal directories.