Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Operator ¶
type Operator interface { // Read data into a byte array from a path Read(path string, p []byte) (n int, err error) // Write data from a byte array to a path Write(path string, p []byte) (n int, err error) // Stat return information about a file at the given path Stat(path string) (meta *Metadata, err error) }
Operator provides a unified interface for reading and writing data from various backends
func NewOperator ¶
NewOperator given a builder, returns an intialized Operator
Click to show internal directories.
Click to hide internal directories.