ipfs

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IPFSNode

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

func SpawnEphemeralNode

func SpawnEphemeralNode(ctx context.Context) (*IPFSNode, error)

Spawns a node to be used just for this run (i.e. creates a tmp repo)

func SpawnNode

func SpawnNode(ctx context.Context) (*IPFSNode, error)

Spawns a node on the default repo location, if the repo exists

func (*IPFSNode) AddFile

func (n *IPFSNode) AddFile(ctx context.Context, inputFilePath string) (string, error)

Jump to

Keyboard shortcuts

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