Package-level declarations

Types

Link copied to clipboard
abstract class BaseConfigBuilder

Defines a builder for creating configured PolywrapClient instances with support for adding, removing, and modifying various configuration options.

Link copied to clipboard
data class BuilderConfig(val envs: MutableMap<String, ByteArray>, val interfaces: MutableMap<String, MutableSet<String>>, val redirects: MutableMap<String, String>, val wrappers: MutableMap<String, Wrapper>, val packages: MutableMap<String, WrapPackage>, val resolvers: MutableList<UriResolver>, val ffiBundles: MutableList<NativeBundle>)

Represents in intermediary representation of the Polywrap Client configuration, used to facilitate config composition in the ConfigBuilder.

Link copied to clipboard
abstract class Bundle

A Bundle is a collection of Items that are to be added to the Polywrap Client configuration.

Link copied to clipboard

A concrete implementation of the BaseConfigBuilder class. This class builds PolywrapClient instances using provided configurations.

Link copied to clipboard

Default configuration bundles are defined in the FFI native code. They implement the Bundle interface and can be added to a ConfigBuilder. However, they cannot be used to override other configuration values.

Link copied to clipboard

Functions

Link copied to clipboard
fun configBuilder(configBuilder: ConfigBuilder? = null, configure: ConfigBuilder.() -> Unit): ConfigBuilder
Link copied to clipboard
fun polywrapClient(configBuilder: ConfigBuilder? = null, configure: ConfigBuilder.() -> Unit): PolywrapClient
Link copied to clipboard
fun validateMapAsEnv(map: Map<*, *>): WrapEnv
Link copied to clipboard