ipfs

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeriveIpfsNodeUrl

func DeriveIpfsNodeUrl() string

func DownloadFileContents added in v0.8.1

func DownloadFileContents(cid, filepath string) error

func DownloadFileToTemp added in v0.8.0

func DownloadFileToTemp(cid, fileName string) (string, error)

func DownloadToDirectory added in v0.8.1

func DownloadToDirectory(cid, directory string) error

func DownloadToTempDir added in v0.8.1

func DownloadToTempDir(cid string) (string, error)

func IsDirectory added in v0.8.1

func IsDirectory(cidStr string) (bool, error)

func IsImage added in v0.8.2

func IsImage(filepath string) bool

func IsValidCID added in v0.7.6

func IsValidCID(cidStr string) bool

func PinDir added in v0.8.0

func PinDir(dirPath string) (cid string, err error)

func PinFile added in v0.8.0

func PinFile(filePath string) (cid string, err error)

func UnwrapAndDownloadFileContents added in v0.8.1

func UnwrapAndDownloadFileContents(cid, outputFilePath string) error

func WrapAndPinFile added in v0.8.0

func WrapAndPinFile(filePath string) (cid string, err error)

wraps a file in a directory and adds it to IPFS

Types

type FileEntry added in v0.11.0

type FileEntry map[string]string

func ListFilesInDirectory added in v0.11.0

func ListFilesInDirectory(cid string) ([]FileEntry, error)

Jump to

Keyboard shortcuts

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