Documentation ¶
Overview ¶
Package handlers deals with the agent introspection api.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ServeIntrospectionHTTPEndpoint ¶
func ServeIntrospectionHTTPEndpoint(containerInstanceArn *string, taskEngine engine.TaskEngine, cfg *config.Config)
ServeIntrospectionHTTPEndpoint 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 ServeTaskHTTPEndpoint ¶
func ServeTaskHTTPEndpoint(credentialsManager credentials.Manager, state dockerstate.TaskEngineState, ecsClient api.ECSClient, containerInstanceArn string, cfg *config.Config, statsEngine stats.Engine, availabilityZone string)
ServeTaskHTTPEndpoint 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.