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

Commit

Permalink
add remote pinning services config
Browse files Browse the repository at this point in the history
  • Loading branch information
aschmahmann committed Dec 5, 2020
1 parent 50e4327 commit 3638f0a
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions config.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ type Config struct {
Reprovider Reprovider
Experimental Experiments
Plugins Plugins
Pinning Pinning
}

const (
Expand Down
20 changes: 20 additions & 0 deletions remotepin.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
package config

const (
PinningTag = "Pinning"
RemoteServicesTag = "RemoteServices"
RemoteServicesSelector = PinningTag + "." + RemoteServicesTag
)

type Pinning struct {
RemoteServices map[string]RemotePinningService
}

type RemotePinningService struct {
Api RemotePinningServiceApi
}

type RemotePinningServiceApi struct {
Endpoint string
Key string
}

0 comments on commit 3638f0a

Please sign in to comment.