Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsLocalOnly ¶
Types ¶
type LocalService ¶
type LocalService struct { Entries []types.CnatTranslateEntry SpecificRoutes []net.IP ServiceID string }
*
- Service descriptions from the API are resolved into
- slices of LocalService, this allows to diffs between
- previous & expected state in VPP
type Server ¶
type Server struct { BGPConf *calicov3.BGPConfigurationSpec // contains filtered or unexported fields }
func NewServiceServer ¶
func (*Server) GetLocalService ¶
func (*Server) SetBGPConf ¶
func (s *Server) SetBGPConf(bgpConf *calicov3.BGPConfigurationSpec)
func (*Server) SetOurBGPSpec ¶
func (s *Server) SetOurBGPSpec(nodeBGPSpec *common.LocalNodeSpec)
type ServiceState ¶
type ServiceState struct { OwnerServiceID string /* serviceID(service.ObjectMeta) of the service that created this entry */ VppID uint32 /* cnat translation ID in VPP */ }
*
- Store VPP's state in a map [CnatTranslateEntry.Key()]->ServiceState
Click to show internal directories.
Click to hide internal directories.