index

package
v0.26.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2024 License: Apache-2.0 Imports: 20 Imported by: 1 module, 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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterClientGetter added in v0.11.0

type ClusterClientGetter func(shard *corev1alpha1.Shard) (kcpclientset.ClusterInterface, error)

type Controller

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

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

func NewController

func NewController(
	ctx context.Context,
	shardInformer corev1alpha1informers.ShardInformer,
	clientGetter ClusterClientGetter,
) *Controller

func (*Controller) LookupURL added in v0.11.0

func (c *Controller) LookupURL(path logicalcluster.Path) (url string, found 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 {
	LookupURL(path logicalcluster.Path) (url string, found bool)
}

Jump to

Keyboard shortcuts

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