Documentation ¶
Index ¶
- Constants
- func BuildLogger(logLevel, component string) lager.Logger
- func DBUsername(requestedUsername, instanceID, appID, engine string, shared bool) string
- func Decrypt(src, key, iv []byte) (string, error)
- func Encrypt(msg string, key, iv []byte) ([]byte, error)
- func IsSimpleIdentifier(arg string) bool
- func IsValidExtensionName(arg string) bool
- func RandIV() ([]byte, error)
- func RandPassword() (string, error)
- func RandString(length int) (string, error)
- func RandUsername() (string, error)
Constants ¶
View Source
const PasswordLength = 24
Must be a multiple of 4
View Source
const UsernameLength = 13
Must be a multiple of 4 plus 1 Must be <= 16 because mysql
Variables ¶
This section is empty.
Functions ¶
func BuildLogger ¶ added in v1.0.0
func DBUsername ¶ added in v1.0.0
requestedUsername should have already been tested for validity
func IsSimpleIdentifier ¶ added in v1.0.0
func IsValidExtensionName ¶ added in v1.0.0
func RandPassword ¶ added in v1.0.0
func RandString ¶ added in v1.0.0
func RandUsername ¶ added in v1.0.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.