Services
Manager operations. HTTP failures return Result errors; transport failures and cancellation throw.
Functions
Link copied to clipboard
suspend fun getLogs(id: String, parameters: SwarmLogsParameters = SwarmLogsParameters()): Result<Flow<LogLine>, ErrorResponse>
Inspects TTY framing now, then returns a cold log flow. Collection opens the log request. Collection HTTP errors throw DockerApiException; cancellation/completion closes the request. Docker requires a supported logging driver. No retry or ordering across tasks is added.
Link copied to clipboard
suspend fun update(id: String, version: ULong, spec: ServiceSpec, registryAuth: String? = null, registryAuthFrom: String? = null, rollback: String? = null): Result<ServiceUpdateResponse, ErrorResponse>
Replaces the spec using its inspected version. No merge, retry or readiness wait is performed. Set rollback to "previous" for server-side rollback. Pass a complete valid spec even for rollback. registryAuthFrom selects "spec" or "previous-spec" when registryAuth is absent.