[go: up one dir, main page]

Skip to content

zhchsf/ufile

Repository files navigation

ufile

Installation

go get github.com/zhchsf/ufile
import "github.com/zhchsf/ufile"

Getting Started

config ufile settings:

ufile.SetConfig(
    ufile.Config{
        PublicKey:    GlobolConfig.Ufile.PublicKey,
        PrivateKey:   GlobolConfig.Ufile.PrivateKey,
        UserAgent:    GlobolConfig.Ufile.UserAgent,
        ExpireSecond: GlobolConfig.Ufile.ExpireSecond,
        UrlSuffix:    GlobolConfig.Ufile.UrlSuffix,
    },
)

upload to ufile:

ufile.Upload(filepath string, key string, bucketName string) (bool, error)

get 私密地址:

ufile.PrivateCloudUrl(key string, bucketName string) string

About

ucloud ufile 私密上传/下载

Topics

Resources

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages