Documentation
¶
Overview ¶
Package access is the Authorizer for an access list (docs/adr/0011, TAXONOMY.md D27): four roles, each a bundle of permissions, and teams that scope a contributor's work.
The policy is pure. Grants says what a principal holds; the engine puts the chains of teams a manifest sits under, and the fields a write changes, on the Action. Nothing here reads a store.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Policy ¶
type Policy struct {
// Grants returns what the access list gives a principal. An error is
// a refusal.
Grants func(ctx context.Context, p auth.Principal) (auth.Grants, error)
}
Policy decides from what Grants says a principal holds.
Click to show internal directories.
Click to hide internal directories.