Nodes

class Nodes(dockerClient: DockerClient)

Manager operations. HTTP failures return Result errors; transport failures and cancellation throw.

Constructors

Link copied to clipboard
constructor(dockerClient: DockerClient)

Functions

Link copied to clipboard
suspend fun getInfo(id: String): Result<Node, ErrorResponse>

Inspects a resource by ID or name.

Link copied to clipboard
suspend fun getList(filters: Map<String, List<String>>? = null): Result<List<Node>, ErrorResponse>

Lists resources using Docker's JSON filter map.

Link copied to clipboard
suspend fun remove(id: String, force: Boolean = false): Result<Unit, ErrorResponse>

Removes the resource. Force removal is explicit and defaults to false.

Link copied to clipboard
suspend fun update(id: String, version: ULong, spec: NodeSpec): Result<Unit, ErrorResponse>

Replaces the spec using the inspected version; stale versions fail without retry.