Wardrik.Operations.Deployment (wardrik v0.1.0-rc.1)

Copy Markdown

Operations on the deployment: the audit, nodes, moving agents and reloading.

Summary

Functions

Returns a page of the deployment's audit.

Moves an agent to another node.

Lists the deployment's nodes with how many agents run on each, and how many are asleep.

Reloads the deployment

Functions

audit(scope, input)

@spec audit(Wardrik.Scope.t(), map()) :: {:ok, map()}

Returns a page of the deployment's audit.

move(scope, map)

@spec move(Wardrik.Scope.t(), map()) :: {:ok, map()} | {:error, Wardrik.Error.t()}

Moves an agent to another node.

nodes(scope, input)

@spec nodes(Wardrik.Scope.t(), map()) :: {:ok, map()}

Lists the deployment's nodes with how many agents run on each, and how many are asleep.

reload(scope, input)

@spec reload(Wardrik.Scope.t(), map()) :: {:ok, map()}

Reloads the deployment:

  1. Reloads the declarations. See Wardrik.Declarations.
  2. Updates running agents to their current definitions. Only those "resources" covers, if given.
  3. Reconciles MCP servers and triggers.

Returns the node reloaded, and a line for each declaration problem.