Documentation ¶
Index ¶
- type IFinder
- type LocalFinder
- type OSSFinder
- func (finder *OSSFinder) Download(src, dst string) (int64, error)
- func (finder *OSSFinder) GetETag(filepath string) string
- func (finder *OSSFinder) GetLocalETag(filepath string) string
- func (finder *OSSFinder) GetUpdateTime(filepath string) int64
- func (finder *OSSFinder) ListDir(dir string) ([]string, error)
- type S3Finder
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 GetETag(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) GetETag ¶ added in v0.0.8
func (finder *LocalFinder) GetETag(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) GetLocalETag ¶ added in v0.0.8
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.