handlers

package
v1.27.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 28, 2019 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Overview

Package handlers deals with the agent introspection api.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ServeIntrospectionHTTPEndpoint added in v1.21.0

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 added in v1.21.0

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.

Directories

Path Synopsis
Package mock_utils is a generated GoMock package.
Package mock_utils is a generated GoMock package.
http
Package mock_http is a generated GoMock package.
Package mock_http is a generated GoMock package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL