package
20.2.19+incompatible
Repository: https://github.com/cockroachdb/cockroach.git
Documentation: pkg.go.dev
# Functions
GetValidPrivilegesForObject returns the list of valid privileges for the specified object type.
ListFromBitField takes a bitfield of privileges and a ObjectType returns a List.
ListFromStrings takes a list of strings and attempts to build a list of Kind.
ValidatePrivileges returns an error if any privilege in privileges cannot be granted on the given objectType.
# Constants
List of privileges.
Any represents any object type.
List of privileges.
Database represents a database object.
List of privileges.
List of privileges.
List of privileges.
List of privileges.
Schema represents a schema object.
List of privileges.
Table represents a table object.
Type represents a type object.
List of privileges.
List of privileges.
List of privileges.
# Variables
Predefined sets of privileges.
ByName is a map of string -> kind value.
ByValue is just an array of privilege kinds sorted by value.
Predefined sets of privileges.
Predefined sets of privileges.
Predefined sets of privileges.
Predefined sets of privileges.
Predefined sets of privileges.
# Type aliases
Kind defines a privilege.
List is a list of privileges.
ObjectType represents objects that can have privileges.