ipfs

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2019 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConstructDir

func ConstructDir(duras []string) files.Directory

func RawContentHash

func RawContentHash(data string) links.Cid

func UploadDurasToIpfsCmd

func UploadDurasToIpfsCmd() *cobra.Command

Types

type Client

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

func Open

func Open() Client

func (Client) AddDirectory

func (c Client) AddDirectory(mfr *files.MultiFileReader) (string, error)

returns root hash of added dir/file

func (Client) AddDirectoryWithRetryOnError

func (c Client) AddDirectoryWithRetryOnError(mfr *files.MultiFileReader) string

func (Client) AddFileToDir

func (c Client) AddFileToDir(fileHash string, dirPath string) error

func (Client) AddFileToDirWithRetryOnError

func (c Client) AddFileToDirWithRetryOnError(fileHash string, dirPath string)

func (Client) AddFiles

func (c Client) AddFiles(mfr *files.MultiFileReader) error

func (Client) CreateDir

func (c Client) CreateDir(path string) error

func (Client) DirStat

func (c Client) DirStat(path string) (string, error)

func (Client) GetDirEntriesName

func (c Client) GetDirEntriesName(path string) ([]string, error)

func (Client) GetUnixfsContentHashWithRetryOnError

func (c Client) GetUnixfsContentHashWithRetryOnError(content string) string

func (Client) UnixfsContentHash

func (c Client) UnixfsContentHash(content string) (string, error)

Jump to

Keyboard shortcuts

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