Packages
A pretty good Kubo IPFS RPC API client for Elixir.
Retired package: Deprecated - Replaced by ex_ipfs
Current section
Files
Jump to
Current section
Files
lib/update.ex
defmodule MyspaceIPFS.Update do
# FIXME: This is a stub. It needs to be implemented.
@moduledoc false
import MyspaceIPFS.Api
import MyspaceIPFS.Utils
@typep result :: MyspaceIPFS.result()
@typep opts :: MyspaceIPFS.opts()
# Update function - takes in the current args for update.
# This runs ipfs update with the given arguments.
# You probably don't want to use this unless you know what you're doing.
@spec update(opts) :: result
def update(args) when is_bitstring(args) do
post_query("/update?arg=", args)
|> okify()
end
end