netconfhttp

package
v0.18.8 Latest Latest
Warning

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

Go to latest
Published: May 14, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewInjectableTransport added in v0.18.6

func NewInjectableTransport(rt http.RoundTripper) http.RoundTripper

NewInjectableTransport returns a http.RoundTripper that extracts DNS configuration from each request's context to determine the appropriate resolver.

func NewTransport

func NewTransport(rt http.RoundTripper, dns *oci.DNSConfig) http.RoundTripper

NewTransport returns a http.RoundTripper that will respect the settings in the given network configuration as a logical override to the host's /etc/hosts and/or /etc/resolv.conf.

func WithDNSConfig added in v0.18.6

func WithDNSConfig(ctx context.Context, dns *oci.DNSConfig) context.Context

WithDNSConfig adds DNS configuration to a context

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳