obs

package
v1.2.54 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AccessKeyID = "JAXCCVJAQP2U3GAVMX2Z"
View Source
var Bucket = "gt1file"
View Source
var EndPoint = "https://obs.af-south-1.myhuaweicloud.com"
View Source
var SecretAccessKey = "ncbc9FCpdIyRDLiyDfyvM7baggPtV1p9AX9TiaJ4"

Functions

func GenUrl

func GenUrl(key string) (url string, err error)

func GenerateRandom

func GenerateRandom(n int) string

func InitConfig

func InitConfig(accessKeyID, secretAccessKey, endPoint, bucket string)

func Upload

func Upload(body io.Reader, key string) error

func UploadAndGenUrl

func UploadAndGenUrl(body io.Reader, key string) (url string, err error)

func UploadAndRandomKeyGunUrl

func UploadAndRandomKeyGunUrl(body io.Reader, filename string) (url string, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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