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 5, 2020
1 parent ad6e7f2 commit 71378d7
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion remotepin.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,21 @@ const (
)

type Pinning struct {
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 71378d7

Please sign in to comment.