Documentation
¶
Index ¶
- Constants
- type CaData
- 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) RegisterInterceptor(interceptor interceptor.Interceptor)
- 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" )
View Source
const HeaderSnykTerminate = "snyk-terminate"
HeaderSnykTerminate is a header to signal that the typescript CLI should terminate execution.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CaData ¶
func InitCA ¶
func InitCA(config configuration.Configuration, cliVersion string, logger *zerolog.Logger) (*CaData, error)
type WrapperProxy ¶
type WrapperProxy struct {
DebugLogger *zerolog.Logger
CertificateLocation string
// contains filtered or unexported fields
}
func NewWrapperProxy ¶
func NewWrapperProxy(config configuration.Configuration, cliVersion string, debugLogger *zerolog.Logger, ca CaData) (*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) RegisterInterceptor ¶
func (p *WrapperProxy) RegisterInterceptor(interceptor interceptor.Interceptor)
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.