Skip to content
This repository was archived by the owner on Mar 9, 2022. It is now read-only.

Commit 71378d7

Browse files
committed
add support for pinning mfs
1 parent ad6e7f2 commit 71378d7

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

remotepin.go

+8-1
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,21 @@ const (
77
)
88

99
type Pinning struct {
10+
MFSRepinInterval string // in ns, us, ms, s, m, h
1011
RemoteServices map[string]RemotePinningService
1112
}
1213

1314
type RemotePinningService struct {
14-
Api RemotePinningServiceApi
15+
Api RemotePinningServiceApi
16+
Policies RemotePinningServicePolicies
1517
}
1618

1719
type RemotePinningServiceApi struct {
1820
Endpoint string
1921
Key string
2022
}
23+
24+
type RemotePinningServicePolicies struct {
25+
// PinMFS enables watching for changes in MFS and re-pinning the MFS root cid whenever a change occurs.
26+
PinMFS *bool
27+
}

0 commit comments

Comments
 (0)