Documentation ¶
Index ¶
- func AWSHeaderMiddleware(next http.HandlerFunc) http.HandlerFunc
- func BaseHandler(w http.ResponseWriter, r *http.Request)
- func BaseVersionHandler(w http.ResponseWriter, r *http.Request)
- func BrowserFilterMiddleware(next http.HandlerFunc) http.HandlerFunc
- func HealthcheckHandler(w http.ResponseWriter, r *http.Request)
- func IMDSHandler(w http.ResponseWriter, r *http.Request)
- func IamInfoHandler(w http.ResponseWriter, r *http.Request)
- func InstanceIdentityDocumentHandler(w http.ResponseWriter, r *http.Request)
- func InstanceMetadataMiddleware(next http.HandlerFunc) http.HandlerFunc
- func NotFoundHandler(w http.ResponseWriter, r *http.Request)
- func RoleHandler(w http.ResponseWriter, r *http.Request)
- func Run(host string, port int, role, region string, shutdown chan os.Signal) error
- func TaskMetadataMiddleware(next http.HandlerFunc) http.HandlerFunc
- func TokenHandler(w http.ResponseWriter, r *http.Request)
- func TokenMiddleware(next http.HandlerFunc) http.HandlerFunc
- type ECSMetaDataCredentialResponse
- type MetaDataCredentialResponse
- type MetaDataIamInfoResponse
- type MetaDataInstanceIdentityDocumentResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AWSHeaderMiddleware ¶
func AWSHeaderMiddleware(next http.HandlerFunc) http.HandlerFunc
func BaseHandler ¶
func BaseHandler(w http.ResponseWriter, r *http.Request)
func BaseVersionHandler ¶
func BaseVersionHandler(w http.ResponseWriter, r *http.Request)
func BrowserFilterMiddleware ¶
func BrowserFilterMiddleware(next http.HandlerFunc) http.HandlerFunc
BrowserFilterMiddleware is a middleware designed mitigate risks related to DNS rebinding, cross site request forgery, and any other traffic from a well behaved modern web browser
func HealthcheckHandler ¶
func HealthcheckHandler(w http.ResponseWriter, r *http.Request)
func IMDSHandler ¶
func IMDSHandler(w http.ResponseWriter, r *http.Request)
func IamInfoHandler ¶
func IamInfoHandler(w http.ResponseWriter, r *http.Request)
func InstanceIdentityDocumentHandler ¶
func InstanceIdentityDocumentHandler(w http.ResponseWriter, r *http.Request)
func InstanceMetadataMiddleware ¶
func InstanceMetadataMiddleware(next http.HandlerFunc) http.HandlerFunc
InstanceMetadataMiddleware is a convenience wrapper that chains TokenMiddleware, BrowserFilterMiddleware, and AWSHeaderMiddleware
func NotFoundHandler ¶
func NotFoundHandler(w http.ResponseWriter, r *http.Request)
func RoleHandler ¶
func RoleHandler(w http.ResponseWriter, r *http.Request)
func TaskMetadataMiddleware ¶
func TaskMetadataMiddleware(next http.HandlerFunc) http.HandlerFunc
TaskMetadataMiddleware is a convenience wrapper that chains BrowserFilterMiddleware and AWSHeaderMiddleware
func TokenHandler ¶
func TokenHandler(w http.ResponseWriter, r *http.Request)
func TokenMiddleware ¶
func TokenMiddleware(next http.HandlerFunc) http.HandlerFunc
Types ¶
type MetaDataIamInfoResponse ¶
type MetaDataInstanceIdentityDocumentResponse ¶
type MetaDataInstanceIdentityDocumentResponse struct { DevpayProductCodes []string `json:"devpayProductCodes"` MarkerplaceProductCodes []string `json:"marketplaceProductCodes"` PrivateIP string `json:"privateIp"` Version string `json:"version"` InstanceID string `json:"instanceId"` BillingProductCodes []string `json:"billingProducts"` InstanceType string `json:"instanceType"` AvailabilityZone string `json:"availabilityZone"` KernelID string `json:"kernelId"` RamdiskID string `json:"ramdiskId"` AccountID string `json:"accountId"` Architecture string `json:"architecture"` ImageID string `json:"imageId"` PendingTime string `json:"pendingTime"` Region string `json:"region"` }
Click to show internal directories.
Click to hide internal directories.