Versions in this module Expand all Collapse all v0 v0.1.2 Sep 7, 2026 Changes in this version + func IndexMarker(section, edge string) string + func Title(element any) string + type Diagrammer interface + Policy func(p *papi.Policy) string + PolicyGroup func(pg *papi.PolicyGroup) string + PolicySet func(ps *papi.PolicySet) string + type Index struct + func NewIndex(entries []IndexEntry) (*Index, error) + func (idx *Index) Inject(existing string) (string, error) + func (idx *Index) Render(title string) string + type IndexEntry struct + Element any + Link string + type Mermaid struct + func (Mermaid) Policy(p *papi.Policy) string + func (Mermaid) PolicyGroup(pg *papi.PolicyGroup) string + func (Mermaid) PolicySet(ps *papi.PolicySet) string + type Option func(*Options) + func WithDiagrammer(d Diagrammer) Option + func WithPolicyDetails(enabled bool) Option + func WithoutDiagrams() Option + type Options struct + Diagrammer Diagrammer + PolicyDetails bool v0.1.1 Sep 7, 2026 v0.1.0 Apr 20, 2026 Changes in this version + func Generate(element any) (string, error) + func MermaidPolicy(p *papi.Policy) string + func MermaidPolicyGroup(pg *papi.PolicyGroup) string + func MermaidPolicySet(ps *papi.PolicySet) string