shell

package module
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2021 License: MIT Imports: 6 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IpfsShell

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

func NewIpfsShell

func NewIpfsShell(url string) (*IpfsShell, error)

func (*IpfsShell) Fetch

func (shell *IpfsShell) Fetch(hash, path string) error

func (*IpfsShell) FetchAndPin

func (shell *IpfsShell) FetchAndPin(hash, path string) error

func (*IpfsShell) Get

func (shell *IpfsShell) Get(hash, outdir string) error

func (*IpfsShell) IsIpfsDir

func (shell *IpfsShell) IsIpfsDir(path string) (bool, error)

func (*IpfsShell) IsUp

func (shell *IpfsShell) IsUp() bool

func (*IpfsShell) List

func (shell *IpfsShell) List(path string) ([]*ipfs.LsLink, error)

func (*IpfsShell) Pin

func (shell *IpfsShell) Pin(path string) error

func (*IpfsShell) Put

func (shell *IpfsShell) Put(path string) (string, error)

func (*IpfsShell) SwarmConnect added in v0.0.3

func (shell *IpfsShell) SwarmConnect(ctx context.Context, addr ...string) error

Jump to

Keyboard shortcuts

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