Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IFinder ¶
type IFinder interface { ListDir(dir string) ([]string, error) Download(src, dst string) (int64, error) GetUpdateTime(filepath string) int64 GetMD5(filepath string) string }
func GetFinder ¶
func GetFinder(cfg *commonconfig.FinderConfig) IFinder
type LocalFinder ¶ added in v0.0.5
type LocalFinder struct {
Config *commonconfig.FinderConfig
}
func NewLocalFinder ¶ added in v0.0.5
func NewLocalFinder(conf *commonconfig.FinderConfig) *LocalFinder
func (*LocalFinder) Download ¶ added in v0.0.5
func (finder *LocalFinder) Download(src, dst string) (int64, error)
func (*LocalFinder) GetMD5 ¶ added in v0.0.7
func (finder *LocalFinder) GetMD5(filepath string) string
func (*LocalFinder) GetUpdateTime ¶ added in v0.0.5
func (finder *LocalFinder) GetUpdateTime(filepath string) int64
type OSSFinder ¶
type OSSFinder struct {
Config *commonconfig.FinderConfig
}
func NewOSSFinder ¶
func NewOSSFinder(conf *commonconfig.FinderConfig) *OSSFinder
func (*OSSFinder) GetUpdateTime ¶
type S3Finder ¶
type S3Finder struct { Config *commonconfig.FinderConfig Session *session.Session }
func NewS3Finder ¶
func NewS3Finder(conf *commonconfig.FinderConfig) *S3Finder
func (*S3Finder) GetUpdateTime ¶
Click to show internal directories.
Click to hide internal directories.