Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrConfigNotFound = errors.New("config not found")
)
Functions ¶
func AddDiskConfig ¶
func AddDiskConfig(name string, config DiskConfig)
Types ¶
type DiskConfig ¶
type Storage ¶
type Storage interface { Size(path string) int64 Exists(path string) bool Hash(path string) string Delete(paths ...string) error URL(path string) (string, error) MakeDirectory(path string) error Get(name string) (fs.File, error) DeleteDirectory(path string) error LastModified(path string) time.Time AllDirectories(path string) []string AllFiles(path string) (files fs.Files) Files(path string, recursive ...bool) fs.Files Directories(path string, recursive ...bool) fs.Dirs TemporaryURL(path string, expire time.Duration) (string, error) Put(path string, in io.ReadCloser, metadata ...*fs.HTTPOption) (fs.File, error) PutFile(dir string, in io.ReadCloser, metadata ...*fs.HTTPOption) (fs.File, error) }
Storage _
Click to show internal directories.
Click to hide internal directories.