View Source MyspaceIPFS.Api.Advanced (Myspace IPFS v0.0.1)

MyspaceIPFS.Api is where the key commands of the IPFS API reside.

Link to this section Summary

Functions

Mounts IPFS and IPNS to the filesystem (read-only).

Shutdown the IPFS daemon.

Link to this section Functions

Link to this function

mount(ipfs \\ "/ipfs", ipns \\ "/ipns")

View Source
@spec mount(binary(), binary()) ::
  {:client_error | :forbidden | :missing | :not_allowed | :ok | :server_error,
   any()}

Mounts IPFS and IPNS to the filesystem (read-only).

Takes paths to mount IPFS and IPNS to as arguments.

@spec resolve(binary()) :: any()
@spec shutdown() :: any()

Shutdown the IPFS daemon.