index

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	// contains filtered or unexported fields
}

Controller watches ClusterWorkspaceShards on the root shard, and then starts informers for every ClusterWorkspaceShard, watching the ClusterWorkspaces on them. It then updates the workspace index, which maps logical clusters to shard URLs.

func NewController

func NewController(
	rootHost string,
	clusterWorkspaceShardInformer tenancyinformer.ClusterWorkspaceShardInformer,
	clientGetter ClusterWorkspaceClientGetter,
) *Controller

func (*Controller) Lookup

func (c *Controller) Lookup(logicalCluster logicalcluster.Name) (string, bool)

func (*Controller) Start

func (c *Controller) Start(ctx context.Context, numThreads int)

Start the controller. It does not really do anything, but to keep the shape of a normal controller, we keep it.

type Index

type Index interface {
	Lookup(logicalCluster logicalcluster.Name) (string, bool)
}

Index implements a mapping from logical cluster to (shard) URL.

Jump to

Keyboard shortcuts

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