Documentation ¶
Index ¶
Constants ¶
View Source
const ( // AdminserverUser is the name of adminserver user AdminserverUser = "harbor-adminserver" // JobserviceUser is the name of jobservice user JobserviceUser = "harbor-jobservice" // CoreUser is the name of ui user CoreUser = "harbor-core" )
View Source
const HeaderPrefix = "Harbor-Secret "
HeaderPrefix is the prefix of the value of Authorization header. It has the space.
Variables ¶
This section is empty.
Functions ¶
func AddToRequest ¶
AddToRequest add the secret to request
func FromRequest ¶
FromRequest tries to get Harbor Secret from request header. It will return empty string if the reqeust is nil.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store the secrets and provides methods to validate secrets
func (*Store) GetUsername ¶
GetUsername returns the corresponding username of the secret
Click to show internal directories.
Click to hide internal directories.