Documentation ¶
Index ¶
- Constants
- func GenDnatMapKey(ip, protocol string, port int32) string
- type CreateGroupFunc
- type DeleteGroupFunc
- type SvcFlowEntry
- type SvcGroupEntry
- type SvcIndex
- func (s *SvcIndex) DeleteDnatFlow(backend string)
- func (s *SvcIndex) GetDnatFlow(backend string) uint64
- func (s *SvcIndex) GetSvcOvsInfo(svcID string) *SvcOvsInfo
- func (s *SvcIndex) GetSvcOvsInfoAndInitIfEmpty(svcID string) *SvcOvsInfo
- func (s *SvcIndex) IsSvcInfoNil(svcID string) bool
- func (s *SvcIndex) SetDnatFlow(backend string, flowID uint64)
- func (s *SvcIndex) TryCleanSvcOvsInfoCache(svcID string)
- type SvcOvsInfo
- func (s *SvcOvsInfo) DeleteGroupIfExist(portName string, groupType ertype.TrafficPolicyType, f DeleteGroupFunc)
- func (s *SvcOvsInfo) DeleteLBFlowsByPortName(portName string)
- func (s *SvcOvsInfo) GetAllGroups() []SvcGroupEntry
- func (s *SvcOvsInfo) GetAllLBFlows() []SvcFlowEntry
- func (s *SvcOvsInfo) GetAllSessionAffinityFlows() []SvcFlowEntry
- func (s *SvcOvsInfo) GetGroup(portName string, groupType ertype.TrafficPolicyType) uint32
- func (s *SvcOvsInfo) GetGroupAndCreateIfEmpty(portName string, groupType ertype.TrafficPolicyType, f CreateGroupFunc) (uint32, error)
- func (s *SvcOvsInfo) GetLBFlow(lbIP, portName string) uint64
- func (s *SvcOvsInfo) GetSessionAffinityFlow(lbIP, portName string) uint64
- func (s *SvcOvsInfo) IsEmpty() bool
- func (s *SvcOvsInfo) SetLBFlow(lbIP, portName string, flowID uint64)
- func (s *SvcOvsInfo) SetSessionAffinityFlow(lbIP, portName string, flowID uint64)
Constants ¶
View Source
const ( UnexistFlowID uint64 = 0 UnexistGroupID uint32 = 0 )
Variables ¶
This section is empty.
Functions ¶
func GenDnatMapKey ¶
Types ¶
type CreateGroupFunc ¶
type DeleteGroupFunc ¶
type DeleteGroupFunc func(gpID uint32)
type SvcFlowEntry ¶
type SvcGroupEntry ¶
type SvcGroupEntry struct { PortName string TrafficPolicy ertype.TrafficPolicyType GroupID uint32 }
type SvcIndex ¶
type SvcIndex struct {
// contains filtered or unexported fields
}
func NewSvcIndex ¶
func NewSvcIndex() *SvcIndex
func (*SvcIndex) DeleteDnatFlow ¶
func (*SvcIndex) GetDnatFlow ¶
func (*SvcIndex) GetSvcOvsInfo ¶
func (s *SvcIndex) GetSvcOvsInfo(svcID string) *SvcOvsInfo
func (*SvcIndex) GetSvcOvsInfoAndInitIfEmpty ¶
func (s *SvcIndex) GetSvcOvsInfoAndInitIfEmpty(svcID string) *SvcOvsInfo
func (*SvcIndex) SetDnatFlow ¶
func (*SvcIndex) TryCleanSvcOvsInfoCache ¶
type SvcOvsInfo ¶
type SvcOvsInfo struct {
// contains filtered or unexported fields
}
func NewSvcOvsInfo ¶
func NewSvcOvsInfo(svcID string) *SvcOvsInfo
func (*SvcOvsInfo) DeleteGroupIfExist ¶
func (s *SvcOvsInfo) DeleteGroupIfExist(portName string, groupType ertype.TrafficPolicyType, f DeleteGroupFunc)
func (*SvcOvsInfo) DeleteLBFlowsByPortName ¶
func (s *SvcOvsInfo) DeleteLBFlowsByPortName(portName string)
func (*SvcOvsInfo) GetAllGroups ¶
func (s *SvcOvsInfo) GetAllGroups() []SvcGroupEntry
func (*SvcOvsInfo) GetAllLBFlows ¶
func (s *SvcOvsInfo) GetAllLBFlows() []SvcFlowEntry
func (*SvcOvsInfo) GetAllSessionAffinityFlows ¶
func (s *SvcOvsInfo) GetAllSessionAffinityFlows() []SvcFlowEntry
func (*SvcOvsInfo) GetGroup ¶
func (s *SvcOvsInfo) GetGroup(portName string, groupType ertype.TrafficPolicyType) uint32
func (*SvcOvsInfo) GetGroupAndCreateIfEmpty ¶
func (s *SvcOvsInfo) GetGroupAndCreateIfEmpty(portName string, groupType ertype.TrafficPolicyType, f CreateGroupFunc) (uint32, error)
func (*SvcOvsInfo) GetLBFlow ¶
func (s *SvcOvsInfo) GetLBFlow(lbIP, portName string) uint64
func (*SvcOvsInfo) GetSessionAffinityFlow ¶
func (s *SvcOvsInfo) GetSessionAffinityFlow(lbIP, portName string) uint64
func (*SvcOvsInfo) IsEmpty ¶
func (s *SvcOvsInfo) IsEmpty() bool
func (*SvcOvsInfo) SetLBFlow ¶
func (s *SvcOvsInfo) SetLBFlow(lbIP, portName string, flowID uint64)
func (*SvcOvsInfo) SetSessionAffinityFlow ¶
func (s *SvcOvsInfo) SetSessionAffinityFlow(lbIP, portName string, flowID uint64)
Click to show internal directories.
Click to hide internal directories.