package
2.2.1+incompatible
Repository: https://github.com/goharbor/harbor.git
Documentation: pkg.go.dev
# Functions
Login authenticates user credentials based on setting.
NewErrAuth ...
NewUserLock ...
OnBoardGroup - Create a user group in harbor db, if altGroupName is not empty, take the altGroupName as groupName in harbor DB.
OnBoardUser will check if a user exists in user table, if not insert the user and put the id in the pointer of user model, if it does exist, return the user's profile.
PostAuthenticate -.
Register add different authenticators to registry map.
SearchAndOnBoardGroup ..
SearchAndOnBoardUser ..
SearchGroup -- Search group in authenticator, groupKey is the unique attribute of group in authenticator, for LDAP, the key is group DN.
SearchUser --.
# Variables
ErrDuplicateLDAPGroup ...
ErrInvalidLDAPGroupDN ...
ErrorGroupNotExist ...
ErrorUserNotExist ...
# Structs
DefaultAuthenticateHelper - default AuthenticateHelper implementation.
ErrAuth is the type of error to indicate a failed authentication due to user's error.
UserLock maintains a lock to block user from logging in within a short period of time.
# Interfaces
AuthenticateHelper provides interface for user management in different auth modes.