kcp

package
v0.3.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClusterNameFromObject

func ClusterNameFromObject(obj ctrlruntimeclient.Object) logicalcluster.Name

func ClusterPathFromObject

func ClusterPathFromObject(obj ctrlruntimeclient.Object) logicalcluster.Path

func RetargetRestConfig

func RetargetRestConfig(cfg *rest.Config, cluster logicalcluster.Name) *rest.Config

func RetargetRestConfigToPath added in v0.3.0

func RetargetRestConfigToPath(cfg *rest.Config, path string) *rest.Config

RetargetRestConfigToPath retargets the rest config to a direct URL path (e.g., a virtual workspace path like /services/apiexport/...). The path is appended directly to the stripped host URL.

func StripCluster

func StripCluster(cfg *rest.Config) *rest.Config

Types

type ClusterClient

type ClusterClient interface {
	Cluster(cluster logicalcluster.Name, scheme *runtime.Scheme) (ctrlruntimeclient.Client, error)
	ClusterConfig(cluster logicalcluster.Name) *rest.Config
}

func NewClusterClient

func NewClusterClient(cfg *rest.Config) ClusterClient

Jump to

Keyboard shortcuts

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