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

Copy Markdown

Records changes made through Wardrik in the audit, with who made them.

Summary

Functions

Records a change of type, such as "agent.defined", to the agent id.

Records a change of type, such as "token.created", to the deployment.

Records a change of type, such as "server.added", to something owner holds.

Functions

record(scope, type, id, data \\ %{})

@spec record(Wardrik.Scope.t(), String.t(), String.t(), map()) :: :ok

Records a change of type, such as "agent.defined", to the agent id.

record_deployment(scope, type, subject, data)

@spec record_deployment(Wardrik.Scope.t(), String.t(), String.t(), map()) :: :ok

Records a change of type, such as "token.created", to the deployment.

record_owned(scope, type, owner, subject, data)

@spec record_owned(Wardrik.Scope.t(), String.t(), String.t(), String.t(), map()) ::
  :ok

Records a change of type, such as "server.added", to something owner holds.