Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/aliyun/aliyun-oss-go-sdk
/ functions
Functions
1,295 in github.com/aliyun/aliyun-oss-go-sdk
⨍
Functions
1,295
◇
Types & classes
328
↓ 400 callers
Function
HandleError
HandleError is the error handling method in the sample code
sample/comm.go:18
↓ 359 callers
Function
RandStr
(n int)
oss/client_test.go:111
↓ 294 callers
Method
Close
Close close http reponse body
oss/model.go:23
↓ 290 callers
Method
DeleteObject
DeleteObject deletes the object. objectKey the object key to delete. error it's nil if no error, otherwise it's an error object.
oss/bucket.go:438
↓ 271 callers
Method
CreateBucket
CreateBucket creates a bucket. bucketName the bucket name, it's globably unique and immutable. The bucket name can only consist of lowercase lette
oss/client.go:131
↓ 246 callers
Function
New
New creates a new client. endpoint the OSS datacenter endpoint such as http://oss-cn-hangzhou.aliyuncs.com . accessKeyId access key Id. accessK
oss/client.go:43
↓ 214 callers
Function
RandLowStr
(n int)
oss/client_test.go:128
↓ 192 callers
Method
PutObject
PutObject creates a new object and it will overwrite the original one if it exists already. objectKey the object key in UTF-8 encoding. The length
oss/bucket.go:38
↓ 180 callers
Method
DeleteBucket
DeleteBucket deletes the bucket. Only empty bucket can be deleted (no object and parts). bucketName the bucket name. error it's nil if no erro
oss/client.go:274
↓ 148 callers
Method
Bucket
Bucket gets the bucket instance. bucketName the bucket name. Bucket the bucket object, when error is nil. error it's nil if no error, other
oss/client.go:110
↓ 131 callers
Function
GetResponseHeader
GetResponseHeader for get response http header
oss/option.go:495
↓ 127 callers
Method
GetObject
GetObject downloads the object. objectKey the object key. options the options for downloading the object. The valid values are: Range, IfModifi
oss/bucket.go:136
↓ 99 callers
Function
Routines
Routines DownloadFile/UploadFile routine count
oss/option.go:480
↓ 98 callers
Method
GetObjectToFile
GetObjectToFile downloads the data to a local file. objectKey the object key to download. filePath the local file to store the object data. opt
oss/bucket.go:152
↓ 92 callers
Method
GetObjectDetailedMeta
GetObjectDetailedMeta gets the object's detailed metadata objectKey object key. options the constraints of the object. Only when the object mee
oss/bucket.go:683
↓ 92 callers
Method
do
Private
oss/client.go:2919
↓ 86 callers
Function
compareFiles
Compare the content between fileL and fileR
oss/bucket_test.go:3259
↓ 83 callers
Method
Error
Error implements interface error
oss/error.go:27
↓ 80 callers
Function
RequestPayer
RequestPayer is an option to set payer who pay for the request
oss/option.go:236
↓ 80 callers
Function
VersionId
VersionId is an option to set versionId parameter
oss/option.go:357
↓ 78 callers
Method
UploadFile
UploadFile is multipart file upload. objectKey the object name. filePath the local file path to upload. partSize the part size in byte. opti
oss/upload.go:27
↓ 76 callers
Function
readBody
(body io.ReadCloser)
oss/bucket_test.go:3388
↓ 72 callers
Method
SignURL
SignURL signs the URL. Users could access the object directly with this URL without getting the AK. objectKey the target object to sign. signURLCo
oss/bucket.go:894
↓ 67 callers
Function
CheckRespCode
CheckRespCode returns UnexpectedStatusError if the given response code is not one of the allowed status codes; otherwise nil.
oss/error.go:65
↓ 66 callers
Function
GetVersionId
(header http.Header)
oss/option.go:678
↓ 66 callers
Method
Size
Size returns the number of bytes sum will return.
oss/crc.go:19
↓ 65 callers
Function
FindOption
(options []Option, param string, defaultVal interface{})
oss/option.go:625
↓ 65 callers
Method
PutObjectFromFile
PutObjectFromFile creates a new object from the local file. objectKey object key. filePath the local file path to upload. options the option
oss/bucket.go:61
↓ 63 callers
Method
ListObjects
ListObjects lists the objects under the current bucket. options it contains all the filters for listing objects. It could specify a prefix filte
oss/bucket.go:582
↓ 61 callers
Method
DownloadFile
DownloadFile downloads files with multipart download. objectKey the object key. filePath the local file to download from objectKey in OSS. part
oss/download.go:29
↓ 61 callers
Function
ForceDeleteBucket
(client *Client, bucketName string, c *C)
oss/client_test.go:132
↓ 60 callers
Function
xmlUnmarshal
(body io.Reader, v interface{})
oss/conn.go:794
↓ 58 callers
Function
RandStr
(n int)
oss/crypto/crypto_bucket_test.go:103
↓ 58 callers
Method
Write
Write (via the embedded io.Writer interface) adds more data to the running hash. It never returns an error.
oss/crc.go:32
↓ 52 callers
Function
setHeader
(key string, value interface{})
oss/option.go:554
↓ 51 callers
Function
Checkpoint
Checkpoint sets the isEnable flag and checkpoint file path for DownloadFile/UploadFile.
oss/option.go:470
↓ 48 callers
Method
SelectObject
SelectObject is the select object api, approve csv and json file. key the object key. selectReq the request data for select object option
oss/select_object.go:88
↓ 46 callers
Method
GetObjectACL
GetObjectACL gets object's ACL objectKey the object to get ACL from. GetObjectACLResult the result object when error is nil. GetObjectACLResul
oss/bucket.go:749
↓ 43 callers
Function
GetRequestId
(header http.Header)
oss/option.go:674
↓ 41 callers
Function
RandLowStr
(n int)
oss/crypto/crypto_bucket_test.go:112
↓ 40 callers
Function
CreateMasterRsa
CreateMasterRsa Create master key interface implemented by rsa matDesc will be converted to json string
oss/crypto/master_rsa_cipher.go:15
↓ 39 callers
Method
AppendObject
AppendObject uploads the data in the way of appending an existing or new object. AppendObject the parameter appendPosition specifies which postion (i
oss/bucket.go:356
↓ 39 callers
Function
CreateAesCtrCipher
CreateAesCtrCipher creates ContentCipherBuilder
oss/crypto/aes_ctr_cipher.go:24
↓ 39 callers
Function
addParam
(key string, value interface{})
oss/option.go:564
↓ 38 callers
Function
Meta
Meta is an option to set Meta header
oss/option.go:94
↓ 38 callers
Function
Prefix
Prefix is an option to set prefix parameter
oss/option.go:332
↓ 38 callers
Function
Progress
Progress set progress listener
oss/option.go:490
↓ 36 callers
Method
CopyFile
CopyFile is multipart copy object srcBucketName source bucket name srcObjectKey source object name destObjectKey target object name in the f
oss/multicopy.go:25
↓ 36 callers
Method
GetBucketInfo
GetBucketInfo gets the bucket information. bucketName the bucket name. GetBucketInfoResult the result object upon successful request. It's only
oss/client.go:1049
↓ 35 callers
Function
Marker
Marker is an option to set marker parameter
oss/option.go:322
↓ 35 callers
Method
do
Private check object name before bucket.do
oss/bucket.go:1264
↓ 34 callers
Function
GetCryptoBucket
GetCryptoBucket create a client encyrption bucket
oss/crypto/crypto_bucket.go:148
↓ 34 callers
Method
InitiateMultipartUpload
InitiateMultipartUpload initializes multipart upload objectKey object name options the object constricts for upload. The valid options are Cach
oss/multipart.go:25
↓ 33 callers
Method
CopyObject
CopyObject copies the object inside the bucket. srcObjectKey the source object to copy. destObjectKey the target object to copy. options opt
oss/bucket.go:242
↓ 32 callers
Method
CompleteMultipartUpload
CompleteMultipartUpload completes the multipart upload. imur the return value of InitiateMultipartUpload. parts the array of return value of Up
oss/multipart.go:197
↓ 32 callers
Function
newProgressEvent
-------------------- Private --------------------
oss/progress.go:36
↓ 32 callers
Function
publishProgress
publishProgress
oss/progress.go:45
↓ 32 callers
Function
verifyLifecycleRules
ValidateLifecycleRule Determine if a lifecycle rule is valid, if it is invalid, it will return an error.
oss/type.go:170
↓ 31 callers
Function
ForceDeleteBucket
(client *oss.Client, bucketName string, c *C)
oss/crypto/crypto_bucket_test.go:139
↓ 31 callers
Method
ListMultipartUploads
ListMultipartUploads lists all ongoing multipart upload tasks options listObject's filter. Prefix specifies the returned object's prefix; KeyMarke
oss/multipart.go:298
↓ 30 callers
Function
GetRawParams
(options []Option)
oss/option.go:602
↓ 29 callers
Function
KeyMarker
KeyMarker is an option to set key-marker parameter
oss/option.go:347
↓ 29 callers
Method
SetBucketLifecycle
SetBucketLifecycle sets the bucket's lifecycle. For more information, checks out following link: https://www.alibabacloud.com/help/en/object-storage-
oss/client.go:360
↓ 28 callers
Method
AbortMultipartUpload
AbortMultipartUpload aborts the multipart upload. imur the return value of InitiateMultipartUpload. error it's nil if the operation succeeds,
oss/multipart.go:248
↓ 27 callers
Function
ObjectACL
ObjectACL is an option to set X-Oss-Object-Acl header
oss/option.go:206
↓ 27 callers
Method
Seek
(offset int64, whence int)
oss/utils_test.go:401
↓ 27 callers
Method
SetBucketVersioning
SetBucketVersioning set bucket versioning:Enabled、Suspended bucketName the bucket name. error it's nil if no error, otherwise it's an error obje
oss/client.go:1081
↓ 27 callers
Method
String
()
oss/crypto/crypto_type.go:55
↓ 27 callers
Method
getURL
getURL gets URL
oss/conn.go:929
↓ 26 callers
Method
GetConfig
()
oss/bucket.go:1300
↓ 26 callers
Function
removeTempFiles
(path string, prefix string)
oss/bucket_test.go:3364
↓ 25 callers
Method
PutObjectWithURL
PutObjectWithURL uploads an object with the URL. If the object exists, it will be overwritten. PutObjectWithURL It will not generate minetype accordin
oss/bucket.go:930
↓ 25 callers
Method
Sum
Sum returns hash value.
oss/crc.go:41
↓ 22 callers
Method
CreateLiveChannel
CreateLiveChannel create a live-channel channelName the name of the channel config configuration of the channel CreateLiveChannelResult
oss/livechannel.go:22
↓ 22 callers
Function
UploadIDMarker
UploadIDMarker is an option to set upload-id-marker parameter
oss/option.go:372
↓ 21 callers
Method
DeleteObjects
DeleteObjects deletes multiple objects. objectKeys the object keys to delete. options the options for deleting objects. Supported option is D
oss/bucket.go:457
↓ 21 callers
Method
GetObjectToFileWithURL
GetObjectToFileWithURL downloads the object into a local file with the signed URL. signedURL the signed URL filePath the local file path to dow
oss/bucket.go:1018
↓ 21 callers
Function
GetTestBucket
GetTestBucket creates the test bucket
sample/comm.go:24
↓ 21 callers
Method
Init
Init parses endpoint
oss/conn.go:880
↓ 21 callers
Method
ListBuckets
ListBuckets lists buckets of the current account under the given endpoint, with optional filters. options specifies the filters such as Prefix, Ma
oss/client.go:201
↓ 21 callers
Function
NormalizedRange
NormalizedRange is an option to set Range header, such as 1024-2048 or 1024- or -2048
oss/option.go:104
↓ 20 callers
Method
GetBucketACL
GetBucketACL gets the bucket ACL. bucketName the bucket name. GetBucketAclResponse the result object, and it's only valid when error is nil. e
oss/client.go:335
↓ 20 callers
Method
GetObject
GetObject downloads the object from oss If the object is encrypted, sdk decrypt it automaticly
oss/crypto/crypto_bucket.go:206
↓ 20 callers
Method
GetObjectWithURL
GetObjectWithURL downloads the object and returns the reader instance, with the signed URL. signedURL the signed URL. options options for down
oss/bucket.go:1003
↓ 19 callers
Function
GetFileMD5
(filePath string)
oss/crypto/crypto_bucket_test.go:116
↓ 18 callers
Function
ContentType
ContentType is an option to set Content-Type header
oss/option.go:54
↓ 18 callers
Method
GetBucketLifecycle
GetBucketLifecycle gets the bucket's lifecycle settings. bucketName the bucket name. GetBucketLifecycleResponse the result object upon success
oss/client.go:431
↓ 18 callers
Method
IsObjectExist
IsObjectExist checks if the object exists. bool flag of object's existence (true:exists; false:non-exist) when error is nil. error it's nil if
oss/bucket.go:546
↓ 18 callers
Method
LimitUploadSpeed
LimitUploadSpeed uploadSpeed:KB/s, 0 is unlimited,default is 0
oss/conf.go:185
↓ 18 callers
Function
Range
Range is an option to set Range header, [start, end]
oss/option.go:99
↓ 18 callers
Function
ReadBody
(body io.ReadCloser)
oss/crypto/crypto_bucket_test.go:229
↓ 17 callers
Method
DeleteLiveChannel
DeleteLiveChannel Delete the live-channel. When a client trying to stream the live-channel, the operation will fail. it will only delete the live-
oss/livechannel.go:223
↓ 17 callers
Method
GetSecurityToken
()
oss/conf.go:44
↓ 17 callers
Function
MaxKeys
MaxKeys is an option to set maxkeys parameter
oss/option.go:327
↓ 17 callers
Function
SplitFileByPartNum
SplitFileByPartNum splits big file into parts by the num of parts. Split the file with specified parts count, returns the split result when error is n
oss/utils.go:209
↓ 16 callers
Method
Close
Close lets the CryptoEncrypter satisfy io.ReadCloser interface
oss/crypto/cipher.go:31
↓ 16 callers
Function
CreateFile
(fileName, content string, c *C)
oss/client_test.go:120
↓ 16 callers
Function
Expires
Expires is an option to set Expires header
oss/option.go:89
↓ 16 callers
Function
GetReaderLen
* func GetReaderLen(reader io.Reader) (int64, error) { var contentLength int64 var err error switch v := reader.(type) { case *bytes.Buffer:
oss/utils.go:493
↓ 16 callers
Method
InitiateMultipartUpload
InitiateMultipartUpload initializes multipart upload for client encryption cryptoContext.PartSize and cryptoContext.DataSize are input parameter crypt
oss/crypto/crypto_multipart.go:32
next →
1–100 of 1,295, ranked by callers