handlers

package
v1.20.1 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2018 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 2 more Imports: 18 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 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.

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