Item

class Item(val uri: Uri, val pkg: WrapPackage? = null, val implements: List<Uri>? = null, val redirectFrom: List<Uri>? = null, val env: WrapEnv? = null)

A Bundle.Item is a WrapPackage and additional configuration to be added to the Polywrap Client Configuration. This may include interface implementations, URI redirects, and/or a WrapEnv.

If a WrapPackage is not provided, the Polywrap Client will attempt to resolve the Uri.

Note that users can override values when configuring the Polywrap Client.

Parameters

uri

The primary Uri that will resolve to pkg.

pkg
implements

A list of interfaces that pkg implements.

redirectFrom

A list of Uris that will redirect to uri.

env

A default WrapEnv for pkg.

Constructors

Link copied to clipboard
constructor(uri: Uri, pkg: WrapPackage? = null, implements: List<Uri>? = null, redirectFrom: List<Uri>? = null, env: WrapEnv? = null)

Properties

Link copied to clipboard
val env: WrapEnv? = null
Link copied to clipboard
val implements: List<Uri>? = null
Link copied to clipboard
val pkg: WrapPackage? = null
Link copied to clipboard
val redirectFrom: List<Uri>? = null
Link copied to clipboard
val uri: Uri