myziyue

package
v0.0.0-...-3be8ab7 Latest Latest
Warning

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

Go to latest
Published: May 29, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AccessKey, _      = GetOption("AccessKey", "qiniu")
	SecretKey, _      = GetOption("SecretKey", "qiniu")
	Bucket, _         = GetOption("Bucket", "qiniu")
	StorageZone, _    = GetOption("StorageZone", "qiniu")
	UseHTTPS, _       = GetOption("UseHTTPS", "qiniu")
	UseCdnDomains, _  = GetOption("UseHTTPS", "qiniu")
	ForceOverwrite, _ = GetOption("ForceOverwrite", "qiniu")
)

Functions

func Batch

func Batch()

func CopyFile

func CopyFile(srcName string, destName string)

func DeleteFile

func DeleteFile(fileName string)

func GetCurrentPath

func GetCurrentPath() (string, error)

获取当前程序所在目录

func GetFilePath

func GetFilePath(filePath string) string

获取上传文件名

func GetOption

func GetOption(name string, category string) (string, error)

获取配置文件内容

func GetWatcherPaths

func GetWatcherPaths(watchPath []string) []string

func MoveFile

func MoveFile(srcName string, destName string)

func NewMonitor

func NewMonitor() (monitor, error)

func RmWatcher

func RmWatcher(watchPath string)

func SyncFile

func SyncFile(WatchPaths []string)

func UploadFile

func UploadFile(filePath string, uploadFileName string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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