Documentation ¶
Index ¶
- func ConstructDir(duras []string) files.Directory
- func RawContentHash(data string) links.Cid
- func UploadDurasToIpfsCmd() *cobra.Command
- type Client
- func (c Client) AddDirectory(mfr *files.MultiFileReader) (string, error)
- func (c Client) AddDirectoryWithRetryOnError(mfr *files.MultiFileReader) string
- func (c Client) AddFileToDir(fileHash string, dirPath string) error
- func (c Client) AddFileToDirWithRetryOnError(fileHash string, dirPath string)
- func (c Client) AddFiles(mfr *files.MultiFileReader) error
- func (c Client) CreateDir(path string) error
- func (c Client) DirStat(path string) (string, error)
- func (c Client) GetDirEntriesName(path string) ([]string, error)
- func (c Client) GetUnixfsContentHashWithRetryOnError(content string) string
- func (c Client) UnixfsContentHash(content string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConstructDir ¶
func ConstructDir(duras []string) files.Directory
func RawContentHash ¶
func UploadDurasToIpfsCmd ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (Client) AddDirectory ¶
returns root hash of added dir/file
func (Client) AddDirectoryWithRetryOnError ¶
func (Client) AddFileToDirWithRetryOnError ¶
func (Client) GetUnixfsContentHashWithRetryOnError ¶
Click to show internal directories.
Click to hide internal directories.