Documentation
¶
Index ¶
- Constants
- type CAInjector
- func (i *CAInjector) CACertPEM() []byte
- func (i *CAInjector) CACertPath() string
- func (i *CAInjector) GetCurlFlags() string
- func (i *CAInjector) GetEnvVars() map[string]string
- func (i *CAInjector) GetInitScript() string
- func (i *CAInjector) GetInstallScript() string
- func (i *CAInjector) GetNodeCode() string
- func (i *CAInjector) GetPythonCode() string
- func (i *CAInjector) GetWgetFlags() string
- func (i *CAInjector) WriteFiles(destDir string) error
- type CAPool
- type HTTPInterceptor
- type NFTablesNAT
- type NFTablesRules
- type ProxyConfig
- type TransparentProxy
Constants ¶
View Source
const (
SO_ORIGINAL_DST = 80
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CAInjector ¶
type CAInjector struct {
// contains filtered or unexported fields
}
func NewCAInjector ¶
func NewCAInjector(pool *CAPool) *CAInjector
func (*CAInjector) CACertPEM ¶
func (i *CAInjector) CACertPEM() []byte
func (*CAInjector) CACertPath ¶
func (i *CAInjector) CACertPath() string
func (*CAInjector) GetCurlFlags ¶
func (i *CAInjector) GetCurlFlags() string
func (*CAInjector) GetEnvVars ¶
func (i *CAInjector) GetEnvVars() map[string]string
func (*CAInjector) GetInitScript ¶
func (i *CAInjector) GetInitScript() string
func (*CAInjector) GetInstallScript ¶
func (i *CAInjector) GetInstallScript() string
func (*CAInjector) GetNodeCode ¶
func (i *CAInjector) GetNodeCode() string
func (*CAInjector) GetPythonCode ¶
func (i *CAInjector) GetPythonCode() string
func (*CAInjector) GetWgetFlags ¶
func (i *CAInjector) GetWgetFlags() string
func (*CAInjector) WriteFiles ¶
func (i *CAInjector) WriteFiles(destDir string) error
type CAPool ¶
type CAPool struct {
// contains filtered or unexported fields
}
func (*CAPool) CACertPath ¶
func (*CAPool) GetCertificate ¶
func (p *CAPool) GetCertificate(serverName string) (*tls.Certificate, error)
type HTTPInterceptor ¶
type HTTPInterceptor struct {
// contains filtered or unexported fields
}
func NewHTTPInterceptor ¶
func NewHTTPInterceptor(pol *policy.Engine, events chan api.Event) *HTTPInterceptor
func (*HTTPInterceptor) CAPool ¶
func (i *HTTPInterceptor) CAPool() *CAPool
func (*HTTPInterceptor) HandleHTTP ¶
func (i *HTTPInterceptor) HandleHTTP(guestConn net.Conn, dstIP string, dstPort int)
func (*HTTPInterceptor) HandleHTTPS ¶
func (i *HTTPInterceptor) HandleHTTPS(guestConn net.Conn, dstIP string, dstPort int)
type NFTablesNAT ¶
type NFTablesNAT struct {
// contains filtered or unexported fields
}
func NewNFTablesNAT ¶
func NewNFTablesNAT(tapInterface string) *NFTablesNAT
func (*NFTablesNAT) Cleanup ¶
func (n *NFTablesNAT) Cleanup() error
func (*NFTablesNAT) Setup ¶
func (n *NFTablesNAT) Setup() error
type NFTablesRules ¶
type NFTablesRules struct {
// contains filtered or unexported fields
}
func NewNFTablesRules ¶
func NewNFTablesRules(tapInterface, gatewayIP string, httpPort, httpsPort int) *NFTablesRules
func (*NFTablesRules) Cleanup ¶
func (r *NFTablesRules) Cleanup() error
func (*NFTablesRules) Setup ¶
func (r *NFTablesRules) Setup() error
type ProxyConfig ¶
type TransparentProxy ¶
type TransparentProxy struct {
// contains filtered or unexported fields
}
func NewTransparentProxy ¶
func NewTransparentProxy(cfg *ProxyConfig) (*TransparentProxy, error)
func (*TransparentProxy) BindAddr ¶
func (tp *TransparentProxy) BindAddr() string
func (*TransparentProxy) CAPool ¶
func (tp *TransparentProxy) CAPool() *CAPool
func (*TransparentProxy) Close ¶
func (tp *TransparentProxy) Close() error
func (*TransparentProxy) HTTPPort ¶
func (tp *TransparentProxy) HTTPPort() int
func (*TransparentProxy) HTTPSPort ¶
func (tp *TransparentProxy) HTTPSPort() int
func (*TransparentProxy) Start ¶
func (tp *TransparentProxy) Start()
Click to show internal directories.
Click to hide internal directories.