endpoint

package
v0.0.0-...-fbfd2f8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 28, 2017 License: Apache-2.0 Imports: 3 Imported by: 3

Documentation

Index

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 NewEndpoint(
	instanceGUID string, evacuating bool,
	host string, port, containerPort uint32,
	modificationTag *models.ModificationTag) Endpoint

func (Endpoint) Key

func (e Endpoint) Key() EndpointKey

type EndpointKey

type EndpointKey struct {
	InstanceGUID string
	Evacuating   bool
}

func NewEndpointKey

func NewEndpointKey(instanceGUID string, evacuating bool) EndpointKey

type ExternalEndpointInfo

type ExternalEndpointInfo struct {
	RouterGroupGUID string
	Port            uint32
}

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

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

type RoutingKey struct {
	ProcessGUID   string
	ContainerPort uint32
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL