forked from ipfs/go-ipfs-config
-
Notifications
You must be signed in to change notification settings - Fork 0
/
remotepin.go
33 lines (27 loc) · 835 Bytes
/
remotepin.go
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
package config
var (
RemoteServicesPath = "Pinning.RemoteServices"
PinningConcealSelector = []string{"Pinning", "RemoteServices", "*", "API", "Key"}
)
type Pinning struct {
RemoteServices map[string]RemotePinningService
}
type RemotePinningService struct {
API RemotePinningServiceAPI
Policies RemotePinningServicePolicies
}
type RemotePinningServiceAPI struct {
Endpoint string
Key string
}
type RemotePinningServicePolicies struct {
MFS RemotePinningServiceMFSPolicy
}
type RemotePinningServiceMFSPolicy struct {
// Enable enables watching for changes in MFS and re-pinning the MFS root cid whenever a change occurs.
Enable bool
// Name is the pin name for MFS.
PinName string
// RepinInterval determines the repin interval when the policy is enabled. In ns, us, ms, s, m, h.
RepinInterval string
}