Compare commits
8 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3b45c0ae0e | ||
|
|
ba2e64b62e | ||
|
|
b8afb3f850 | ||
|
|
b44176ed7c | ||
|
|
757ad28a32 | ||
|
|
f7881abec6 | ||
|
|
0c4356fe8e | ||
|
|
e3a89ee58b |
29
CHANGELOG.md
29
CHANGELOG.md
@@ -7,6 +7,35 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
|
|
||||||
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
||||||
|
|
||||||
|
## [v0.7.14](https://github.com/tencentyun/cos-go-sdk-v5/compare/v0.7.13...v0.7.14) - 2020-12-09
|
||||||
|
|
||||||
|
fix bucket lifecycle
|
||||||
|
|
||||||
|
### Merged
|
||||||
|
|
||||||
|
- update version [`#95`](https://github.com/tencentyun/cos-go-sdk-v5/pull/95)
|
||||||
|
- fix bucket lifecycle [`#94`](https://github.com/tencentyun/cos-go-sdk-v5/pull/94)
|
||||||
|
|
||||||
|
### Commits
|
||||||
|
|
||||||
|
- Updated CHANGELOG.md [`e3a89ee`](https://github.com/tencentyun/cos-go-sdk-v5/commit/e3a89ee58b4f524c7ad5f2b1f0bdc688a2e39c32)
|
||||||
|
|
||||||
|
## [v0.7.13](https://github.com/tencentyun/cos-go-sdk-v5/compare/v0.7.12...v0.7.13) - 2020-12-08
|
||||||
|
|
||||||
|
add ci document && add progress
|
||||||
|
|
||||||
|
### Merged
|
||||||
|
|
||||||
|
- Cos v4 dev [`#93`](https://github.com/tencentyun/cos-go-sdk-v5/pull/93)
|
||||||
|
|
||||||
|
### Commits
|
||||||
|
|
||||||
|
- add ci doc [`dad5b1f`](https://github.com/tencentyun/cos-go-sdk-v5/commit/dad5b1f3fbbf30958d3d8ae930b06abcaf8db5ac)
|
||||||
|
- add progress [`2afc5e1`](https://github.com/tencentyun/cos-go-sdk-v5/commit/2afc5e192cd9bc8d6630fa929e10028ec79bde8e)
|
||||||
|
- Updated CHANGELOG.md [`e39f3e3`](https://github.com/tencentyun/cos-go-sdk-v5/commit/e39f3e3585e0478abe50b33962e1e3981a2d432c)
|
||||||
|
- update test [`4899c22`](https://github.com/tencentyun/cos-go-sdk-v5/commit/4899c226f70ccc1bb4ac8489a2b8ff000003bc97)
|
||||||
|
- add auto changelog workflow [`ca3ea38`](https://github.com/tencentyun/cos-go-sdk-v5/commit/ca3ea38770afcd11e50570a835090c68a377157f)
|
||||||
|
|
||||||
## [v0.7.12](https://github.com/tencentyun/cos-go-sdk-v5/compare/v0.7.11...v0.7.12) - 2020-11-25
|
## [v0.7.12](https://github.com/tencentyun/cos-go-sdk-v5/compare/v0.7.11...v0.7.12) - 2020-11-25
|
||||||
|
|
||||||
update presignedurl && copy
|
update presignedurl && copy
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ type BucketLifecycleTransition struct {
|
|||||||
|
|
||||||
// BucketLifecycleAbortIncompleteMultipartUpload is the param of BucketLifecycleRule
|
// BucketLifecycleAbortIncompleteMultipartUpload is the param of BucketLifecycleRule
|
||||||
type BucketLifecycleAbortIncompleteMultipartUpload struct {
|
type BucketLifecycleAbortIncompleteMultipartUpload struct {
|
||||||
DaysAfterInitiation string `xml:"DaysAfterInititation,omitempty"`
|
DaysAfterInitiation int `xml:"DaysAfterInitiation,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// BucketLifecycleRule is the rule of BucketLifecycle
|
// BucketLifecycleRule is the rule of BucketLifecycle
|
||||||
|
|||||||
19
ci.go
19
ci.go
@@ -31,21 +31,23 @@ func EncodePicOperations(pic *PicOperations) string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type ImageProcessResult struct {
|
type ImageProcessResult struct {
|
||||||
XMLName xml.Name `xml:"UploadResult"`
|
XMLName xml.Name `xml:"UploadResult"`
|
||||||
OriginalInfo *PicOriginalInfo `xml:"OriginalInfo,omitempty"`
|
OriginalInfo *PicOriginalInfo `xml:"OriginalInfo,omitempty"`
|
||||||
ProcessObject *PicProcessObject `xml:"ProcessResults>Object,omitempty"`
|
ProcessResults *PicProcessObject `xml:"ProcessResults>Object,omitempty"`
|
||||||
}
|
}
|
||||||
type PicOriginalInfo struct {
|
type PicOriginalInfo struct {
|
||||||
Key string `xml:"Key,omitempty"`
|
Key string `xml:"Key,omitempty"`
|
||||||
Location string `xml:"Location,omitempty"`
|
Location string `xml:"Location,omitempty"`
|
||||||
ImageInfo *PicImageInfo `xml:"ImageInfo,omitempty"`
|
ImageInfo *PicImageInfo `xml:"ImageInfo,omitempty"`
|
||||||
|
ETag string `xml:"ETag,omitempty"`
|
||||||
}
|
}
|
||||||
type PicImageInfo struct {
|
type PicImageInfo struct {
|
||||||
Format string `xml:"Format,omitempty"`
|
Format string `xml:"Format,omitempty"`
|
||||||
Width int `xml:"Width,omitempty"`
|
Width int `xml:"Width,omitempty"`
|
||||||
Height int `xml:"Height,omitempty"`
|
Height int `xml:"Height,omitempty"`
|
||||||
Size int `xml:"Size,omitempty"`
|
Quality int `xml:"Quality,omitempty"`
|
||||||
Quality int `xml:"Quality,omitempty"`
|
Ave string `xml:"Ave,omitempty"`
|
||||||
|
Orientation int `xml:"Orientation,omitempty"`
|
||||||
}
|
}
|
||||||
type PicProcessObject struct {
|
type PicProcessObject struct {
|
||||||
Key string `xml:"Key,omitempty"`
|
Key string `xml:"Key,omitempty"`
|
||||||
@@ -55,6 +57,7 @@ type PicProcessObject struct {
|
|||||||
Height int `xml:"Height,omitempty"`
|
Height int `xml:"Height,omitempty"`
|
||||||
Size int `xml:"Size,omitempty"`
|
Size int `xml:"Size,omitempty"`
|
||||||
Quality int `xml:"Quality,omitempty"`
|
Quality int `xml:"Quality,omitempty"`
|
||||||
|
ETag string `xml:"ETag,omitempty"`
|
||||||
WatermarkStatus int `xml:"WatermarkStatus,omitempty"`
|
WatermarkStatus int `xml:"WatermarkStatus,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -261,10 +261,11 @@ type DocPreviewOptions struct {
|
|||||||
|
|
||||||
func (s *CIService) DocPreview(ctx context.Context, name string, opt *DocPreviewOptions) (*Response, error) {
|
func (s *CIService) DocPreview(ctx context.Context, name string, opt *DocPreviewOptions) (*Response, error) {
|
||||||
sendOpt := sendOptions{
|
sendOpt := sendOptions{
|
||||||
baseURL: s.client.BaseURL.BucketURL,
|
baseURL: s.client.BaseURL.BucketURL,
|
||||||
uri: "/" + encodeURIComponent(name) + "?ci-process=doc-preview",
|
uri: "/" + encodeURIComponent(name) + "?ci-process=doc-preview",
|
||||||
optQuery: opt,
|
optQuery: opt,
|
||||||
method: http.MethodGet,
|
method: http.MethodGet,
|
||||||
|
disableCloseBody: true,
|
||||||
}
|
}
|
||||||
resp, err := s.client.send(ctx, &sendOpt)
|
resp, err := s.client.send(ctx, &sendOpt)
|
||||||
return resp, err
|
return resp, err
|
||||||
|
|||||||
2
cos.go
2
cos.go
@@ -22,7 +22,7 @@ import (
|
|||||||
|
|
||||||
const (
|
const (
|
||||||
// Version current go sdk version
|
// Version current go sdk version
|
||||||
Version = "0.7.13"
|
Version = "0.7.15"
|
||||||
userAgent = "cos-go-sdk-v5/" + Version
|
userAgent = "cos-go-sdk-v5/" + Version
|
||||||
contentTypeXML = "application/xml"
|
contentTypeXML = "application/xml"
|
||||||
defaultServiceBaseURL = "http://service.cos.myqcloud.com"
|
defaultServiceBaseURL = "http://service.cos.myqcloud.com"
|
||||||
|
|||||||
Reference in New Issue
Block a user