pinner

package module
v0.1.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 25, 2022 License: MIT Imports: 6 Imported by: 1

README

ipfs-pinner

  • go client for IPFS pinning service api
  • extended support for custom file upload endpoints provided by pinata & web3.storage
  • car file generation and lightweight deterministic CID generation on client side (using cars).
generate go http client go bindings via openapi
  • use ./generate_gobindings.sh to generate the golang bindings (for pinning services of pinata and web3.storage).
  • There are some fixes you would need to do (missing braces etc.)

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PinnerNode

type PinnerNode interface {
	CarExporter() car.CarExporterAPI
	PinService() pinclient.PinServiceAPI
	UnixfsService() dag.UnixfsAPI
}

func NewPinnerNode

func NewPinnerNode(req PinnerNodeCreateRequest) PinnerNode

type PinnerNodeCreateRequest

type PinnerNodeCreateRequest struct {
	// contains filtered or unexported fields
}

func NewNodeRequest

func NewNodeRequest(clientRequest pinclient.ClientCreateRequest) *PinnerNodeCreateRequest

func (*PinnerNodeCreateRequest) CidComputeOnly

func (req *PinnerNodeCreateRequest) CidComputeOnly(cidComputeOnly bool) *PinnerNodeCreateRequest

If only cid computation is required from the node (and no persistence of the ipfs dags to filesystem)

func (*PinnerNodeCreateRequest) CidVersion

func (req *PinnerNodeCreateRequest) CidVersion(version int) *PinnerNodeCreateRequest

Directories

Path Synopsis
A car exporter based on go-car module
A car exporter based on go-car module
contains client to register and interact with a IPFS remote pinning service + with the custom endpoints for file/car upload for supported service TODO: might want to separate out the custom endpoints
contains client to register and interact with a IPFS remote pinning service + with the custom endpoints for file/car upload for supported service TODO: might want to separate out the custom endpoints

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL