Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CmdExecutor ¶
type Factory ¶
type Factory struct {
// contains filtered or unexported fields
}
func NewFactory ¶
func (Factory) NewForwarder ¶
func (f Factory) NewForwarder(opts ForwarderOpts) (Forwarder, error)
func (Factory) NewOriginalDstResolver ¶
func (f Factory) NewOriginalDstResolver() (OriginalDstResolver, error)
type ForwarderOpts ¶
type Iptables ¶
type Iptables struct {
// contains filtered or unexported fields
}
func NewIptables ¶
func NewIptables(opts IptablesOpts, exec CmdExecutor, logger Logger) Iptables
func (Iptables) CheckPrereqs ¶
type IptablesOpts ¶
type LinuxOriginalDstResolver ¶
type LinuxOriginalDstResolver struct{}
func (LinuxOriginalDstResolver) GetOrigIPPort ¶
type Locking ¶
type Locking struct {
// contains filtered or unexported fields
}
func NewLocking ¶
func NewLocking() *Locking
func (*Locking) CheckPrereqs ¶
func (*Locking) SetForwarder ¶
type OriginalDstResolver ¶
type OsCmdExecutor ¶
type OsCmdExecutor struct {
// contains filtered or unexported fields
}
func NewOsCmdExecutor ¶
func NewOsCmdExecutor(logger Logger) OsCmdExecutor
func (OsCmdExecutor) CombinedOutput ¶
type Pfctl ¶
type Pfctl struct {
// contains filtered or unexported fields
}
func (*Pfctl) CheckPrereqs ¶
type PfctlResolver ¶
type PfctlResolver struct {
// contains filtered or unexported fields
}
func NewPfctlResolver ¶
func NewPfctlResolver(logger Logger) (PfctlResolver, error)
func (PfctlResolver) GetOrigIPPort ¶
func (PfctlResolver) GetOrigIPPortWithOpts ¶
func (r PfctlResolver) GetOrigIPPortWithOpts(opts PfctlResolverOpts) (net.IP, int, error)
type PfctlResolverOpts ¶
type StaticResolver ¶ added in v0.0.4
type StaticResolver struct {
// contains filtered or unexported fields
}
func NewStaticResolver ¶ added in v0.0.4
func NewStaticResolver(ip net.IP, port int) StaticResolver
func (StaticResolver) GetOrigIPPort ¶ added in v0.0.4
Click to show internal directories.
Click to hide internal directories.