This repository has been archived by the owner on Oct 22, 2021. It is now read-only.
generated from beyondstorage/go-service-example
-
Notifications
You must be signed in to change notification settings - Fork 0
/
service.toml
62 lines (45 loc) · 1.61 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
name = "ipfs"
[namespace.storage]
implement = ["copier", "mover", "direr", "storage_http_signer"]
[namespace.storage.new]
required = ["endpoint", "gateway"]
optional = ["storage_features", "default_storage_pairs", "work_dir"]
[namespace.storage.op.create]
optional = ["object_mode"]
[namespace.storage.op.list]
optional = ["list_mode"]
[namespace.storage.op.read]
optional = ["offset", "io_callback", "size"]
[namespace.storage.op.write]
optional = ["content_md5", "content_type", "io_callback"]
[namespace.storage.op.delete]
optional = ["object_mode"]
[namespace.storage.op.stat]
optional = ["object_mode"]
[pairs.gateway]
type = "string"
description = "set storage gateway, for http(s) request purpose"
[pairs.storage_features]
type = "StorageFeatures"
description = "set storage features"
[pairs.default_storage_pairs]
type = "DefaultStoragePairs"
description = "set default pairs for storager actions"
[infos.object.meta.hash]
type = "string"
description = "the CID of the file or directory"
[infos.object.meta.blocks]
type = "int"
description = "the number of files in the directory or the number of blocks that make up the file"
[infos.object.meta.cumulative_size]
type = "uint64"
description = "the size of the DAGNodes making up the file in Bytes, or the sum of the sizes of all files in the directory"
[infos.object.meta.local]
type = "bool"
description = "whether the file`s dags is fully present locally"
[infos.object.meta.with_locality]
type = "bool"
description = "whether the locality information is present"
[infos.object.meta.size_local]
type = "uint64"
description = "the cumulative size of the data present locally"