Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrCurrentPasswordDoesNotMatch = errors.New("The current password provided is incorrect.") ErrNewPasswordTooShort = errors.New("The new password must be at least 6 characters.") ErrNewPasswordShouldBeDifferent = errors.New("The new password must be different from the current password.") )
Functions ¶
func ChangePassword ¶
func ChangePassword(clientset *kubernetes.Clientset, namespace string, newPassword string) error
ChangePassword - will change the password in the kotsadm secret
func ValidateCurrentPassword ¶
ValidateCurrentPassword - will compare the password with the stored password and return an error if they don't match
func ValidatePasswordInput ¶
ValidatePasswordInput - will validate length and complexity of new password and check if it is different from current password
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.