generated from beyondstorage/go-service-example
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathservice.toml
114 lines (80 loc) · 3.48 KB
/
service.toml
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
name = "qingstor"
[namespace.service.new]
required = ["credential"]
optional = ["service_features", "default_service_pairs", "endpoint", "http_client_options"]
[namespace.service.op.create]
required = ["location"]
[namespace.service.op.delete]
optional = ["location"]
[namespace.service.op.get]
optional = ["location"]
[namespace.service.op.list]
optional = ["location"]
[namespace.storage]
features = ["virtual_dir", "virtual_link"]
implement = ["appender", "copier", "direr", "fetcher", "linker", "mover", "multiparter", "reacher", "storage_http_signer"]
[namespace.storage.new]
required = ["name"]
optional = ["storage_features", "default_storage_pairs", "disable_uri_cleaning", "http_client_options", "location", "work_dir"]
[namespace.storage.op.create]
optional = ["multipart_id", "object_mode"]
[namespace.storage.op.create_dir]
optional = ["storage_class"]
[namespace.storage.op.delete]
optional = ["multipart_id", "object_mode"]
[namespace.storage.op.stat]
optional = ["multipart_id", "object_mode"]
[namespace.storage.op.list]
optional = ["list_mode"]
[namespace.storage.op.reach]
required = ["expire"]
[namespace.storage.op.read]
optional = ["offset", "io_callback", "size", "encryption_customer_algorithm", "encryption_customer_key"]
[namespace.storage.op.write]
optional = ["content_md5", "content_type", "io_callback", "storage_class", "encryption_customer_algorithm", "encryption_customer_key"]
[namespace.storage.op.create_append]
optional = ["content_type", "storage_class"]
[namespace.storage.op.write_append]
optional = ["content_md5"]
[namespace.storage.op.copy]
optional = ["encryption_customer_algorithm", "encryption_customer_key", "copy_source_encryption_customer_algorithm", "copy_source_encryption_customer_key"]
[namespace.storage.op.create_multipart]
optional = ["encryption_customer_algorithm", "encryption_customer_key"]
[namespace.storage.op.write_multipart]
optional = ["encryption_customer_algorithm", "encryption_customer_key", "io_callback"]
[namespace.storage.op.query_sign_http_read]
optional = ["offset", "encryption_customer_algorithm", "encryption_customer_key", "size"]
[namespace.storage.op.query_sign_http_write]
optional = ["content_md5", "content_type", "encryption_customer_algorithm", "encryption_customer_key", "storage_class"]
[pairs.service_features]
type = "ServiceFeatures"
description = "set service features"
[pairs.storage_features]
type = "StorageFeatures"
description = "set storage features"
[pairs.encryption_customer_algorithm]
type = "string"
description = "specifies the encryption algorithm. Only AES256 is supported now."
[pairs.encryption_customer_key]
type = "[]byte"
description = "is the customer-provided encryption key. For AES256 keys, the plaintext must be 32 bytes long."
[pairs.copy_source_encryption_customer_algorithm]
type = "string"
description = "is the encryption algorithm for the source object. Only AES256 is supported now."
[pairs.copy_source_encryption_customer_key]
type = "[]byte"
description = "is the customer-provided encryption key for the source object. For AES256 keys, the plaintext must be 32 bytes long."
[pairs.disable_uri_cleaning]
type = "bool"
[pairs.storage_class]
type = "string"
[pairs.default_service_pairs]
type = "DefaultServicePairs"
description = "set default pairs for service actions"
[pairs.default_storage_pairs]
type = "DefaultStoragePairs"
description = "set default pairs for storager actions"
[infos.object.meta.storage-class]
type = "string"
[infos.object.meta.encryption_customer_algorithm]
type = "string"