allocation

package
v3.10.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2018 License: Apache-2.0 Imports: 4 Imported by: 169

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)

AllocateRouterShard allocates a router shard for the given route.

func (*RouteAllocationController) GenerateHostname

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

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

type RouteAllocationControllerFactory

type RouteAllocationControllerFactory struct {
	// KubeClient is a Kubernetes client.
	KubeClient kclientset.Interface
}

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

func (*RouteAllocationControllerFactory) Create

Create a RouteAllocationController instance.

Jump to

Keyboard shortcuts

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