ipfs

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2015 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CatFromIPFS

func CatFromIPFS(fileHash string, w io.Writer) (string, error)

func DownloadFromUrlToFile

func DownloadFromUrlToFile(url, fileName, dirName string, w io.Writer) error

func GetFromIPFS

func GetFromIPFS(hash, fileName, dirName string, w io.Writer) error

func IPFSBaseAPIUrl

func IPFSBaseAPIUrl() string

func IPFSBaseGatewayUrl

func IPFSBaseGatewayUrl(gateway string) string

XXX url funcs can take flags for which host to go to.

func IPFSUrl

func IPFSUrl() string

func ListFromIPFS

func ListFromIPFS(objectHash string, w io.Writer) (string, error)

func ListPinnedFromIPFS

func ListPinnedFromIPFS(w io.Writer) (string, error)

func PinToIPFS

func PinToIPFS(fileHash string, w io.Writer) (string, error)

func PostAPICall

func PostAPICall(url, fileHash string, w io.Writer) ([]byte, error)

returns []byte to let each command make its own struct for the response but handles the errs in here

func RemovePinnedFromIPFS

func RemovePinnedFromIPFS(fileHash string, w io.Writer) (string, error)

func SendToIPFS

func SendToIPFS(fileName, gateway string, w io.Writer) (string, error)

func UploadFromFileToUrl

func UploadFromFileToUrl(url, fileName string, w io.Writer) (http.Header, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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