Insider.Policy.Context (Insider v0.1.0)

Copy Markdown View Source

Trusted runtime facts supplied outside the untrusted request envelope.

Summary

Types

t()

@type t() :: %Insider.Policy.Context{
  actor: String.t(),
  deployment_limits: Insider.Protocol.Budget.t(),
  environment: atom(),
  features: map(),
  grants: [Insider.Policy.Grant.t()],
  target_class: :host | :disposable
}

Functions

new(options)

@spec new(keyword()) :: {:ok, t()} | {:error, Insider.Protocol.Error.t()}