diff --git a/modules/initipfs/main.go b/modules/initipfs/main.go index e62468b..9773a43 100644 --- a/modules/initipfs/main.go +++ b/modules/initipfs/main.go @@ -25,11 +25,118 @@ type ConfigYAML struct { } type IPFSConfig struct { + API struct { + HTTPHeaders map[string]interface{} `json:"HTTPHeaders"` + } `json:"API"` + Addresses struct { + API string `json:"API"` + Announce []string `json:"Announce"` + AppendAnnounce []string `json:"AppendAnnounce"` + Gateway string `json:"Gateway"` + NoAnnounce []string `json:"NoAnnounce"` + Swarm []string `json:"Swarm"` + } `json:"Addresses"` + AutoNAT struct{} `json:"AutoNAT"` + Bootstrap []string `json:"Bootstrap"` + DNS struct { + Resolvers map[string]interface{} `json:"Resolvers"` + } `json:"DNS"` + Datastore struct { + BloomFilterSize int `json:"BloomFilterSize"` + GCPeriod string `json:"GCPeriod"` + HashOnRead bool `json:"HashOnRead"` + Spec struct { + Child struct { + Path string `json:"path"` + SyncWrites bool `json:"syncWrites"` + Truncate bool `json:"truncate"` + Type string `json:"type"` + } `json:"child"` + Prefix string `json:"prefix"` + Type string `json:"type"` + } `json:"Spec"` + StorageGCWatermark int `json:"StorageGCWatermark"` + StorageMax string `json:"StorageMax"` + } `json:"Datastore"` + Discovery struct { + MDNS struct { + Enabled bool `json:"Enabled"` + } `json:"MDNS"` + } `json:"Discovery"` + Experimental struct { + FilestoreEnabled bool `json:"FilestoreEnabled"` + Libp2pStreamMounting bool `json:"Libp2pStreamMounting"` + OptimisticProvide bool `json:"OptimisticProvide"` + OptimisticProvideJobsPoolSize int `json:"OptimisticProvideJobsPoolSize"` + P2pHttpProxy bool `json:"P2pHttpProxy"` + StrategicProviding bool `json:"StrategicProviding"` + UrlstoreEnabled bool `json:"UrlstoreEnabled"` + } `json:"Experimental"` + Gateway struct { + DeserializedResponses interface{} `json:"DeserializedResponses"` + DisableHTMLErrors interface{} `json:"DisableHTMLErrors"` + ExposeRoutingAPI interface{} `json:"ExposeRoutingAPI"` + HTTPHeaders map[string]interface{} `json:"HTTPHeaders"` + NoDNSLink bool `json:"NoDNSLink"` + NoFetch bool `json:"NoFetch"` + PublicGateways interface{} `json:"PublicGateways"` + RootRedirect string `json:"RootRedirect"` + } `json:"Gateway"` Identity struct { PeerID string `json:"PeerID"` PrivKey string `json:"PrivKey"` } `json:"Identity"` - Bootstrap []string `json:"Bootstrap"` + Internal struct{} `json:"Internal"` + Ipns struct { + RecordLifetime string `json:"RecordLifetime"` + RepublishPeriod string `json:"RepublishPeriod"` + ResolveCacheSize int `json:"ResolveCacheSize"` + } `json:"Ipns"` + Migration struct { + DownloadSources []string `json:"DownloadSources"` + Keep string `json:"Keep"` + } `json:"Migration"` + Mounts struct { + FuseAllowOther bool `json:"FuseAllowOther"` + IPFS string `json:"IPFS"` + IPNS string `json:"IPNS"` + } `json:"Mounts"` + Peering struct { + Peers interface{} `json:"Peers"` + } `json:"Peering"` + Pinning struct { + RemoteServices map[string]interface{} `json:"RemoteServices"` + } `json:"Pinning"` + Plugins struct { + Plugins interface{} `json:"Plugins"` + } `json:"Plugins"` + Provider struct { + Strategy string `json:"Strategy"` + } `json:"Provider"` + Pubsub struct { + DisableSigning bool `json:"DisableSigning"` + Router string `json:"Router"` + } `json:"Pubsub"` + Reprovider struct{} `json:"Reprovider"` + Routing struct { + AcceleratedDHTClient bool `json:"AcceleratedDHTClient"` + Methods interface{} `json:"Methods"` + Routers interface{} `json:"Routers"` + } `json:"Routing"` + Swarm struct { + AddrFilters interface{} `json:"AddrFilters"` + ConnMgr struct{} `json:"ConnMgr"` + DisableBandwidthMetrics bool `json:"DisableBandwidthMetrics"` + DisableNatPortMap bool `json:"DisableNatPortMap"` + RelayClient struct{} `json:"RelayClient"` + RelayService struct{} `json:"RelayService"` + ResourceMgr struct{} `json:"ResourceMgr"` + Transports struct { + Multiplexers map[string]interface{} `json:"Multiplexers"` + Network map[string]interface{} `json:"Network"` + Security map[string]interface{} `json:"Security"` + } `json:"Transports"` + } `json:"Swarm"` } type ApiResponse struct {