Documentation ¶
Index ¶
- func DeriveIpfsNodeUrl() string
- func DownloadFileContents(cid, filepath string) error
- func DownloadFileToTemp(cid, fileName string) (string, error)
- func DownloadToDirectory(cid, directory string) error
- func DownloadToTempDir(cid string) (string, error)
- func IsDirectory(cidStr string) (bool, error)
- func IsImage(filepath string) bool
- func IsValidCID(cidStr string) bool
- func PinDir(dirPath string) (cid string, err error)
- func PinFile(filePath string) (cid string, err error)
- func UnwrapAndDownloadFileContents(cid, outputFilePath string) error
- func WrapAndPinFile(filePath string) (cid string, err error)
- type FileEntry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeriveIpfsNodeUrl ¶
func DeriveIpfsNodeUrl() string
func DownloadFileContents ¶ added in v0.8.1
func DownloadFileToTemp ¶ added in v0.8.0
func DownloadToDirectory ¶ added in v0.8.1
func DownloadToTempDir ¶ added in v0.8.1
func IsDirectory ¶ added in v0.8.1
func IsValidCID ¶ added in v0.7.6
func UnwrapAndDownloadFileContents ¶ added in v0.8.1
func WrapAndPinFile ¶ added in v0.8.0
wraps a file in a directory and adds it to IPFS
Types ¶
Click to show internal directories.
Click to hide internal directories.