diff --git a/wit/deps/golem-1.1/golem-oplog-1.1.wit b/wit/deps/golem-1.1/golem-oplog-1.1.wit index d12a635..679b17b 100644 --- a/wit/deps/golem-1.1/golem-oplog-1.1.wit +++ b/wit/deps/golem-1.1/golem-oplog-1.1.wit @@ -5,7 +5,7 @@ interface oplog { use wasi:clocks/wall-clock@0.2.0.{datetime}; use golem:rpc/types@0.1.0.{wit-value}; - use host.{account-id, component-version, oplog-index, retry-policy, worker-id}; + use host.{account-id, component-version, oplog-index, retry-policy, uuid, worker-id}; variant wrapped-function-type { /// The side-effect reads from the worker's local state (for example local file system, @@ -27,6 +27,13 @@ interface oplog { write-remote-batched(option) } + record plugin-installation-description { + installation-id: uuid, + name: string, + version: string, + parameters: list> + } + record create-parameters { timestamp: datetime, worker-id: worker-id, @@ -36,7 +43,8 @@ interface oplog { account-id: account-id, parent: option, component-size: u64, - initial-total-linear-memory-size: u64 + initial-total-linear-memory-size: u64, + initial-active-plugins: list } record imported-function-invoked-parameters { @@ -118,7 +126,8 @@ interface oplog { record successful-update-parameters { timestamp: datetime, target-version: component-version, - new-component-size: u64 + new-component-size: u64, + new-active-plugins: list } record failed-update-parameters { @@ -169,6 +178,16 @@ interface oplog { message: string } + record activate-plugin-parameters { + timestamp: datetime, + plugin: plugin-installation-description + } + + record deactivate-plugin-parameters { + timestamp: datetime, + plugin: plugin-installation-description + } + variant oplog-entry { /// The initial worker oplog entry create(create-parameters), @@ -229,7 +248,11 @@ interface oplog { /// The worker emitted a log message log(log-parameters), /// The worker's has been restarted, forgetting all its history - restart(datetime) + restart(datetime), + /// Activates a plugin + activate-plugin(activate-plugin-parameters), + /// Deactivates a plugin + deactivate-plugin(deactivate-plugin-parameters) } resource get-oplog {