Documentation
¶
Index ¶
- func ClusterNameFromObject(obj ctrlruntimeclient.Object) logicalcluster.Name
- func ClusterPathFromObject(obj ctrlruntimeclient.Object) logicalcluster.Path
- func RetargetRestConfig(cfg *rest.Config, cluster logicalcluster.Name) *rest.Config
- func RetargetRestConfigToPath(cfg *rest.Config, path string) *rest.Config
- func StripCluster(cfg *rest.Config) *rest.Config
- type ClusterClient
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 RetargetRestConfigToPath ¶ added in v0.3.0
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.
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
Click to show internal directories.
Click to hide internal directories.