-
Notifications
You must be signed in to change notification settings - Fork 1
/
publish.yaml
44 lines (44 loc) · 1.48 KB
/
publish.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# https://github.com/Serverless-Devs/Serverless-Devs/blob/master/spec/zh/0.0.2/serverless_package_model/package_model.md#%E6%8F%92%E4%BB%B6%E6%A8%A1%E5%9E%8B%E5%85%83%E6%95%B0%E6%8D%AE
Type: Plugin
Name: refresh-cdn-cache
Provider:
- 阿里云
Version: 0.0.18
Description: 刷新 CDN 缓存.
HomePage: https://github.com/DevDengChao/refresh-cdn-cache
Tags: #标签详情
- Serverless Devs
- 核心模块
Category: 其它
Parameters:
type: object
required:
- paths
properties:
paths:
title: 待刷新缓存的路径.
description: 取值可以是单个字符串或者是字符串数组
example: https://example.com/
oneOf:
- type: string
- type: array
item: string
cdn:
type: string
title: CDN 服务供应商
description: 当未提供此参数时将根据 service.component 的取值来推断对应的 CDN 服务供应商.
enum:
- aliyun
- alibaba
access:
type: string
title: '@serverless-devs/s 配置别名'
description: 当提供此参数时, refresh-cdn-cache 插件将尝试加载对应的密钥. 当未提供此参数时将使用环境变量中定义的密钥.
accessKeyId:
type: string
description: 当 cdn 的取值为 `aliyun`, `alibaba` 时需要填写该字段.
title: 访问密钥 ID
accessKeySecret:
type: string
description: 当 cdn 的取值为 `aliyun`, `alibaba` 时需要填写该字段.
title: 访问密钥密码