Skip to content

mingkid/g-postobj-aliyun

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

阿里云 PostObject SDK

Usage

# 组装策略
policy := postobj.Policy{
    Expiration: time.Now().Add(time.Hour * 24),
    Conditions: []json.Marshaler{
        postobj.ContentLengthRange{
            Min: 0,
            Max: 1024 * 1024 * 10,
        },
    },
}

# 创建PostObject实例
postObj := postobj.New("accessKeyId", "accessKeySecret").With(policy)

更多Policy Conditions参考文件:conditions.go。Conditions和对应的匹配方式请参考Post Policy

About

阿里云 PostObject 接口Go库

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages