docker

package
v0.0.0-...-d8853ad Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package docker implements helper functions we use while running under Docker. This should only be used for development purposes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Inside

func Inside() bool

func NewLocalhostFallbackRoundTripper

func NewLocalhostFallbackRoundTripper(transport http.RoundTripper) http.RoundTripper

NewLocalhostFallbackRoundTripper returns an http.RoundTripper that will retry requests to localhost that fail with ECONNREFUSED by rewriting the request to use host.docker.internal.

Types

This section is empty.

Jump to

Keyboard shortcuts

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