Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CalculateFileCID ¶
Calculates a file CID
func CalculateRootCid ¶
Calculate the RootCid for a given set of files rootPath: root folder to group the files
func InitIpfsNode ¶
Types ¶
type FileMetadata ¶
type FileMetadata struct { Cid string `json:"cid" validate:"required"` Name string `json:"name" validate:"required"` }
func ToFileData ¶
func ToFileData(workDir string, node *core.IpfsNode) ([]*FileMetadata, error)
Click to show internal directories.
Click to hide internal directories.