Package-level declarations
Types
Link copied to clipboard
Entry point of the Karbone SDK, a Kotlin client for the Carbone document generation API.
Link copied to clipboard
interface KarboneClient
What consumers should depend on. Karbone is the real client; com.ekino.oss.karbone.testing.FakeKarbone is an in-memory double.
Link copied to clipboard
data class KarboneConfig(val baseUrl: String, val token: String? = null, val apiVersion: Int? = null, val connectTimeout: Duration = 10.seconds, val requestTimeout: Duration = 60.seconds, val retry: RetryPolicy = RetryPolicy.None, val json: Json = DefaultJson, val userAgent: String = "karbone/")
Immutable per-client configuration.
Link copied to clipboard
Every way a Karbone call can fail, as a value.
Link copied to clipboard
Thrown by the blocking facade only. Kotlin callers get KarboneError through Raise.
Link copied to clipboard
Retry on transport failures only (connection reset, timeout). API errors are never retried.