Documentation ¶
Overview ¶
Package handlers deals with the agent introspection api.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func V1ServeHTTP ¶ added in v1.19.0
func V1ServeHTTP(containerInstanceArn *string, taskEngine engine.TaskEngine, cfg *config.Config)
V1ServeHTTP serves information about this agent/containerInstance and tasks running on it. "V1" here indicates the hostname version of this server instead of the handler versions, i.e. "V1" server can include "V1" and "V2" handlers.
func V2ServeHTTP ¶ added in v1.19.0
func V2ServeHTTP(credentialsManager credentials.Manager, state dockerstate.TaskEngineState, containerInstanceArn string, cfg *config.Config, statsEngine stats.Engine)
V2ServeHTTP serves task/container metadata, task/container stats, and IAM Role Credentials for Tasks being managed by the agent.
Types ¶
type LoggingHandler ¶
type LoggingHandler struct {
// contains filtered or unexported fields
}
LoggingHandler is used to log all requests for an endpoint.
func NewLoggingHandler ¶ added in v1.11.0
func NewLoggingHandler(handler http.Handler) LoggingHandler
NewLoggingHandler creates a new LoggingHandler object.
func (LoggingHandler) ServeHTTP ¶
func (lh LoggingHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
ServeHTTP logs the method and remote address of the request.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.