Documentation ¶
Index ¶
Constants ¶
View Source
const ( // DefaultUserName from reids 6.0, there is a default user named "default" // for compatibility, the default user set as RoleDeveloper DefaultUserName = "default" DefaultOperatorUserName = "operator" // password secret key name PasswordSecretKey = "password" )
View Source
const ( RoleOperator = "Operator" RoleDeveloper = "Developer" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Password ¶
type Password struct { SecretName string `json:"secretName,omitempty"` // contains filtered or unexported fields }
Password
func (*Password) GetSecretName ¶
type Rule ¶
type Rule struct { // Categories Categories []string `json:"categories,omitempty"` // AllowedCommands supports <command> and <command>|<subcommand> AllowedCommands []string `json:"allowedCommands,omitempty"` // DisallowedCommands supports <command> and <command>|<subcommand> DisallowedCommands []string `json:"disallowedCommands,omitempty"` // KeyPatterns support multi patterns, for 7.0 support %R~ and %W~ patterns KeyPatterns []string `json:"keyPatterns,omitempty"` }
Rule acl rules
This rule supports redis 7.0, which is compatable with 6.0
Click to show internal directories.
Click to hide internal directories.