Documentation ¶
Index ¶
- Variables
- func GenUrl(key string) (url string, err error)
- func GenerateRandom(n int) string
- func InitConfig(accessKeyID, secretAccessKey, endPoint, bucket string)
- func Upload(body io.Reader, key string) error
- func UploadAndGenUrl(body io.Reader, key string) (url string, err error)
- func UploadAndRandomKeyGunUrl(body io.Reader, filename string) (url string, err error)
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 GenerateRandom ¶
func InitConfig ¶
func InitConfig(accessKeyID, secretAccessKey, endPoint, bucket string)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.