client

package
v0.27.1 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAllClient added in v0.27.1

func GetAllClient(ctx context.Context, config *rest.Config, scheme *runtime.Scheme, apiexportEndpointSliceName string) (client.Client, error)

GetAllClient returns a client that can query all resources of the APIExportEndpointSlice, based on a given KCP base config and APIExportEndpointSlice name

func NewForLogicalCluster

func NewForLogicalCluster(config *rest.Config, scheme *runtime.Scheme, clusterKey logicalcluster.Name) (client.Client, error)

NewForLogicalCluster returns a client for a given logical cluster name or path, based on a KCP base config.

Types

type KcpClientHelper added in v0.27.1

type KcpClientHelper interface {
	NewForLogicalCluster(clusterKey logicalcluster.Name) (client.Client, error)
	GetAllClient(ctx context.Context, apiexportEndpointSliceName string) (client.Client, error)
}

type KcpHelper added in v0.27.1

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

func NewKcpHelper added in v0.27.1

func NewKcpHelper(config *rest.Config, scheme *runtime.Scheme) *KcpHelper

func (*KcpHelper) GetAllClient added in v0.27.1

func (f *KcpHelper) GetAllClient(ctx context.Context, apiexportEndpointSliceName string) (client.Client, error)

func (*KcpHelper) NewForLogicalCluster added in v0.27.1

func (f *KcpHelper) NewForLogicalCluster(clusterKey logicalcluster.Name) (client.Client, error)

Jump to

Keyboard shortcuts

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