Merge pull request #514 from denverdino/master
Storage Driver for Aliyun OSS
This commit is contained in:
commit
3a414deddb
26 changed files with 3982 additions and 1 deletions
31
docs/storage-drivers/oss.md
Executable file
31
docs/storage-drivers/oss.md
Executable file
|
@ -0,0 +1,31 @@
|
|||
<!--GITHUB
|
||||
page_title: Aliyun OSS storage driver
|
||||
page_description: Explains how to use the Aliyun OSS storage drivers
|
||||
page_keywords: registry, service, driver, images, storage, OSS, aliyun
|
||||
IGNORES-->
|
||||
|
||||
# Aliyun OSS storage driver
|
||||
|
||||
An implementation of the `storagedriver.StorageDriver` interface which uses [Aliyun OSS](http://www.aliyun.com/product/oss) for object storage.
|
||||
|
||||
## Parameters
|
||||
|
||||
* `accesskeyid`: Your access key ID.
|
||||
|
||||
* `accesskeysecret`: Your access key secret.
|
||||
|
||||
* `region`: The name of the OSS region in which you would like to store objects (for example `oss-cn-beijing`). For a list of regions, you can look at <http://docs.aliyun.com/#/oss/product-documentation/domain-region>
|
||||
|
||||
* `endpoint`: (optional) By default, the endpoint shoulb be `<bucket>.<region>.aliyuncs.com` or `<bucket>.<region>-internal.aliyuncs.com` (when internal=true). You can change the default endpoint via changing this value.
|
||||
|
||||
* `internal`: (optional) Using internal endpoint or the public endpoint for OSS access. The default is false. For a list of regions, you can look at <http://docs.aliyun.com/#/oss/product-documentation/domain-region>
|
||||
|
||||
* `bucket`: The name of your OSS bucket where you wish to store objects (needs to already be created prior to driver initialization).
|
||||
|
||||
* `encrypt`: (optional) Whether you would like your data encrypted on the server side (defaults to false if not specified).
|
||||
|
||||
* `secure`: (optional) Whether you would like to transfer data to the bucket over ssl or not. Defaults to false if not specified.
|
||||
|
||||
* `chunksize`: (optional) The default part size for multipart uploads (performed by WriteStream) to OSS. The default is 10 MB. Keep in mind that the minimum part size for OSS is 5MB. You might experience better performance for larger chunk sizes depending on the speed of your connection to OSS.
|
||||
|
||||
* `rootdirectory`: (optional) The root directory tree in which all registry files will be stored. Defaults to the empty string (bucket root).
|
|
@ -24,6 +24,7 @@ This storage driver package comes bundled with several drivers:
|
|||
- [azure](storage-drivers/azure.md): A driver storing objects in [Microsoft Azure Blob Storage](http://azure.microsoft.com/en-us/services/storage/).
|
||||
- [rados](storage-drivers/rados.md): A driver storing objects in a [Ceph Object Storage](http://ceph.com/docs/master/rados/) pool.
|
||||
- [swift](storage-drivers/swift.md): A driver storing objects in [Openstack Swift](http://docs.openstack.org/developer/swift/).
|
||||
- [oss](storage-drivers/oss.md): A driver storing objects in [Aliyun OSS](http://www.aliyun.com/product/oss).
|
||||
|
||||
## Storage Driver API
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue