sc

package
v0.0.16 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 5, 2024 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

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 (s *AliOSS) AdjustMTime(key string, localFilePath string) error

func (*AliOSS) Compare added in v0.0.6

func (s *AliOSS) Compare(key string, localFilePath string) (int, error)

func (*AliOSS) Delete added in v0.0.12

func (s *AliOSS) Delete(key string) error

func (*AliOSS) DownloadFile added in v0.0.6

func (s *AliOSS) DownloadFile(key string, localFilePath string) bool

func (*AliOSS) GetDirPath added in v0.0.6

func (s *AliOSS) GetDirPath() string

func (*AliOSS) Init added in v0.0.6

func (s *AliOSS) Init() error

func (*AliOSS) ListKeys added in v0.0.6

func (s *AliOSS) ListKeys(prefix string) ([]string, error)

func (*AliOSS) UploadFile added in v0.0.6

func (s *AliOSS) UploadFile(key string, localFilePath string) bool

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 (s *QingStor) AdjustMTime(key string, localFilePath string) error

func (*QingStor) Compare

func (s *QingStor) Compare(key string, localFilePath string) (int, error)

func (*QingStor) Delete added in v0.0.12

func (s *QingStor) Delete(key string) error

func (*QingStor) DownloadFile

func (s *QingStor) DownloadFile(key string, localFilePath string) bool

func (*QingStor) GetDirPath

func (s *QingStor) GetDirPath() string

func (*QingStor) Init

func (s *QingStor) Init() error

func (*QingStor) ListKeys

func (s *QingStor) ListKeys(prefix string) ([]string, error)

func (*QingStor) UploadFile

func (s *QingStor) UploadFile(key string, filepath string) bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL