Imp.Playbook.Policy (Imp v0.5.0)

Copy Markdown View Source

Hard limits and admission rules for a Imp.Playbook.

Limits cover normalized UTF-8 content and every retained semantic string. The defaults intentionally keep a playbook small enough to inspect and pass through model contexts.

Summary

Functions

Builds and validates a policy. Values cannot exceed the domain hard caps.

Types

t()

@type t() :: %Imp.Playbook.Policy{
  max_counter: pos_integer(),
  max_entries: pos_integer(),
  max_entry_bytes: pos_integer(),
  max_operations: pos_integer(),
  max_playbook_bytes: pos_integer(),
  max_provenance_items: pos_integer(),
  max_section_bytes: pos_integer(),
  max_source_id_bytes: pos_integer(),
  max_tombstones: pos_integer(),
  reject_secrets: boolean()
}

Functions

new(opts \\ [])

@spec new(keyword() | map()) :: t()

Builds and validates a policy. Values cannot exceed the domain hard caps.