Documentation ¶
Index ¶
- Constants
- type ProxyInfo
- type WrapperProxy
- func (p *WrapperProxy) Close()
- func (p *WrapperProxy) HandleConnect(req string, ctx *goproxy.ProxyCtx) (*goproxy.ConnectAction, string)
- func (p *WrapperProxy) ProxyInfo() *ProxyInfo
- func (p *WrapperProxy) SetHeaderFunction(addHeaderFunc func(*http.Request) error)
- func (p *WrapperProxy) SetUpstreamProxy(proxyFunc func(req *http.Request) (*url.URL, error))
- func (p *WrapperProxy) SetUpstreamProxyAuthentication(mechanism httpauth.AuthenticationMechanism)
- func (p *WrapperProxy) SetUpstreamProxyFromUrl(proxyAddr string)
- func (p *WrapperProxy) Start() error
- func (p *WrapperProxy) Stop()
- func (p *WrapperProxy) Transport() *http.Transport
- func (p *WrapperProxy) UpstreamProxy() func(req *http.Request) (*url.URL, error)
Constants ¶
View Source
const ( PROXY_REALM = "snykcli_realm" PROXY_USERNAME = "snykcli" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WrapperProxy ¶
type WrapperProxy struct { DebugLogger *log.Logger CertificateLocation string // contains filtered or unexported fields }
func NewWrapperProxy ¶
func NewWrapperProxy(config configuration.Configuration, cliVersion string, debugLogger *log.Logger) (*WrapperProxy, error)
func (*WrapperProxy) Close ¶
func (p *WrapperProxy) Close()
func (*WrapperProxy) HandleConnect ¶
func (p *WrapperProxy) HandleConnect(req string, ctx *goproxy.ProxyCtx) (*goproxy.ConnectAction, string)
func (*WrapperProxy) ProxyInfo ¶
func (p *WrapperProxy) ProxyInfo() *ProxyInfo
func (*WrapperProxy) SetHeaderFunction ¶
func (p *WrapperProxy) SetHeaderFunction(addHeaderFunc func(*http.Request) error)
func (*WrapperProxy) SetUpstreamProxy ¶
func (*WrapperProxy) SetUpstreamProxyAuthentication ¶
func (p *WrapperProxy) SetUpstreamProxyAuthentication(mechanism httpauth.AuthenticationMechanism)
func (*WrapperProxy) SetUpstreamProxyFromUrl ¶
func (p *WrapperProxy) SetUpstreamProxyFromUrl(proxyAddr string)
func (*WrapperProxy) Start ¶
func (p *WrapperProxy) Start() error
func (*WrapperProxy) Stop ¶
func (p *WrapperProxy) Stop()
func (*WrapperProxy) Transport ¶
func (p *WrapperProxy) Transport() *http.Transport
func (*WrapperProxy) UpstreamProxy ¶
Click to show internal directories.
Click to hide internal directories.