proxylist

package module
v0.0.0-...-ea819e2 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2018 License: MIT Imports: 3 Imported by: 0

README

MacOS Proxy List

This project is simple wrapper library around calls to MacOS's Core Foundation framework to obtain proxy settings from the system without needing to execute sub-processes like networksetup to obtain the information.

Information obtained from the Core Foundation framework is convert to native Golang types so importing projects can make use the data returned by the package without any need to implement your own type conversions.

Update Notice

This package will only be updated if memory leaks or security bugs are identified, no feature additions will be supported.

If you identify a memory leak or a security bug please either open an issue and a pull request or message me directly.

MIT License

Copyright (c) 2018 Liam Haworth liamh@familyzone.com

Copyright (c) 2018 Family Zone Cyber Safety Ltd

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Documentation

Index

Constants

View Source
const (
	KeyExceptionsList            Key = "ExceptionsList"
	KeyExcludeSimpleHostnames        = "ExcludeSimpleHostnames"
	KeyFTPEnable                     = "FTPEnable"
	KeyFTPPassive                    = "FTPPassive"
	KeyFTPPort                       = "FTPPort"
	KeyFTPProxy                      = "FTPProxy"
	KeyGopherEnable                  = "GopherEnable"
	KeyGopherPort                    = "GopherPort"
	KeyGopherProxy                   = "GopherProxy"
	KeyHTTPEnable                    = "HTTPEnable"
	KeyHTTPPort                      = "HTTPPort"
	KeyHTTPProxy                     = "HTTPProxy"
	KeyHTTPSEnable                   = "HTTPSEnable"
	KeyHTTPSPort                     = "HTTPSPort"
	KeyHTTPSProxy                    = "HTTPSProxy"
	KeyRTSPEnable                    = "RTSPEnable"
	KeyRTSPPort                      = "RTSPPort"
	KeyRTSPProxy                     = "RTSPProxy"
	KeySOCKSEnable                   = "SOCKSEnable"
	KeySOCKSPort                     = "SOCKSPort"
	KeySOCKSProxy                    = "SOCKSProxy"
	KeyProxyAutoConfigEnable         = "ProxyAutoConfigEnable"
	KeyProxyAutoConfigJavaScript     = "ProxyAutoConfigJavaScript"
	KeyProxyAutoConfigURLString      = "ProxyAutoConfigURLString"
	KeyProxyAutoDiscoveryEnable      = "ProxyAutoDiscoveryEnable"
)

Variables

This section is empty.

Functions

func GetProxyList

func GetProxyList() (map[Key]interface{}, error)

GetProxyList will query the macOS system for the current proxy configuration and return a Golang map of proxy settings and their values

Types

type Key

type Key string

Jump to

Keyboard shortcuts

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