package
22.1.0-beta.3.x+incompatible
Repository: https://github.com/cockroachdb/cockroachdb-parser.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.
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.
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.
Database represents a database object.
List of privileges.
GRANT.
List of privileges.
List of privileges.
ExternalConnection represents an external connection object.
List of privileges.
List of privileges.
Function represent a function 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.
Global represents global privileges.
List of privileges.
List of privileges.
List of privileges.
List of privileges.
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.
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.
VirtualTable represents a virtual table object.
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.
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.

# Type aliases

Kind defines a privilege.
List is a list of privileges.
ObjectType represents objects that can have privileges.
TargetObjectType represents the type of object that is having its default privileges altered.