Documentation
¶
Index ¶
- func CatFromIPFS(fileHash string, w io.Writer) (string, error)
- func DownloadFromUrlToFile(url, fileName, dirName string, w io.Writer) error
- func GetFromIPFS(hash, fileName, dirName string, w io.Writer) error
- func IPFSBaseAPIUrl() string
- func IPFSBaseGatewayUrl(gateway string) string
- func IPFSUrl() string
- func ListFromIPFS(objectHash string, w io.Writer) (string, error)
- func ListPinnedFromIPFS(w io.Writer) (string, error)
- func PinToIPFS(fileHash string, w io.Writer) (string, error)
- func PostAPICall(url, fileHash string, w io.Writer) ([]byte, error)
- func RemovePinnedFromIPFS(fileHash string, w io.Writer) (string, error)
- func SendToIPFS(fileName, gateway string, w io.Writer) (string, error)
- func UploadFromFileToUrl(url, fileName string, w io.Writer) (http.Header, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DownloadFromUrlToFile ¶
func IPFSBaseAPIUrl ¶
func IPFSBaseAPIUrl() string
func IPFSBaseGatewayUrl ¶
XXX url funcs can take flags for which host to go to.
func PostAPICall ¶
returns []byte to let each command make its own struct for the response but handles the errs in here
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.