Skip to main content

qingstor

QingStor Object Storage

Configure#

Servicer#

Available Pairs#

NameRequiredComments
credentialYonly support hmac protocol
endpointY

Examples#

service, err := qingstor.NewServicer(
pairs.WithCredential("hmac:access_key_id:secret_access_key"),
pairs.WithEndpoint("https:qingstor.com"),
)
if err != nil {
log.Fatalf("qingstor new service: %v", err)
}

Storager#

Available Pairs#

NameRequiredComments
nameYbucket name
work_dirNwork dir

Examples#

service, err := qingstor.NewStorager(
pairs.WithCredential("hmac:access_key_id:secret_access_key"),
pairs.WithEndpoint("https:qingstor.com"),
pairs.WithName("bucket_name"),
pairs.WithWorkDir("/path/to/workdir"),
)
if err != nil {
log.Fatalf("qingstor new service: %v", err)
}

Pairs#

Server-Side Encryption (SSE)#

Encrypt Object#

NameComments
sse_customer_algorithmthe encryption algorithm. Only AES256 is supported now.
sse_customer_keythe customer-provided encryption key. For AES256 keys, the plaintext must be 32 bytes long. The key must be Base64 encoded.
sse_customer_key_md5the MD5 of the customer-provided key. The key MD5 must be Base64 encoded.
Supported Operations#

Copy Encrypted Object#

NameComments
sse_copy_source_customer_algorithmthe encryption algorithm for the source object. Only AES256 is supported now.
sse_copy_source_customer_keythe customer-provided encryption key for the source object. For AES256 keys, the plaintext must be 32 bytes long. The key must be Base64 encoded.
sse_copy_source_customer_key_md5the MD5 of the customer-provided key for the source object. The key MD5 must be Base64 encoded.
Supported Operations#