aliyun

package
v0.0.0-...-7431fda Latest Latest
Warning

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

Go to latest
Published: May 4, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CacheRead

func CacheRead(filename string) (map[string]interface{}, error)

func CacheWrite

func CacheWrite(m map[string]interface{}, cacheFile string) error

func DeleteObject

func DeleteObject(config *OSSConfig, objectKey string) error

func HandleError

func HandleError(err error)

func ListObjects

func ListObjects(config *OSSConfig, metaKey string) (map[string]interface{}, error)

func PutObjectFromFile

func PutObjectFromFile(config *OSSConfig, objectKey, filePath string, metasMap map[string]interface{}) error

func ReadDir

func ReadDir(filesMap map[string]interface{}, sourceDir, subDir string)

func SyncLocalToOSS

func SyncLocalToOSS(config *OSSConfig, sourceDir, metaKey, cacheFile string, excludeList []string) error

Types

type OSSConfig

type OSSConfig struct {
	Endpoint        string
	BucketName      string
	AccessKeyID     string
	AccessKeySecret string
}

Jump to

Keyboard shortcuts

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