Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func ToDuration ¶ added in v0.21.0
Types ¶
type Config ¶ added in v0.21.0
type Config struct {
LocalEndpoint *endpoint.Local
// These are hooks to allow unit tests to mock behavior.
CreateServerConnection CreateServerConnectionFn
FindSourceIP FindSrcIPFunction
RunLoop func(stopCh <-chan struct{}, doCheck func())
}
type CreateServerConnectionFn ¶ added in v0.21.0
type CreateServerConnectionFn func(port int32, family k8snet.IPFamily) (ServerConnection, error)
type FindSrcIPFunction ¶ added in v0.21.0
type Interface ¶
type Interface interface {
Run(stopCh <-chan struct{}) error
AddEndpoint(endpoint *v1.Endpoint, family k8snet.IPFamily)
RemoveEndpoint(endpointName string)
GetReadyChannel() chan *NATEndpointInfo
}
func NewWithConfig ¶ added in v0.21.0
type NATEndpointInfo ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.