Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CanCapturedCompletionAuthority ¶
func CanCapturedCompletionAuthority(ctx context.Context, snapshot model.CompletionAuthoritySnapshot) (bool, error)
CanCapturedCompletionAuthority evaluates database-captured permission facts with the same policy as Can. Callers must never supply request-owned facts.
Types ¶
type Input ¶
type Input struct {
UserSlug slug.Slug // The user performing the action
APIKeySlug slug.Slug // Optional API key service principal
APIKeyRoleSlug slug.Slug // Optional API key role in the organization
OrgSlug *slug.Slug // Optional: for organization-scoped authorization
Action model.Action // The action being performed
Resource fmt.Stringer // The typed resource, including consumer-owned resources
ResourceOwnerSlug *slug.Slug // Optional: for ownership checks
}
type ServiceWithLogging ¶
type ServiceWithLogging struct {
// contains filtered or unexported fields
}
ServiceWithLogging implements Service with method completion logging.
Click to show internal directories.
Click to hide internal directories.