https://github.com/ipfs/go-ipfs
Raw File
Tip revision: b8c47250026a318d9b1496d7dcea6284355db140 authored by Henrique Dias on 09 May 2023, 09:47:52 UTC
Merge pull request #9804 from ipfs/release-v0.20.0
Tip revision: b8c4725
remotepin.go
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
}
back to top