package
9.0.0-alpha+incompatible
Repository: https://github.com/pingcap/tidb.git
Documentation: pkg.go.dev

# Packages

# Functions

BuildPasswordLockingJSON builds PasswordLocking JSON string.
BuildSuccessPasswordLockingJSON builds success PasswordLocking JSON string.
GenerateAccountAutoLockErr implements the Manager interface.
GetDynamicPrivileges returns the list of registered DYNAMIC privileges for use in meta data commands (i.e.
NewHandle returns a Handle.
NewUserPrivileges creates a new UserPrivileges.
NewUserRecord return a UserRecord, only use for unit test.
PrivToString converts the privileges to string.
RegisterDynamicPrivilege is used by plugins to add new privileges to TiDB.
RemoveDynamicPrivilege is used for test only.

# Constants

SslTypeAny indicates require use ssl but not validate cert.
SslTypeNone indicates not require use ssl.
SslTypeNotSpecified indicates .
SslTypeSpecified indicates require use ssl and validate cert's subject or issuer.
SslTypeX509 indicates require use ssl and validate cert.

# Variables

error definitions.
error definitions.
error definitions.
error definitions.
GlobalJWKS is the global JWKS for tidb-server.
SkipWithGrant causes the server to start without using the privilege system at all.

# Structs

GlobalPrivValue is store json format for priv column in mysql.global_priv.
Handle wraps MySQLPrivilege providing thread safe access.
JWKSImpl contains a JSON Web Key Set (JWKS), and a filepath that stores the JWKS.
MetadataInfo is the User_attributes->>"$.metadata".
MySQLPrivilege is the in-memory cache of mysql privilege tables.
PasswordLocking is the User_attributes->>"$.Password_locking".
UserAttributesInfo is the 'User_attributes' in privilege cache.
UserPrivileges implements privilege.Manager interface.
UserRecord is used to represent a user record in privilege cache.

# Type aliases

SSLType is enum value for GlobalPrivValue.SSLType.