route_helpers

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2015 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const AppRouter = "cf-router"
View Source
const DiegoSSHRouter = "diego-ssh"
View Source
const TcpRouter = "tcp-router"

Variables

This section is empty.

Functions

func GetPrimaryPort added in v0.4.2

func GetPrimaryPort(monitorPort uint16, exposedPorts []uint16) uint16

Types

type AppRoute

type AppRoute struct {
	Hostnames []string `json:"hostnames"`
	Port      uint16   `json:"port"`
}

type AppRoutes

type AppRoutes []AppRoute

func AppRoutesFromRoutingInfo

func AppRoutesFromRoutingInfo(routingInfo receptor.RoutingInfo) AppRoutes

func BuildDefaultRoutingInfo added in v0.4.2

func BuildDefaultRoutingInfo(appName string, exposedPorts []uint16, primaryPort uint16, systemDomain string) AppRoutes

func (AppRoutes) HostnamesByPort

func (l AppRoutes) HostnamesByPort() map[uint16][]string

func (AppRoutes) RoutingInfo

func (l AppRoutes) RoutingInfo() receptor.RoutingInfo

type DiegoSSHRoute added in v0.4.2

type DiegoSSHRoute struct {
	Port       uint16 `json:"container_port"`
	PrivateKey string `json:"private_key"`
}

type Routes added in v0.4.2

type Routes struct {
	AppRoutes     AppRoutes
	TcpRoutes     TcpRoutes
	DiegoSSHRoute *DiegoSSHRoute
}

func RoutesFromRoutingInfo added in v0.4.2

func RoutesFromRoutingInfo(routingInfo receptor.RoutingInfo) Routes

func (Routes) RoutingInfo added in v0.4.2

func (r Routes) RoutingInfo() receptor.RoutingInfo

type TcpRoute added in v0.4.2

type TcpRoute struct {
	ExternalPort uint16 `json:"external_port"`
	Port         uint16 `json:"container_port"`
}

type TcpRoutes added in v0.4.2

type TcpRoutes []TcpRoute

Jump to

Keyboard shortcuts

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