package
25.1.0+incompatible
Repository: https://github.com/cockroachdb/cockroach.git
Documentation: pkg.go.dev
# Functions
ErrRequiresRoleOption can be used to construct an error that tells the user a given role option or privilege is required.
NewChecker constructs a new CheckerForRPCHandlers.
# Variables
ErrRequiresAdmin is returned when the admin role is required by an API.
# Interfaces
CheckerForRPCHandlers describes a helper for checking privileges.
SQLPrivilegeChecker is the part of the privilege checker that can be used outside of RPC handlers, because it takes the identity as explicit argument.