View Source DockerAPI.Endpoints.Node (DockerAPI v0.4.0)
Nodes are instances of the Engine participating in a swarm. Swarm mode must be enabled for these endpoints to work.
official-document
Official document
Link to this section Summary
Link to this section Types
@type id() :: String.t()
@type t() :: %DockerAPI.Endpoints.Node{connection: DockerAPI.Connection.t(), id: id()}
Link to this section Functions
@spec bang!(:ok) :: :ok
@spec bang!({:ok, term()}) :: term()
@spec bang!({:error, DockerAPI.Error.t()}) :: no_return()
@spec delete( node :: t(), params :: DockerAPI.Connection.params(), headers :: DockerAPI.Connection.headers() ) :: :ok | {:error, DockerAPI.Error.t()}
@spec delete( node :: t(), params :: DockerAPI.Connection.params(), headers :: DockerAPI.Connection.headers() ) :: :ok
@spec handle_json_response({:ok, binary()}) :: {:ok, term()}
@spec handle_json_response({:error, DockerAPI.Error.t()}) :: {:error, DockerAPI.Error.t()}
@spec handle_no_response({:ok, term()}) :: :ok
@spec handle_no_response({:error, DockerAPI.Error.t()}) :: {:error, DockerAPI.Error.t()}
@spec inspect( conn :: DockerAPI.Connection.t(), params :: DockerAPI.Connection.params(), headers :: DockerAPI.Connection.headers() ) :: {:ok, term()} | {:error, DockerAPI.Error.t()}
@spec inspect( conn :: DockerAPI.Connection.t(), params :: DockerAPI.Connection.params(), headers :: DockerAPI.Connection.headers() ) :: term()
@spec list!( conn :: DockerAPI.Connection.t(), params :: DockerAPI.Connection.params(), headers :: DockerAPI.Connection.headers() ) :: [t(), ...]
@spec list( conn :: DockerAPI.Connection.t(), params :: DockerAPI.Connection.params(), headers :: DockerAPI.Connection.headers() ) :: {:ok, [t(), ...]} | {:error, DockerAPI.Error.t()}
Link to this function
update!(node, params \\ %{}, body \\ nil, headers \\ [])
View Source (since 0.4.0)@spec update!( node :: t(), params :: DockerAPI.Connection.params(), body :: DockerAPI.Connection.body(), headers :: DockerAPI.Connection.headers() ) :: :ok
Link to this function
update(node, params \\ %{}, body \\ nil, headers \\ [])
View Source (since 0.4.0)@spec update( node :: t(), params :: DockerAPI.Connection.params(), body :: DockerAPI.Connection.body(), headers :: DockerAPI.Connection.headers() ) :: :ok | {:error, DockerAPI.Error.t()}