Documentation
¶
Index ¶
- func IsClearConntrackNeeded(proto v1.Protocol) bool
- type Conntrack
- type Flow
- type IPPort
- type IPPortLeaf
- type Leaf
- type Sink
- func (ps *Sink) DeleteEndpoint(namespace, serviceName, key string)
- func (ps *Sink) DeleteService(namespace, name string)
- func (ps *Sink) Reset()
- func (ps *Sink) SetEndpoint(namespace, serviceName, key string, endpoint *localv1.Endpoint)
- func (ps *Sink) SetService(svc *localv1.Service)
- func (ps *Sink) Setup()
- func (s *Sink) Sync()
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsClearConntrackNeeded ¶
IsClearConntrackNeeded returns true if protocol requires conntrack cleanup for the stale connections
Types ¶
type Conntrack ¶
type Conntrack struct {
// contains filtered or unexported fields
}
Example ¶
Output: -- initial state -- /bin/conntrack [-D -p tcp --dport 80 --orig-dst 10.1.1.1] /bin/conntrack [-D -p udp --dport 53 --orig-dst 10.1.1.1] -- add one endpoint -- -- remove one endpoint -- /bin/conntrack [-D -p udp --dport 53 --dst-nat 10.1.3.1 --orig-dst 10.1.1.1] -- remove one service -- /bin/conntrack [-D -p udp --dport 53 --dst-nat 10.1.2.1 --orig-dst 10.1.1.1]
func (Conntrack) Callback ¶
func (ct Conntrack) Callback(ch <-chan *client.ServiceEndpoints)
type IPPortLeaf ¶
type Sink ¶
func (*Sink) DeleteEndpoint ¶
func (*Sink) DeleteService ¶
func (*Sink) SetEndpoint ¶
func (*Sink) SetService ¶
Click to show internal directories.
Click to hide internal directories.