package
25.1.0+incompatible
Repository: https://github.com/cockroachdb/cockroach.git
Documentation: pkg.go.dev

# Functions

GetTargetObjectTypes returns a slice of all the AlterDefaultPrivilegesTargetObjects.
GetValidPrivilegesForObject returns the list of valid privileges for the specified object type.
KeyToName converts a privilege key to its name.
ListFromBitField takes a bitfield of privileges and a ObjectType returns a List.
ListFromStrings takes a list of internal storage keys and attempts to build a list of Kind.
PrivilegesFromBitFields takes a bitfield of privilege kinds, a bitfield of grant options, and an ObjectType returns a List.
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.
List of privileges.
List of privileges.
List of privileges.
List of privileges.
List of privileges.
List of privileges.
List of privileges.
List of privileges.
List of privileges.
Database represents a database object.
List of privileges.
List of privileges.
List of privileges.
ExternalConnection represents an external connection object.
List of privileges.
List of privileges.
Global represents global privileges.
List of privileges.
List of privileges.
List of privileges.
List of privileges.
List of privileges.
OriginFromSystemTable indicates that the privilege name came from a system table and should be ignored if it does not refer to a real privilege.
OriginFromUserInput indicates that the privilege name came from user input and should be validated to make sure it refers to a real privilege.
List of privileges.
List of privileges.
List of privileges.
Routine represents a function or procedure object.
The numbers are explicitly assigned since the DefaultPrivilegesPerObject map defined in the DefaultPrivilegesPerRole proto requires the key value for the object type to remain unchanged.
List of privileges.
Schema represents a schema object.
The numbers are explicitly assigned since the DefaultPrivilegesPerObject map defined in the DefaultPrivilegesPerRole proto requires the key value for the object type to remain unchanged.
List of privileges.
Sequence represents a sequence object.
The numbers are explicitly assigned since the DefaultPrivilegesPerObject map defined in the DefaultPrivilegesPerRole proto requires the key value for the object type to remain unchanged.
Table represents a table object.
The numbers are explicitly assigned since the DefaultPrivilegesPerObject map defined in the DefaultPrivilegesPerRole proto requires the key value for the object type to remain unchanged.
List of privileges.
Type represents a type object.
The numbers are explicitly assigned since the DefaultPrivilegesPerObject map defined in the DefaultPrivilegesPerRole proto requires the key value for the object type to remain unchanged.
List of privileges.
List of privileges.
List of privileges.
List of privileges.
List of privileges.
List of privileges.
List of privileges.
List of privileges.
List of privileges.
VirtualTable represents a virtual table object.
List of privileges.

# Variables

AllPrivileges is populated during init.
ByDisplayName is a map of display name -> kind value.
ByInternalKey is a map of internal key -> kind value.
Predefined sets of privileges.
Predefined sets of privileges.
Predefined sets of privileges.
Predefined sets of privileges.
Predefined sets of privileges.
Predefined sets of privileges.
Predefined sets of privileges.
Predefined sets of privileges.
SequencePrivileges is appended with TablePrivileges as well.
Predefined sets of privileges.
Predefined sets of privileges.
Predefined sets of privileges.

# Structs

Privilege represents a privilege parsed from an Access Privilege Inquiry Function's privilege string argument.

# Interfaces

Object represents an object that can have privileges.

# Type aliases

Kind defines a privilege.
KindDisplayName is the string representation of privileges displayed to end users and recognized by the parser.
KindInternalKey is the value stored in system tables, etc, that represent the privilege internally.
List is a list of privileges.
ObjectType represents objects that can have privileges.
Origin indicates the origin of the privileges being parsed in ListFromStrings.
TargetObjectType represents the type of object that is having its default privileges altered.