compileAttachments
Function: compileAttachments()
compileAttachments(
attachments,known):object
Defined in: packages/iam/src/compiler.ts:189
Compile attachments into deduplicated Casbin g rows
Parameters
attachments
the attachments
known
Set<string>
the names of existing policies
Returns
object
the rows, and the attachments ignored (unknown policy or invalid principal)
ignored
ignored:
PolicyAttachment[]
rows
rows:
AttachmentRow[]