Documentation
¶
Index ¶
- func GetBackupColumnDefinition() []metav1.TableColumnDefinition
- func GetBackupTable(id, instance, status, age, started, finished string, backup runtime.Object) metav1.TableRow
- func ResolveError(groupResource schema.GroupResource, err error) error
- type ClientConfigurator
- type KubeClient
- type MultiWatcher
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 ResolveError ¶
func ResolveError(groupResource schema.GroupResource, err error) error
Types ¶
type ClientConfigurator ¶ added in v4.142.0
type KubeClient ¶ added in v4.142.0
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
Click to show internal directories.
Click to hide internal directories.