Documentation ¶
Index ¶
- func CompareAndDownloadAll()
- func CompareAndUpload(fileName, fullPath string)
- type AliOSS
- func (s *AliOSS) AdjustMTime(key string, localFilePath string) error
- func (s *AliOSS) Compare(key string, localFilePath string) (int, error)
- func (s *AliOSS) Delete(key string) error
- func (s *AliOSS) DownloadFile(key string, localFilePath string) bool
- func (s *AliOSS) GetDirPath() string
- func (s *AliOSS) Init() error
- func (s *AliOSS) ListKeys(prefix string) ([]string, error)
- func (s *AliOSS) UploadFile(key string, localFilePath string) bool
- type QingStor
- func (s *QingStor) AdjustMTime(key string, localFilePath string) error
- func (s *QingStor) Compare(key string, localFilePath string) (int, error)
- func (s *QingStor) Delete(key string) error
- func (s *QingStor) DownloadFile(key string, localFilePath string) bool
- func (s *QingStor) GetDirPath() string
- func (s *QingStor) Init() error
- func (s *QingStor) ListKeys(prefix string) ([]string, error)
- func (s *QingStor) UploadFile(key string, filepath string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompareAndDownloadAll ¶
func CompareAndDownloadAll()
func CompareAndUpload ¶
func CompareAndUpload(fileName, fullPath string)
Types ¶
type AliOSS ¶ added in v0.0.6
type AliOSS struct { AccessKeyId string `mapstructure:"access_key_id"` AccessKeySecret string `mapstructure:"access_key_secret"` BucketName string `mapstructure:"bucket_name"` Endpoint string `mapstructure:"endpoint"` DirPath string `mapstructure:"dir_path"` Bucket *oss.Bucket }
func (*AliOSS) AdjustMTime ¶ added in v0.0.9
func (*AliOSS) DownloadFile ¶ added in v0.0.6
func (*AliOSS) GetDirPath ¶ added in v0.0.6
type QingStor ¶
type QingStor struct { AccessKey string `mapstructure:"access_key"` SecretKey string `mapstructure:"secret_key"` BucketName string `mapstructure:"bucket_name"` Zone string `mapstructure:"zone"` DirPath string `mapstructure:"dir_path"` Bucket *qs.Bucket }
func (*QingStor) AdjustMTime ¶ added in v0.0.9
func (*QingStor) DownloadFile ¶
func (*QingStor) GetDirPath ¶
Click to show internal directories.
Click to hide internal directories.