master
go 33 lines 835 Bytes
Raw
1 package config
2
3 var (
4 RemoteServicesPath = "Pinning.RemoteServices"
5 PinningConcealSelector = []string{"Pinning", "RemoteServices", "*", "API", "Key"}
6 )
7
8 type Pinning struct {
9 RemoteServices map[string]RemotePinningService
10 }
11
12 type RemotePinningService struct {
13 API RemotePinningServiceAPI
14 Policies RemotePinningServicePolicies
15 }
16
17 type RemotePinningServiceAPI struct {
18 Endpoint string
19 Key string
20 }
21
22 type RemotePinningServicePolicies struct {
23 MFS RemotePinningServiceMFSPolicy
24 }
25
26 type RemotePinningServiceMFSPolicy struct {
27 // Enable enables watching for changes in MFS and re-pinning the MFS root cid whenever a change occurs.
28 Enable bool
29 // Name is the pin name for MFS.
30 PinName string
31 // RepinInterval determines the repin interval when the policy is enabled. In ns, us, ms, s, m, h.
32 RepinInterval string
33 }