Documentation ¶
Index ¶
- Constants
- func NewTCPUpdate(c *config.Config, logger logger.Logger, op routeUpdate.Operation, ...) (updateTCP, error)
- func NewUpdate(logger logger.Logger, op routeUpdate.Operation, uri route.Uri, ...) (updateHTTP, error)
- type ConfigWriter
- type Driver
- type F5Router
- func (r *F5Router) AddBindIDRouteURIPlanNameMapping(bindID, routeURI, planID string)
- func (r *F5Router) AddPlans(plans map[string]planResources.Plan)
- func (r *F5Router) GetRouteURIFromBindID(bindID string) string
- func (r *F5Router) RemoveBindIDRouteURIPlanNameMapping(bindID string)
- func (r *F5Router) Run(signals <-chan os.Signal, ready chan<- struct{}) error
- func (r *F5Router) UpdateRoute(ru routeUpdate.RouteUpdate)
- func (r *F5Router) VerifyPlanExists(planID string) error
- type Router
- type Writer
Constants ¶
const ( // HTTPRouterName HTTP virtual server name HTTPRouterName = "routing-vip-http" // HTTPSRouterName HTTPS virtual server name HTTPSRouterName = "routing-vip-https" // CFRoutingPolicyName Policy name for CF routing CFRoutingPolicyName = "cf-routing-policy" // InternalDataGroupName on BIG-IP InternalDataGroupName = "cf-ctlr-data-group" // BrokerDataGroupName on BIG-IP BrokerDataGroupName = "cf-broker-data-group" )
const (
// DefaultCmd default config driver
DefaultCmd = "bigipconfigdriver.py"
)
Variables ¶
This section is empty.
Functions ¶
func NewTCPUpdate ¶
func NewTCPUpdate( c *config.Config, logger logger.Logger, op routeUpdate.Operation, routePort uint16, member bigipResources.Member, ) (updateTCP, error)
NewTCPUpdate satisfies the interface of a routeUpdate
Types ¶
type ConfigWriter ¶
type ConfigWriter struct {
// contains filtered or unexported fields
}
ConfigWriter Writer instance to output configuration
func NewConfigWriter ¶
func NewConfigWriter(logger logger.Logger) (*ConfigWriter, error)
NewConfigWriter creates and returns a config writer
func (*ConfigWriter) GetOutputFilename ¶
func (cw *ConfigWriter) GetOutputFilename() string
GetOutputFilename return config filename
type Driver ¶
type Driver struct {
// contains filtered or unexported fields
}
Driver type which provides ifrit process interface
type F5Router ¶
type F5Router struct {
// contains filtered or unexported fields
}
F5Router controller of BigIP configuration objects
func NewF5Router ¶
func NewF5Router( logger logger.Logger, c *config.Config, writer Writer, client bigipclient.Client, ) (*F5Router, error)
NewF5Router create the F5Router route controller
func (*F5Router) AddBindIDRouteURIPlanNameMapping ¶ added in v1.1.0
AddBindIDRouteURIPlanNameMapping maps bind ID to a route's URI and plan's ID
func (*F5Router) AddPlans ¶ added in v1.1.0
func (r *F5Router) AddPlans(plans map[string]planResources.Plan)
AddPlans adds service broker provided plans to the router
func (*F5Router) GetRouteURIFromBindID ¶ added in v1.1.0
GetRouteURIFromBindID gets the route's URI associated with the bind ID
func (*F5Router) RemoveBindIDRouteURIPlanNameMapping ¶ added in v1.1.0
RemoveBindIDRouteURIPlanNameMapping removes mapping of bind ID to a route's URI and plan's ID
func (*F5Router) UpdateRoute ¶
func (r *F5Router) UpdateRoute(ru routeUpdate.RouteUpdate)
UpdateRoute send update information to processor
func (*F5Router) VerifyPlanExists ¶ added in v1.1.0
VerifyPlanExists verifies that the plan exists for the router
type Router ¶ added in v1.1.0
type Router interface { AddPlans(plans map[string]planResources.Plan) VerifyPlanExists(planID string) error UpdateRoute(ru routeUpdate.RouteUpdate) AddBindIDRouteURIPlanNameMapping(bindID, routeURI, planID string) RemoveBindIDRouteURIPlanNameMapping(bindID string) GetRouteURIFromBindID(bindID string) string }
Router interface for the F5Router