Versions in this module Expand all Collapse all v0 v0.5.0 Feb 5, 2016 Changes in this version + var PathRegexp = regexp.MustCompile(`^(/[A-Za-z0-9._-]+)+$`) + type ErrUnsupportedMethod struct + DriverName string + func (err ErrUnsupportedMethod) Error() string + type Error struct + DriverName string + Enclosed error + func (err Error) Error() string + type FileInfo interface + IsDir func() bool + ModTime func() time.Time + Path func() string + Size func() int64 + type FileInfoFields struct + IsDir bool + ModTime time.Time + Path string + Size int64 + type FileInfoInternal struct + func (fi FileInfoInternal) IsDir() bool + func (fi FileInfoInternal) ModTime() time.Time + func (fi FileInfoInternal) Path() string + func (fi FileInfoInternal) Size() int64 + type InvalidOffsetError struct + DriverName string + Offset int64 + Path string + func (err InvalidOffsetError) Error() string + type InvalidPathError struct + DriverName string + Path string + func (err InvalidPathError) Error() string + type PathNotFoundError struct + DriverName string + Path string + func (err PathNotFoundError) Error() string + type StorageDriver interface + Delete func(ctx context.Context, path string) error + GetContent func(ctx context.Context, path string) ([]byte, error) + List func(ctx context.Context, path string) ([]string, error) + Move func(ctx context.Context, sourcePath string, destPath string) error + Name func() string + PutContent func(ctx context.Context, path string, content []byte) error + ReadStream func(ctx context.Context, path string, offset int64) (io.ReadCloser, error) + Stat func(ctx context.Context, path string) (FileInfo, error) + URLFor func(ctx context.Context, path string, options map[string]interface{}) (string, error) + WriteStream func(ctx context.Context, path string, offset int64, reader io.Reader) (nn int64, err error) + type Version string + const CurrentVersion + func (version Version) Major() uint + func (version Version) Minor() uint