apiserver

package
v4.167.0 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2025 License: BSD-3-Clause Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBackupColumnDefinition added in v4.82.0

func GetBackupColumnDefinition() []metav1.TableColumnDefinition

func GetBackupTable added in v4.82.0

func GetBackupTable(id, instance, status, age, started, finished string, backup runtime.Object) metav1.TableRow

func ResolveError

func ResolveError(groupResource schema.GroupResource, err error) error

Types

type ClientConfigurator added in v4.142.0

type ClientConfigurator interface {
	GetDynKubeClient(ctx context.Context, instance client.Object) (*dynClient.DynamicClient, error)
	GetKubeClient(ctx context.Context, instance client.Object) (client.WithWatch, error)
	client.WithWatch
}

type KubeClient added in v4.142.0

type KubeClient struct {
	client.WithWatch
}

func New added in v4.142.0

func New(client client.WithWatch) *KubeClient

func (*KubeClient) GetDynKubeClient added in v4.142.0

func (k *KubeClient) GetDynKubeClient(ctx context.Context, instance client.Object) (*dynClient.DynamicClient, error)

GetDynKubeClient will return a `DynamicClient` for the provided instance and kubeclient It will check where the instance is running on and will return either the client for the remote cluster (non-converged) or the local cluster (converged)

func (*KubeClient) GetKubeClient added in v4.142.0

func (k *KubeClient) GetKubeClient(ctx context.Context, instance client.Object) (client.WithWatch, error)

GetKubeClient will return a `Client` for the provided instance and kubeclient It will check where the instance is running on and will return either the client for the remote cluster (non-converged) or nil for the local cluster

type MultiWatcher

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

func NewEmptyMultiWatch

func NewEmptyMultiWatch() *MultiWatcher

NewEmptyMultiWatch creates an empty watch

func (*MultiWatcher) AddWatcher

func (m *MultiWatcher) AddWatcher(w watch.Interface)

AddWatcher adds a watch to this MultiWatcher

func (*MultiWatcher) ResultChan

func (m *MultiWatcher) ResultChan() <-chan watch.Event

ResultChan aggregates all channels from all watches of this MultiWatch

func (*MultiWatcher) Stop

func (m *MultiWatcher) Stop()

Stop stops all watches of this MultiWatch

Directories

Path Synopsis
vshn

Jump to

Keyboard shortcuts

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