proxy

package
v0.0.0-...-05f81da Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultGetProxyValue

func DefaultGetProxyValue(prefix string) string

DefaultGetProxyValue default implementation which only pulls from the current environment variables

func GetProxyValues

func GetProxyValues() []string

GetProxyValues returns a set of environment variable for a Bash shell command

func SetGetProxyValueFunc

func SetGetProxyValueFunc(f GetProxyValueFunc)

SetGetProxyValueFunc save the function used to return a string value for a Proxy based on the string prefix passed

func SetHTTPSProxy

func SetHTTPSProxy(addr string)

SetHTTPSProxy defines the HTTPS_PROXY env var value for all the cmd executions

func SetPreProxyFunc

func SetPreProxyFunc(f func())

SetPreProxyFunc save the function used to run before processing proxies This is currently used by Gnome UI to copy Network Proxy from install user

Types

type GetProxyValueFunc

type GetProxyValueFunc func(prefix string) string

GetProxyValueFunc is the type of the GetProxyValue function

Jump to

Keyboard shortcuts

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