View Source MyspaceIPFS.Version (Myspace IPFS v0.2.0-alpha.1)

MyspaceIPFS.Version is a collection of functions for the MyspaceIPFS library.

Link to this section Summary

Types

MyspaceIPFS.Version.deps is a struct to show deps of the IPFS daemon.

t()

MyspaceIPFS.Version.version is a struct to show the version of the IPFS daemon.

Functions

Get the depdency versions of the IPFS daemon.

Get the version of the IPFS daemon.

Link to this section Types

@type deps() :: %MyspaceIPFS.VersionDeps{
  path: binary(),
  replaced_by: binary(),
  sum: binary(),
  version: binary()
}

MyspaceIPFS.Version.deps is a struct to show deps of the IPFS daemon.

@type t() :: %MyspaceIPFS.Version{
  commit: binary(),
  golang: binary(),
  repo: binary(),
  system: binary(),
  version: binary()
}

MyspaceIPFS.Version.version is a struct to show the version of the IPFS daemon.

Link to this section Functions

@spec deps() :: {:ok, [deps()]}

Get the depdency versions of the IPFS daemon.

@spec version() :: {:ok, t()}

Get the version of the IPFS daemon.

parameters

Parameters

What version information to return (optional). Defaults to all. Allowed values are: all, Commit, Golang, Version, Repo, System.

options

Options

https://docs.ipfs.tech/reference/kubo/rpc/#api-v0-version