commonMain.io.polywrap.configBuilder.BuilderConfig.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of polywrap-client Show documentation
Show all versions of polywrap-client Show documentation
Polywrap Client for JVM and Android
package io.polywrap.configBuilder
import io.polywrap.core.WrapEnv
import io.polywrap.core.WrapPackage
import io.polywrap.core.Wrapper
import io.polywrap.core.resolution.UriResolver
/**
* An intermediary representation of the Polywrap Client configuration.
*/
/**
* Represents in intermediary representation of the Polywrap Client configuration,
* used to facilitate config composition in the [ConfigBuilder].
*
* @property envs A [MutableMap] mapping environment URIs to their respective [WrapEnv].
* @property interfaces A [MutableMap] mapping interface URIs to their respective [MutableSet] of implementation URIs.
* @property redirects A [MutableMap] mapping source URIs to their respective destination URIs.
* @property wrappers A [MutableMap] mapping wrapper URIs to their respective [Wrapper] instances.
* @property packages A [MutableMap] mapping package URIs to their respective [WrapPackage] instances.
* @property resolvers A [MutableList] of [UriResolver] instances.
*/
data class BuilderConfig(
val envs: MutableMap,
val interfaces: MutableMap>,
val redirects: MutableMap,
val wrappers: MutableMap,
val packages: MutableMap,
val resolvers: MutableList,
val ffiBundles: MutableList
)