# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Functions

Code return error code saved in TosServerError.
CRC64Combine combines CRC64.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NewClient create a new Tos Client endpoint: access endpoint options: WithCredentials set Credentials WithRegion set region, this is required if WithCredentials is used WithSocketTimeout set read-write timeout WithTransportConfig set TransportConfig WithTransport set self-defined Transport.
NewClientV2 create a new Tos ClientV2 endpoint: access endpoint options: WithCredentials set Credentials WithRegion set region, this is required if WithCredentials is used.
NewCRC is similar with crc64.New, but you can set the initial value.
No description provided by the author
NewDefaultTransport create a DefaultTransport with config.
NewDefaultTransportWithClient crate a DefaultTransport with a http.Client.
No description provided by the author
NewFederationCredentials FederationCredentials implements Credentials interfaces with flushing Credential periodically use WithPreFetch set prefetch time.
No description provided by the author
NewSignV4 create SignV4 use WithSignKey to set self-defined sign-key generator use WithSignLogger to set logger.
NewStaticCredentials Credentials with static access-key and secret-key use StaticCredentials.WithSecurityToken to set security-token you can use it as: client, err := tos.NewClient(endpoint, tos.WithCredentials(tos.NewStaticCredentials(accessKey, secretKey))) // do something more And you can use tos.WithPerRequestSigner set the 'Signer' for each request.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ParseGetObjectV2Output Parse the incoming parameters of *http.Response type, and respond to the return value of *GetObjectV2Output type.
ParseHeadObjectV2Output Parse the incoming parameters of *http.Response type, and respond to the return value of *HeadObjectV2Output type.
ParseListObjectsType2Output Parse the incoming parameters of *http.Response type, and respond to the return value of *ListObjectsType2Output type.
ParseListObjectsV2Output Parse the incoming parameters of *http.Response type, and respond to the return value of *ListObjectsV2Output type.
ParseListObjectVersionsV2Output Parse the incoming parameters of *http.Response type, and respond to the return value of *ListObjectVersionsV2Output type.
No description provided by the author
No description provided by the author
StatueCode return status code saved in TosServerError or UnexpectedStatusCodeError Deprecated: use StatusCode instead.
StatusCode return status code saved in TosServerError or UnexpectedStatusCodeError.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
WithACL set X-Tos-Acl header used in Bucket.PutObject Bucket.CreateMultipartUpload Bucket.AppendObject.
WithACLGrantFullControl X-Tos-Grant-Full-Control header used in Bucket.PutObject Bucket.CreateMultipartUpload Bucket.AppendObject.
WithACLGrantRead set X-Tos-Grant-Read header used in Bucket.PutObject Bucket.CreateMultipartUpload Bucket.AppendObject.
WithACLGrantReadAcp set X-Tos-Grant-Read-Acp header used in Bucket.PutObject Bucket.CreateMultipartUpload Bucket.AppendObject.
WithACLGrantWrite set X-Tos-Grant-Write header used in Bucket.PutObject Bucket.CreateMultipartUpload Bucket.AppendObject.
WithACLGrantWriteAcp set X-Tos-Grant-Write-Acp header used in Bucket.PutObject Bucket.CreateMultipartUpload Bucket.AppendObject.
WithAutoRecognizeContentType set to recognize Content-Type or not, the default is enabled.
WithCacheControl set Cache-Control header used in Bucket.PutObject Bucket.AppendObject Bucket.CreateMultipartUpload Bucket.SetObjectMeta.
WithConnectionTimeout set timeout for constructing connection.
WithContentDisposition set Content-Disposition header used in Bucket.PutObject Bucket.AppendObject Bucket.CreateMultipartUpload Bucket.SetObjectMeta.
WithContentEncoding set Content-Encoding header used in Bucket.PutObject Bucket.AppendObject Bucket.CreateMultipartUpload Bucket.SetObjectMeta.
WithContentLanguage set Content-Language header used in Bucket.PutObject Bucket.AppendObject Bucket.CreateMultipartUpload Bucket.SetObjectMeta.
WithContentLength set Content-Length header used in Bucket.PutObject Bucket.AppendObject Bucket.UploadPart If the length of the content is known, it is better to add this option when Put, Append or Upload.
WithContentMD5 set Content-MD5 header.
WithContentSHA256 set X-Tos-Content-Sha256 header.
WithContentType set Content-Type header used in Bucket.PutObject Bucket.AppendObject Bucket.CreateMultipartUpload Bucket.SetObjectMeta.
WithContentTypeRecognizer set ContentTypeRecognizer to recognize Content-Type, the default is ExtensionBasedContentTypeRecognizer.
WithCopySourceIfMatch set X-Tos-Copy-Source-If-Match header used in Bucket.CopyObject Bucket.CopyObjectTo Bucket.CopyObjectFrom Bucket.UploadPartCopy.
WithCopySourceIfModifiedSince set X-Tos-Copy-Source-If-Modified-Since header used in Bucket.CopyObject Bucket.CopyObjectTo Bucket.CopyObjectFrom Bucket.UploadPartCopy.
WithCopySourceIfNoneMatch set X-Tos-Copy-Source-If-None-Match used in Bucket.CopyObject Bucket.CopyObjectTo Bucket.CopyObjectFrom Bucket.UploadPartCopy.
WithCopySourceIfUnmodifiedSince set X-Tos-Copy-Source-If-Unmodified-Since header used in Bucket.CopyObject Bucket.CopyObjectTo Bucket.CopyObjectFrom Bucket.UploadPartCopy.
WithCredentials set Credentials see StaticCredentials, WithoutSecretKeyCredentials and FederationCredentials.
No description provided by the author
No description provided by the author
WithDNSCacheTime set dnsCacheTime in Minute.
WithEnableCRC set if check crc after uploading object.
WithEnableVerifySSL set whether a client verifies the server's certificate chain and host name.
WithExcept100ContinueThreshold set threshold for 100 continue.
WithExpires set Expires header used in Bucket.PutObject Bucket.AppendObject Bucket.CreateMultipartUpload Bucket.SetObjectMeta.
WithHeader add request http header.
With the HighLatencyLogThreshold set and assuming the unit is in kilobytes (KB).
WithHTTPTransport set Transport of http.Client.
WithIdleConnTimeout set max idle time of a http connection.
WithIfMatch set If-Match header.
WithIfModifiedSince set If-Modified-Since header used in Bucket.GetObject Bucket.HeadObject.
WithIfNoneMatch set If-None-Match header.
WithIfUnmodifiedSince set If-Unmodified-Since header used in Bucket.GetObject Bucket.HeadObject.
WithLogger sets the tos sdk logger.
WithMaxConnections set maximum number of http connections.
// WithMaxRetryCount set MaxRetryCount.
WithMeta set meta header used in Bucket.PutObject Bucket.CreateMultipartUpload Bucket.AppendObject Bucket.SetObjectMeta.
WithMetadataDirective set X-Tos-Metadata-Directive header used in Bucket.CopyObject Bucket.CopyObjectTo Bucket.CopyObjectFrom.
WithPathAccessMode url mode is path model or default mode Deprecated: This option is deprecated.
WithPerRequestSigner set Signer for a request use this option when you need set request-level signature parameter(s).
WithProxy set http Proxy for tos client.
WithQuery add request query parameter NOTICE: use it carefully.
WithRange set Range header used in Bucket.GetObject Bucket.HeadObject.
WithRegion set region.
WithRequestTimeout set timeout for single http request.
WithServerSideEncryptionCustomer set server-side-encryption parameters used in Bucket.PutObject Bucket.CreateMultipartUpload.
WithSigner for self-defined Signer.
WithSocketTimeout set read-write timeout.
WithTransport set Transport Deprecated: this function is Deprecated.
WithTransportConfig set TransportConfig.
WithUserAgentSuffix set suffix of user-agent.
WithVersionID set version parameter used in Bucket.GetObject Bucket.HeadObject Bucket.DeleteObject Bucket.GetObjectAcl Bucket.SetObjectMeta Bucket.CopyObject Bucket.CopyObjectTo Bucket.CopyObjectFrom Client.PreSignedURL.
WithWebsiteRedirectLocation set X-Tos-Website-Redirect-Location header.

# Constants

Deprecated: use enum.ACLAuthRead instead.
Deprecated: use enum.ACLBucketOwnerFullControl instead.
Deprecated: use enum.ACLBucketOwnerRead instead.
Deprecated: use enum.ACLLogDeliveryWrite instead.
Deprecated: use enum.ACLPrivate instead.
Deprecated: use enum.ACLPublicRead instead.
Deprecated: use enum.ACLPublicReadWrite instead.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
KB.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
The task needs to be interrupted in case of 403, 404, 405 errors.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
MetadataDirectiveCopy copy source object metadata when calling CopyObject.
MetadataDirectiveReplace replace source object metadata when calling CopyObject.
No description provided by the author
No description provided by the author
Deprecated: use enum.PermissionFullControl instead.
Deprecated: use enum.PermissionRead instead.
Deprecated: use enum.PermissionReadAcp instead.
Deprecated: use enum.PermissionWrite instead.
Deprecated: use enum.PermissionWriteAcp instead.
No description provided by the author
No description provided by the author
No description provided by the author
Version tos-go-sdk version.
No description provided by the author

# Variables

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Client TOS Client use NewClient to create a new Client example: client, err := NewClient(endpoint, WithCredentials(credentials), WithRegion(region)) if err != nil { // ..
ClientV2 TOS ClientV2 use NewClientV2 to create a new ClientV2 example: client, err := NewClientV2(endpoint, WithCredentials(credentials), WithRegion(region)) if err != nil { // ..
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
DownloadPartInfo is returned when DownloadEvent occur.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ETagCheckReadCloser checks ETag on read EOF.
No description provided by the author
No description provided by the author
FederationCredentials implements Credentials interfaces with flushing Credential periodically.
FederationToken contains Credential and Credential's expiration time.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ObjectMeta object metadata.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Response.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
PutObjectAclInput AclGrant, AclRules can not set both.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Range represents a range of an object.
ReadCloserWithLimiter warp io.ReadCloser with DataTransferListener.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ServerErrorClassifier classify errors returned by POST method.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
StaticCredentials Credentials with static access-key and secret-key.
StatusCodeClassifier classifies Errors.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
服务端错误定义参考:https://www.volcengine.com/docs/6349/74874.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
UploadPartInfo is returned when UploadEvent occur.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
WithoutSecretKeyCredentials Credentials with static access-key and no secret-key If you don't want to use secret-key directly, but use signed-key, you can use it as: signer := tos.NewSignV4(tos.NewWithoutSecretKeyCredentials(accessKey), region) signer.WithSigningKey(func(*SigningKeyInfo) []byte { return signingKey}) client, err := tos.NewClient(endpoint, tos.WithSigner(signer)) // do something more And you can use tos.WithPerRequestSigner set the 'Signer' for each request.

# Interfaces

No description provided by the author
No description provided by the author
No description provided by the author
Credentials provides Credential.
No description provided by the author
No description provided by the author
FederationTokenProvider provides FederationToken.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Type aliases

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author