proxy

package
v1.33.1 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EnvVars = []string{"HTTP_PROXY", "HTTPS_PROXY", "NO_PROXY", "http_proxy", "https_proxy", "no_proxy"}

EnvVars are variables we plumb through to the underlying container runtime

Functions

func ExcludeIP

func ExcludeIP(ip string) error

ExcludeIP takes ip or CIDR as string and excludes it from the http(s)_proxy

func IsIPExcluded

func IsIPExcluded(ip string) bool

IsIPExcluded checks if an IP is excluded from http(s)_proxy

func SetDockerEnv added in v1.11.0

func SetDockerEnv() []string

SetDockerEnv sets the proxy environment variables in the docker environment.

func UpdateTransport

func UpdateTransport(cfg *rest.Config) *rest.Config

UpdateTransport takes a k8s client *rest.config and returns a config without a proxy.

Types

This section is empty.

Jump to

Keyboard shortcuts

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