proxy

package
v0.11.3 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterResolver

type ClusterResolver func(ctx context.Context, path logicalcluster.Path) (request.Cluster, error)

ClusterResolvers are capable of resolving a workspace path like "root:foo:bar" into the logicalcluster name (e.g. "23jgh234hgf44").

func NewClusterResolver

func NewClusterResolver(clusterClient kcpclientset.ClusterInterface) ClusterResolver

NewClusterResolver returns a new resolver that doesn't do any work itself, but instead delegates to the kcp server (shard) to perform the resolving, by fetching the workspace's "cluster" logicalcluster. Effectively this makes kcp's localproxy do the resolving for us.

Jump to

Keyboard shortcuts

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