Companion

object Companion

Functions

Link copied to clipboard
suspend fun connect(apiKey: String, server: String = "tacenta.com"): Tenant

Connect to the Tacenta server at server, hosted Tacenta by default: fetch its service document over HTTPS, trusting the public web PKI.

Link copied to clipboard
suspend fun connectVia(apiKey: String, url: String): Tenant

Connect by fetching the service document at url: the local development path (http://127.0.0.1:4780/.well-known/tacenta, and http:// is accepted from loopback only). An https:// URL is checked against the public web PKI; a private certificate on the discovery host is not reachable from these heads yet.