secret

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2026 License: MIT Imports: 3 Imported by: 0

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

func AddToRequest(req *http.Request, secret string) error

AddToRequest add the secret to request

func FromRequest

func FromRequest(req *http.Request) string

FromRequest tries to get Harbor Secret from request header. It will return empty string if the request is nil.

Types

This section is empty.

Jump to

Keyboard shortcuts

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