util

package
v0.15.0-rancher84 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindEnvAny

func FindEnvAny(names ...string) string

func GetProxyURL

func GetProxyURL(hostUrl string) (*url.URL, error)

GetProxyURL returns the URL of the proxy to use for this given hostUrl as indicated by the environment variables HTTP_PROXY, HTTPS_PROXY and NO_PROXY (or the lowercase versions thereof). HTTPS_PROXY takes precedence over HTTP_PROXY for https requests. The hostUrl may be either a complete URL or a "host[:port]", in which case the "http" scheme is assumed.

Types

This section is empty.

Jump to

Keyboard shortcuts

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