Documentation
¶
Index ¶
- func NewDialTransportWithHostAliases(rt *http.Transport, dns *oci.DNSConfig, hostAliases map[string]string) *http.Transport
- func NewInjectableTransport(rt http.RoundTripper) http.RoundTripper
- func NewTransport(rt http.RoundTripper, dns *oci.DNSConfig) http.RoundTripper
- func WithDNSConfig(ctx context.Context, dns *oci.DNSConfig) context.Context
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDialTransportWithHostAliases ¶ added in v0.21.6
func NewDialTransportWithHostAliases(rt *http.Transport, dns *oci.DNSConfig, hostAliases map[string]string) *http.Transport
NewDialTransportWithHostAliases returns a clone of rt that dials bound service aliases through Dagger DNS while leaving the request host unchanged.
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.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.