ipfs

package
v0.0.0-...-93e01a0 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// IPFSConfAPISubconf is the http configuration to connect to the API endpoint of IPFS
	IPFSConfAPISubconf = "api"
	// IPFSConfGatewaySubconf is the http configuration to connect to the Gateway endpoint of IPFS
	IPFSConfGatewaySubconf = "gateway"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type IPFS

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

func (*IPFS) Capabilities

func (i *IPFS) Capabilities() *publicstorage.Capabilities

func (*IPFS) Init

func (i *IPFS) Init(ctx context.Context, prefix config.Prefix, callbacks publicstorage.Callbacks) error

func (*IPFS) InitPrefix

func (i *IPFS) InitPrefix(prefix config.Prefix)

func (*IPFS) Name

func (i *IPFS) Name() string

func (*IPFS) PublishData

func (i *IPFS) PublishData(ctx context.Context, data io.Reader) (string, error)

func (*IPFS) RetrieveData

func (i *IPFS) RetrieveData(ctx context.Context, payloadRef string) (data io.ReadCloser, err error)

Jump to

Keyboard shortcuts

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