password

package
v1.122.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

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

func ValidateCurrentPassword(kotsStore store.Store, currentPassword string) error

ValidateCurrentPassword - will compare the password with the stored password and return an error if they don't match

func ValidatePasswordInput

func ValidatePasswordInput(currentPassword string, newPassword string) error

ValidatePasswordInput - will validate length and complexity of new password and check if it is different from current password

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL