Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ByName = map[string]Option{ "CREATEROLE": CREATEROLE, "NOCREATEROLE": NOCREATEROLE, "PASSWORD": PASSWORD, "LOGIN": LOGIN, "NOLOGIN": NOLOGIN, "VALID_UNTIL": VALIDUNTIL, "CONTROLJOB": CONTROLJOB, "NOCONTROLJOB": NOCONTROLJOB, "CONTROLCHANGEFEED": CONTROLCHANGEFEED, "NOCONTROLCHANGEFEED": NOCONTROLCHANGEFEED, "CREATEDB": CREATEDB, "NOCREATEDB": NOCREATEDB, "CREATELOGIN": CREATELOGIN, "NOCREATELOGIN": NOCREATELOGIN, "VIEWACTIVITY": VIEWACTIVITY, "NOVIEWACTIVITY": NOVIEWACTIVITY, "CANCELQUERY": CANCELQUERY, "NOCANCELQUERY": NOCANCELQUERY, "MODIFYCLUSTERSETTING": MODIFYCLUSTERSETTING, "NOMODIFYCLUSTERSETTING": NOMODIFYCLUSTERSETTING, }
ByName is a map of string -> kind value.
Functions ¶
This section is empty.
Types ¶
type List ¶
type List []RoleOption
List is a list of role options.
func (List) CheckRoleOptionConflicts ¶
CheckRoleOptionConflicts returns an error if two or more options conflict with each other.
func (List) GetPassword ¶
GetPassword returns the value of the password or whether the password was set to NULL. Returns error if the string was invalid or if no password option is found.
func (List) GetSQLStmts ¶
GetSQLStmts returns a map of SQL stmts to apply each role option. Maps stmts to values (value of the role option).
func (List) ToBitField ¶
ToBitField returns the bitfield representation of a list of role options.
type Option ¶
type Option uint32
Option defines a role option. This is output by the parser
const ( CREATEROLE Option NOCREATEROLE PASSWORD LOGIN NOLOGIN VALIDUNTIL CONTROLJOB NOCONTROLJOB CONTROLCHANGEFEED NOCONTROLCHANGEFEED CREATEDB NOCREATEDB CREATELOGIN NOCREATELOGIN VIEWACTIVITY NOVIEWACTIVITY CANCELQUERY NOCANCELQUERY MODIFYCLUSTERSETTING NOMODIFYCLUSTERSETTING )
KindList of role options.
Click to show internal directories.
Click to hide internal directories.