Skip to content
Snippets Groups Projects
Commit fd77cf43 authored by Shawn Chen's avatar Shawn Chen
Browse files

change package name & format document


Signed-off-by: default avatarShawn Chen <chen8132@gmail.com>
parent 3390f32a
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -719,12 +719,12 @@ Then value of ipfilteredby:
 
`alicdn` storage middleware allows the registry to serve layers via a content delivery network provided by Alibaba Cloud. Alicdn requires the OSS storage driver.
 
| Parameter | Required | Description |
|-----------|----------|-------------------------------------------------------|
| `baseurl` | yes | The `SCHEME://HOST` at which Alicdn is served. |
| `authtype` | yes | The URL authentication type for Alicdn, which should be `a`, `b` or `c`. |
| `privatekey` | yes | The URL authentication key for Alicdn. |
| `duration` | no | An integer and unit for the duration of the Alicdn session. Valid time units are `ns`, `us` (or `µs`), `ms`, `s`, `m`, or `h`.|
| Parameter | Required | Description |
|--------------|----------|-------------------------------------------------------------------------|
| `baseurl` | yes | The `SCHEME://HOST` at which Alicdn is served. |
| `authtype` | yes | The URL authentication type for Alicdn, which should be `a`, `b` or `c`. See the [Authentication configuration](https://www.alibabacloud.com/help/doc-detail/85117.htm).|
| `privatekey` | yes | The URL authentication key for Alicdn. |
| `duration` | no | An integer and unit for the duration of the Alicdn session. Valid time units are `ns`, `us` (or `µs`), `ms`, `s`, `m`, or `h`.|
 
### `redirect`
 
Loading
Loading
package middleware
package alicdn
 
import (
"context"
Loading
Loading
@@ -27,7 +27,7 @@ type aliCDNStorageMiddleware struct {
var _ storagedriver.StorageDriver = &aliCDNStorageMiddleware{}
 
// newAliCDNStorageMiddleware constructs and returns a new AliCDN
// layerHandler implementation.
// StorageDriver implementation.
// Required options: baseurl, authtype, privatekey
// Optional options: duration
func newAliCDNStorageMiddleware(storageDriver storagedriver.StorageDriver, options map[string]interface{}) (storagedriver.StorageDriver, error) {
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment