All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.io.polywrap.core.WrapPackage.kt Maven / Gradle / Ivy

There is a newer version: 0.10.4
Show newest version
package io.polywrap.core

import io.polywrap.core.wrap.WrapManifest
import uniffi.polywrap_native.IffiWrapPackage

/**
 * A wrap package, capable of producing instances of a wrapper and its manifest
 */
interface WrapPackage : IffiWrapPackage {
    /**
     * Get a file from the Wrapper package.
     *
     * @param path The path to the file.
     * @return The result of the file retrieval.
     */
    fun getFile(path: String): Result

    /**
     * Produce an instance of the wrap manifest
     *
     * @return A Result containing the wrap manifest or an error
     */
    fun getManifest(): Result
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy