Versions in this module Expand all Collapse all v1 v1.0.1 Nov 14, 2021 v1.0.0 Nov 12, 2021 Changes in this version + var FileNoPermissionErr = errors.New("permission denied") + var FileNotFoundErr = errors.New("file not found") + func NormalizeKey(key string) string + func OpenAsReadOnly(key string) (*os.File, os.FileInfo, error) + func Register(name DiskName, disk Storage) + type DiskName string + const KoDo + const Local + const Oss + type Storage interface + Copy func(srcKey string, destKey string) error + Delete func(key string) error + Exists func(key string) (bool, error) + Get func(key string) (io.ReadCloser, error) + Put func(key string, r io.Reader, dataLength int64) error + PutFile func(key string, localFile string) error + Rename func(srcKey string, destKey string) error + Size func(key string) (int64, error) + Url func(key string) string + func Disk(name DiskName) (Storage, error)