lib

package
v0.0.0-...-cb2d469 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	//ENDPOINT string = "oss-cn-beijing.aliyuncs.com"
	ENDPOINT   string = "oss-cn-beijing-internal.aliyuncs.com"
	GMT_LAYOUT string = "Mon, 02 Jan 2006 15:04:05 GMT"

	METHOD_GET    string = "GET"
	METHOD_PUT    string = "PUT"
	METHOD_DELETE string = "DELETE"
	METHOD_POST   string = "POST"
)

Variables

View Source
var (
	MIMETYPE map[string]string = map[string]string{}/* 226 elements not displayed */

)

Functions

func Create

func Create(bucket, resource, content string) int

func CreateApk

func CreateApk(bucket, resource, content string) int

func CreateBucket

func CreateBucket(bucket string) int

func CreateMore

func CreateMore(bucket, resource, content string, suffix string) int

func GenerationPath

func GenerationPath(group, suffix string) string

*

  • path:bucket/group/year/month/day/microunixtime_rand(1000).jpg *

func Init

func Init(access_id, access_key string, mlogger func(interface{}))

func MkDir

func MkDir(bucket, resource string) int

func New

func New(access_id, access_key string) *oss

func Remove

func Remove(bucket, resource string) int

func RemoveBucket

func RemoveBucket(bucket string) int

func RmDir

func RmDir(bucket, resource string) int

Types

This section is empty.

Jump to

Keyboard shortcuts

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