Documentation ¶
Index ¶
- type Driver
- func (d *Driver) Delete(path string) error
- func (d *Driver) GetContent(path string) ([]byte, error)
- func (d *Driver) List(path string) ([]string, error)
- func (d *Driver) Move(sourcePath string, destPath string) error
- func (d *Driver) PutContent(p string, contents []byte) error
- func (d *Driver) ReadStream(path string, offset int64) (io.ReadCloser, error)
- func (d *Driver) Stat(path string) (storagedriver.FileInfo, error)
- func (d *Driver) URLFor(path string, options map[string]interface{}) (string, error)
- func (d *Driver) WriteStream(path string, offset int64, reader io.Reader) (nn int64, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Driver ¶
type Driver struct {
// contains filtered or unexported fields
}
Driver is a storagedriver.StorageDriver implementation backed by a local map. Intended solely for example and testing purposes.
func (*Driver) GetContent ¶
GetContent retrieves the content stored at "path" as a []byte.
func (*Driver) List ¶
List returns a list of the objects that are direct descendants of the given path.
func (*Driver) Move ¶
Move moves an object stored at sourcePath to destPath, removing the original object.
func (*Driver) PutContent ¶
PutContent stores the []byte content at a location designated by "path".
func (*Driver) ReadStream ¶
ReadStream retrieves an io.ReadCloser for the content stored at "path" with a given byte offset.
func (*Driver) Stat ¶
func (d *Driver) Stat(path string) (storagedriver.FileInfo, error)
Stat returns info about the provided path.
Click to show internal directories.
Click to hide internal directories.