Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var GenerateAccessTokenFromFile = func(saFilePath string) (string, time.Duration, error) { if token, duration := activeAccessToken(); token != "" { return token, duration, nil } data, err := ioutil.ReadFile(saFilePath) if err != nil { return "", 0, err } return generateAccessToken(data) }
Functions ¶
func MakeTokenAgentHandler ¶
Create the token agent handler to provide envoy with access token generated by the service account credential.
It follows the following scheme: Request: GET /local/access_token. Response: access token response is a JSON payload in the format:
{ "access_token": "string", "expires_in": uint }
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.