Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Cap grant revoke #340
Conversation
zyga
added some commits
Jan 19, 2016
|
This needs work after the agreements related to #338. Please bring it back to life when ready. |
niemeyer
closed this
Jan 20, 2016
zyga
deleted the
zyga:cap-grant-revoke
branch
Feb 1, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
zyga commentedJan 19, 2016
NOTE: this depends on #338 -- please look at just 704e50c
Granted capabilities are modeled by the capability repository. The
repository stores a two-level map[CapabilityID]map[CapabilityID]bool.
The final value is dummy so the whole type acts as a set of pairs
(provided, consumed) where both fields represent the CapabilityID of the
provided and consumed capability.
This arrangement allows for multiple consumers of any capability and has
efficient lookup mechanism.