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

Commit

Permalink
add support for pinning mfs
Browse files Browse the repository at this point in the history
  • Loading branch information
aschmahmann committed Dec 9, 2020
1 parent 1a8f582 commit 3fdd66a
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions remotepin.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,21 @@ const (
)

type Pinning struct {
RemoteServices map[string]RemotePinningService
MFSRepinInterval string // in ns, us, ms, s, m, h
RemoteServices map[string]RemotePinningService
}

type RemotePinningService struct {
Api RemotePinningServiceApi
Api RemotePinningServiceApi
Policies RemotePinningServicePolicies
}

type RemotePinningServiceApi struct {
Endpoint string
Key string
}

type RemotePinningServicePolicies struct {
// PinMFS enables watching for changes in MFS and re-pinning the MFS root cid whenever a change occurs.
PinMFS *bool
}

0 comments on commit 3fdd66a

Please sign in to comment.