Documentation ¶
Index ¶
- func ConnectToPeers(ctx context.Context, ipfs icore.CoreAPI, peers []string) error
- func CreateNode(ctx context.Context, repoPath string) (*core.IpfsNode, error)
- func CreateTempRepo() (string, error)
- func DownloadFromCid(cidStr string, isCli bool) (outputPath string, err error, progress int64)
- func ErrorCheck(err error, isCli bool) error
- func ForeverSpin()
- func GetCidStrFromString(str string) (cidStr string)
- func GetUnixfsNode(path string) (files.Node, error)
- func SetupPlugins(externalPluginsPath string) error
- func SpawnEphemeral(ctx context.Context) (icore.CoreAPI, *core.IpfsNode, error)
- func StartIpfsNode() (context.Context, icore.CoreAPI, context.CancelFunc, error)
- func UploadFiles(flagFilePath string, isCli bool) (cidStr string, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConnectToPeers ¶
for the future file sharing
func CreateNode ¶
Creates an IPFS node and returns its coreAPI.
func CreateTempRepo ¶
func DownloadFromCid ¶
func ErrorCheck ¶
func ForeverSpin ¶
func ForeverSpin()
func GetCidStrFromString ¶
func SetupPlugins ¶
func SpawnEphemeral ¶
Spawns a node to be used just for this run (i.e. creates a tmp repo).
func StartIpfsNode ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.