Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewIAMHandler ¶
func NewIAMHandler(upstream http.Handler, containerStore docker.ContainerStore, credentialStore iam.CredentialStore, disableUpstream bool) fasthttp.RequestHandler
NewIAMHandler creates a http.Handler which responds to metadata API requests. When the request is for the IAM path, it looks up the IAM role in the container store and fetches those credentials. Otherwise, it acts as a reverse proxy for the real API.
Types ¶
Click to show internal directories.
Click to hide internal directories.