v4

package
v0.0.0-...-b702281 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Overview

Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with the License. A copy of the License is located at

http://aws.amazon.com/apache2.0/

or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

View Source
const (
	EndpointContainerIDMuxName = "endpointContainerIDMuxName"
)

v3EndpointIDMuxName is the key that's used in gorilla/mux to get the v3 endpoint ID.

Variables

This section is empty.

Functions

func ContainerMetadataHandler

func ContainerMetadataHandler(
	agentState state.AgentState,
	metricsFactory metrics.EntryFactory,
) func(http.ResponseWriter, *http.Request)

ContainerMetadataHandler returns the HTTP handler function for handling container metadata requests.

func ContainerMetadataPath

func ContainerMetadataPath() string

ContainerMetadataPath specifies the relative URI path for serving container metadata.

func ContainerStatsHandler

func ContainerStatsHandler(
	agentState state.AgentState,
	metricsFactory metrics.EntryFactory,
) func(http.ResponseWriter, *http.Request)

Returns an HTTP handler for v4 container stats endpoint

func ContainerStatsPath

func ContainerStatsPath() string

Returns a standard URI path for v4 container stats endpoint.

func TaskMetadataHandler

func TaskMetadataHandler(
	agentState state.AgentState,
	metricsFactory metrics.EntryFactory,
) func(http.ResponseWriter, *http.Request)

TaskMetadataHandler returns the HTTP handler function for handling task metadata requests.

func TaskMetadataPath

func TaskMetadataPath() string

Returns the standard URI path for task metadata endpoint.

func TaskMetadataWithTagsHandler

func TaskMetadataWithTagsHandler(
	agentState state.AgentState,
	metricsFactory metrics.EntryFactory,
) func(http.ResponseWriter, *http.Request)

TaskMetadataHandler returns the HTTP handler function for handling task metadata with tags requests.

func TaskMetadataWithTagsPath

func TaskMetadataWithTagsPath() string

Returns the standard URI path for task metadata with tags endpoint.

func TaskStatsHandler

func TaskStatsHandler(
	agentState state.AgentState,
	metricsFactory metrics.EntryFactory,
) func(http.ResponseWriter, *http.Request)

Returns an HTTP handler for v4 task stats endpoint

func TaskStatsPath

func TaskStatsPath() string

Returns a standard URI path for v4 task stats endpoint.

Types

This section is empty.

Directories

Path Synopsis
mocks
Package mock_state is a generated GoMock package.
Package mock_state is a generated GoMock package.

Jump to

Keyboard shortcuts

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