DockerEngineAPI.Api.Node (ex_docker_api v1.48.1)
View SourceAPI calls for all endpoints tagged Node.
Summary
Functions
@spec node_delete(Tesla.Env.client(), String.t(), keyword()) :: {:ok, nil} | {:ok, DockerEngineAPI.Model.ErrorResponse.t()} | {:error, Tesla.Env.t()}
Delete a node
Parameters
connection(DockerEngineAPI.Connection): Connection to serverid(String.t): The ID or name of the nodeopts(keyword): Optional parameters:force(boolean()): Force remove a node from the swarm
Returns
{:ok, nil}on success{:error, Tesla.Env.t}on failure
@spec node_inspect(Tesla.Env.client(), String.t(), keyword()) :: {:ok, DockerEngineAPI.Model.Node.t()} | {:ok, DockerEngineAPI.Model.ErrorResponse.t()} | {:error, Tesla.Env.t()}
Inspect a node
Parameters
connection(DockerEngineAPI.Connection): Connection to serverid(String.t): The ID or name of the nodeopts(keyword): Optional parameters
Returns
{:ok, DockerEngineAPI.Model.Node.t}on success{:error, Tesla.Env.t}on failure
@spec node_list( Tesla.Env.client(), keyword() ) :: {:ok, DockerEngineAPI.Model.ErrorResponse.t()} | {:ok, [DockerEngineAPI.Model.Node.t()]} | {:error, Tesla.Env.t()}
List nodes
Parameters
connection(DockerEngineAPI.Connection): Connection to serveropts(keyword): Optional parameters:filters(String.t): Filters to process on the nodes list, encoded as JSON (amap[string][]string). Available filters: -id=<node id>-label=<engine label>-membership=(accepted|pending)-name=<node name>-node.label=<node label>-role=(manager|worker)
Returns
{:ok, [%Node{}, ...]}on success{:error, Tesla.Env.t}on failure
@spec node_update(Tesla.Env.client(), String.t(), integer(), keyword()) :: {:ok, nil} | {:ok, DockerEngineAPI.Model.ErrorResponse.t()} | {:error, Tesla.Env.t()}
Update a node
Parameters
connection(DockerEngineAPI.Connection): Connection to serverid(String.t): The ID of the nodeversion(integer()): The version number of the node object being updated. This is required to avoid conflicting writes.opts(keyword): Optional parameters:body(NodeSpec):
Returns
{:ok, nil}on success{:error, Tesla.Env.t}on failure