Documentation ¶
Index ¶
- func NewEndpointsFromActual(actualGrp *models.ActualLRPGroup) map[uint32]Endpoint
- type Endpoint
- type EndpointKey
- type ExternalEndpointInfo
- type ExternalEndpointInfos
- type RoutableEndpoints
- func (entry RoutableEndpoints) Copy() RoutableEndpoints
- func (e RoutableEndpoints) HaveEndpointsChanged(newEntry RoutableEndpoints) bool
- func (e RoutableEndpoints) HaveExternalEndpointsChanged(newEntry RoutableEndpoints) bool
- func (entry RoutableEndpoints) RemoveExternalEndpoints(externalEndpoints ExternalEndpointInfos) RoutableEndpoints
- type RoutingKey
- type RoutingKeys
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewEndpointsFromActual ¶
func NewEndpointsFromActual(actualGrp *models.ActualLRPGroup) map[uint32]Endpoint
Types ¶
type Endpoint ¶
type Endpoint struct { InstanceGUID string Host string Port uint32 ContainerPort uint32 Evacuating bool ModificationTag *models.ModificationTag }
func NewEndpoint ¶
func (Endpoint) Key ¶
func (e Endpoint) Key() EndpointKey
type EndpointKey ¶
func NewEndpointKey ¶
func NewEndpointKey(instanceGUID string, evacuating bool) EndpointKey
type ExternalEndpointInfo ¶
func NewExternalEndpointInfo ¶
func NewExternalEndpointInfo(routerGroupGUID string, port uint32) ExternalEndpointInfo
type ExternalEndpointInfos ¶
type ExternalEndpointInfos []ExternalEndpointInfo
func (ExternalEndpointInfos) ContainsExternalPort ¶
func (e ExternalEndpointInfos) ContainsExternalPort(port uint32) bool
func (ExternalEndpointInfos) HasNoExternalPorts ¶
func (e ExternalEndpointInfos) HasNoExternalPorts(logger lager.Logger) bool
func (ExternalEndpointInfos) Remove ¶
func (setA ExternalEndpointInfos) Remove(setB ExternalEndpointInfos) ExternalEndpointInfos
this function return a-b set. Ex: a = {p1,p2, p4} b={p2,p3} ===> a-b = {p1, p4}
type RoutableEndpoints ¶
type RoutableEndpoints struct { ExternalEndpoints ExternalEndpointInfos Endpoints map[EndpointKey]Endpoint LogGUID string ModificationTag *models.ModificationTag }
func NewRoutableEndpoints ¶
func NewRoutableEndpoints( externalEndPoint ExternalEndpointInfos, endpoints map[EndpointKey]Endpoint, logGUID string, modificationTag *models.ModificationTag) RoutableEndpoints
func (RoutableEndpoints) Copy ¶
func (entry RoutableEndpoints) Copy() RoutableEndpoints
func (RoutableEndpoints) HaveEndpointsChanged ¶
func (e RoutableEndpoints) HaveEndpointsChanged(newEntry RoutableEndpoints) bool
func (RoutableEndpoints) HaveExternalEndpointsChanged ¶
func (e RoutableEndpoints) HaveExternalEndpointsChanged(newEntry RoutableEndpoints) bool
func (RoutableEndpoints) RemoveExternalEndpoints ¶
func (entry RoutableEndpoints) RemoveExternalEndpoints(externalEndpoints ExternalEndpointInfos) RoutableEndpoints
this function returns the entry with the external externalEndpoints substracted from its internal collection Ex; Given, entry { externalEndpoints={p1,p2,p4} } and externalEndpoints = {p2,p3} ==> entryA { externalEndpoints={p1,p4} }
type RoutingKey ¶
func NewRoutingKey ¶
func NewRoutingKey(processGUID string, containerPort uint32) RoutingKey
type RoutingKeys ¶
type RoutingKeys []RoutingKey
func NewRoutingKeysFromActual ¶
func NewRoutingKeysFromActual(actualGrp *models.ActualLRPGroup) RoutingKeys
func NewRoutingKeysFromDesired ¶
func NewRoutingKeysFromDesired(processGuid string, routes tcp_routes.TCPRoutes) RoutingKeys
func (RoutingKeys) Remove ¶
func (lhs RoutingKeys) Remove(rhs RoutingKeys) RoutingKeys
Click to show internal directories.
Click to hide internal directories.