Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateToken ¶
func GenerateToken(res http.ResponseWriter, req *http.Request)
GenerateToken returns a token with the specified TTL used for IMDSv2 requests
func ValidateToken ¶
func ValidateToken(pathHandler server.HandlerType) server.HandlerType
ValidateToken is a wrapper to validate token before passing request to provided handler
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.