handlers

package
v1.17.0 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2018 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 4 more Imports: 13 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 ServeHttp

func ServeHttp(containerInstanceArn *string, taskEngine engine.TaskEngine, cfg *config.Config)

ServeHttp serves information about this agent / containerInstance and tasks running on it.

func ValueFromRequest added in v1.11.0

func ValueFromRequest(r *http.Request, field string) (string, bool)

ValueFromRequest returns the value of a field in the http request. The boolean value is set to true if the field exists in the query.

Types

type DockerStateResolver added in v1.8.0

type DockerStateResolver interface {
	State() dockerstate.TaskEngineState
}

DockerStateResolver is a sub-interface for the engine.TaskEngine interface to make it easy to test code in this package

type LoggingHandler

type LoggingHandler struct {
	// contains filtered or unexported fields
}

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)

Directories

Path Synopsis
types
v1
v2

Jump to

Keyboard shortcuts

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