allocation

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2015 License: Apache-2.0 Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package allocation contains all the route allocation controllers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RouteAllocationController

type RouteAllocationController struct {
	Plugin route.AllocationPlugin
}

RouteAllocationController abstracts the details of how routes are allocated to router shards.

func (*RouteAllocationController) AllocateRouterShard

func (c *RouteAllocationController) AllocateRouterShard(route *routeapi.Route) (*routeapi.RouterShard, error)

Allocate a router shard for the given route.

func (*RouteAllocationController) GenerateHostname

func (c *RouteAllocationController) GenerateHostname(route *routeapi.Route, shard *routeapi.RouterShard) string

Generate a host name for the given route and router shard combination.

type RouteAllocationControllerFactory

type RouteAllocationControllerFactory struct {
	// Client is is an OpenShift client.
	OSClient osclient.Interface

	// KubeClient is a Kubernetes client.
	KubeClient kclient.Interface
}

RouteAllocationControllerFactory creates a RouteAllocationController that allocates router shards to specific routes.

func (*RouteAllocationControllerFactory) Create

Create a RouteAllocationController instance.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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