tmds

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: 10 Imported by: 2

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 (
	// TMDS IP and port
	IPv4 = "127.0.0.1"
	Port = 51679
)

Variables

This section is empty.

Functions

func AddressIPv4

func AddressIPv4() string

IPv4 address for TMDS

func NewServer

func NewServer(auditLogger audit.AuditLogger, options ...ConfigOpt) (*http.Server, error)

Create a new HTTP Task Metadata Server (TMDS)

Types

type Config

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

Configuration for TMDS

type ConfigOpt

type ConfigOpt func(*Config)

Function type for updating TMDS config

func WithBurstRate

func WithBurstRate(burstRate int) ConfigOpt

Set TMDS burst request rate limit

func WithHandler

func WithHandler(handler http.Handler) ConfigOpt

Set TMDS handler

func WithListenAddress

func WithListenAddress(listenAddr string) ConfigOpt

Set TMDS listen address

func WithReadTimeout

func WithReadTimeout(readTimeout time.Duration) ConfigOpt

Set TMDS read timeout

func WithSteadyStateRate

func WithSteadyStateRate(steadyStateRate float64) ConfigOpt

Set TMDS steady request rate limit

func WithWriteTimeout

func WithWriteTimeout(writeTimeout time.Duration) ConfigOpt

Set TMDS write timeout

Directories

Path Synopsis
handlers
response
This package defines some common types used by all task metadata functions
This package defines some common types used by all task metadata functions
taskprotection/v1/handlers
Package handlers is a generated GoMock package.
Package handlers is a generated GoMock package.
v1
v2
v4
v4/state/mocks
Package mock_state is a generated GoMock package.
Package mock_state is a generated GoMock package.
utils
mux

Jump to

Keyboard shortcuts

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