-
public interface RuntimeFfiInterfaceSlim wrapper around HolochainRuntime, with types compatible with Uniffi-generated FFI bindings.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classRuntimeFfiInterface.Companion
-
Method Summary
Modifier and Type Method Description abstract UnitauthorizeAppClient(String clientId, String installedAppId)Authorize a client to call the given app id abstract UnitdisableApp(String installedAppId)Disable an installed app abstract AppInfoFfienableApp(String installedAppId)Enable an installed app abstract AppAuthFfiensureAppWebsocket(String installedAppId)Get or create an app websocket with an authentication for the given app id abstract AppInfoFfiinstallApp(InstallAppPayloadFfi payload)Install an app abstract BooleanisAppClientAuthorized(String clientId, String installedAppId)Is this client authorized to call the given app id? abstract BooleanisAppInstalled(String installedAppId)Is an app with the given installed_app_id installed on the conductor abstract List<AppInfoFfi>listApps()List apps installed on the conductor abstract AppAuthFfisetupApp(InstallAppPayloadFfi payload, Boolean enableAfterInstall)Full process to setup an appCheck if app is installed, if not install it, then optionally enable it. abstract ZomeCallParamsSignedFfisignZomeCall(ZomeCallParamsFfi zomeCallUnsigned)Sign a zome call abstract Unitstop()Shutdown the holochain conductor abstract UnituninstallApp(String installedAppId)Uninstall an app -
-
Method Detail
-
authorizeAppClient
abstract Unit authorizeAppClient(String clientId, String installedAppId)
Authorize a client to call the given app id
-
disableApp
abstract Unit disableApp(String installedAppId)
Disable an installed app
-
ensureAppWebsocket
abstract AppAuthFfi ensureAppWebsocket(String installedAppId)
Get or create an app websocket with an authentication for the given app id
-
installApp
abstract AppInfoFfi installApp(InstallAppPayloadFfi payload)
Install an app
-
isAppClientAuthorized
abstract Boolean isAppClientAuthorized(String clientId, String installedAppId)
Is this client authorized to call the given app id?
-
isAppInstalled
abstract Boolean isAppInstalled(String installedAppId)
Is an app with the given installed_app_id installed on the conductor
-
setupApp
abstract AppAuthFfi setupApp(InstallAppPayloadFfi payload, Boolean enableAfterInstall)
Full process to setup an app
Check if app is installed, if not install it, then optionally enable it. Then ensure there is an app websocket and authentication for it.
If an app is already installed, it will not be enabled. It is only enabled after a successful install. The reasoning is that if an app is disabled after that point, it is assumed to have been manually disabled in the admin interface, which we don't want to override.
-
signZomeCall
abstract ZomeCallParamsSignedFfi signZomeCall(ZomeCallParamsFfi zomeCallUnsigned)
Sign a zome call
-
uninstallApp
abstract Unit uninstallApp(String installedAppId)
Uninstall an app
-
-
-
-