Opsmaru.Incus.Operations.Descriptor (opsmaru_incus v0.1.0)

Copy Markdown View Source

One shared Incus operation: its public contract and how it runs.

name, input_schema, output_schema, scope, destructive, confirmation and bounds are public contract. requires names the client evidence it depends on (see Opsmaru.Incus.Operations.Evidence). The functions are internal: confirm returns the resource the confirmation must repeat, check adds byte bounds the schema cannot express, restricted lists restricted input for the host, resolve applies host-only lookups before backend access and run executes through the public client.

Summary

Types

t()

@type t() :: %Opsmaru.Incus.Operations.Descriptor{
  bounds: term(),
  check: term(),
  confirm: term(),
  confirmation: term(),
  description: term(),
  destructive: term(),
  input_schema: term(),
  name: term(),
  output_schema: term(),
  requires: term(),
  resolve: term(),
  restricted: term(),
  run: term(),
  scope: term(),
  title: term()
}