This topic describes the methods available in the Object Storage Service (OSS) SDK for Go and provides usage examples.
Region operations
Function name | Scenario/Code example |
Bucket operations
Category | Function name | Scenario/Code example |
Basic operations | ||
Get the storage capacity of a bucket and the number of objects in the bucket. | ||
Retention policy (WORM) | ||
Extend the retention period of objects in a bucket for which a retention policy is locked. | ||
Access control (ACL) | ||
Lifecycle | ||
Transfer acceleration | ||
Versioning | ||
Data replication | ||
Enable or disable replication time control (RTC) for existing cross-region replication rules. | ||
View the regions where destination buckets for replication are located. | ||
Stop data replication tasks and delete the replication configuration of a bucket. | ||
Authorization policy | ||
Bucket inventory | ||
Log storage | ||
Static website | ||
Hotlink protection | ||
Tags | ||
Server-side encryption | ||
Pay by requester | ||
Cross-origin resource sharing (CORS) | Set cross-origin resource sharing (CORS) rules for a bucket. | |
Disable the CORS feature for a bucket and delete all CORS rules. | ||
Access tracking | ||
Data indexing | ||
Resource group | ||
Custom domain name (CNAME) | Create a CNAME token to verify the ownership of a domain name. | |
Image style | ||
Object operations
Category | Function name | Code example |
Basic operations | ||
Include callback parameters in a request to OSS to implement callbacks. | ||
Execute an SQL statement on an object and return the result. | ||
Manage folders | ||
Resumable upload | ||
Multipart upload | ||
List all successfully uploaded parts that belong to a specified upload ID. | ||
Access control (ACL) | ||
Symbolic link | ||
Tagging | ||
Image processing |
LiveChannel operations
Category | Function name | Scenario/Code example |
Manage LiveChannel | ||