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" )
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"`
// DisallowedCategories
DisallowedCategories []string `json:"disallowedCategories,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
KeyPatterns []string `json:"keyPatterns,omitempty"`
// KeyReadPatterns >= 7.0 support key read patterns
KeyReadPatterns []string `json:"keyReadPatterns,omitempty"`
// KeyWritePatterns >= 7.0 support key write patterns
KeyWritePatterns []string `json:"keyWritePatterns,omitempty"`
// Channels >= 7.0 support channel patterns
Channels []string `json:"channels,omitempty"`
}
Rule acl rules
func (*Rule) IsACLCommandEnabled ¶
func (*Rule) IsACLCommandsDisabled ¶
Click to show internal directories.
Click to hide internal directories.