package
0.0.0-20240214230306-915dd3019f12
Repository: https://github.com/khulnasoft/kengine-plugin-sdk-go.git
Documentation: pkg.go.dev

# Functions

New creates a new proxy client from a given config.
SecureSocksProxyEnabledOnDS checks the datasource json data for `enableSecureSocksProxy` to determine if the secure socks proxy should be enabled on it.

# Variables

DefaultTimeoutOptions default timeout/connection options for the proxy.
PluginSecureSocksProxyAllowInsecure is a constant for the GF_SECURE_SOCKS_DATASOURCE_PROXY_ALLOW_INSECURE environment variable used to specify if the proxy should use a TLS dialer.
PluginSecureSocksProxyClientCert is a constant for the GF_SECURE_SOCKS_DATASOURCE_PROXY_CLIENT_CERT environment variable used to specify the file location of the client cert for the secure socks proxy.
PluginSecureSocksProxyClientKey is a constant for the GF_SECURE_SOCKS_DATASOURCE_PROXY_CLIENT_KEY environment variable used to specify the file location of the client key for the secure socks proxy.
PluginSecureSocksProxyEnabled is a constant for the GF_SECURE_SOCKS_DATASOURCE_PROXY_SERVER_ENABLED environment variable used to specify if a secure socks proxy is allowed to be used for datasource connections.
PluginSecureSocksProxyProxyAddress is a constant for the GF_SECURE_SOCKS_DATASOURCE_PROXY_PROXY_ADDRESS environment variable used to specify the secure socks proxy server address to proxy the connections to.
PluginSecureSocksProxyRootCACert is a constant for the GF_SECURE_SOCKS_DATASOURCE_PROXY_ROOT_CA_CERT environment variable used to specify the file location of the root ca for the secure socks proxy.
PluginSecureSocksProxyServerName is a constant for the GF_SECURE_SOCKS_DATASOURCE_PROXY_SERVER_NAME environment variable used to specify the server name of the secure socks proxy.

# Structs

AuthOptions socks5 username and password options.
ClientCfg contains the information needed to allow datasource connections to be proxied to a secure socks proxy.
Options defines per datasource options for creating the proxy dialer.
TimeoutOptions timeout/connection options.

# Interfaces

Client is the main Proxy Client interface.