Documentation
¶
Index ¶
Constants ¶
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 request is nil.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.