commonclient

package
v0.15.0-beta.2 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package commonclient provides version-independent wrappers over controller-runtime and client-go. This enables one codebase to work with multiple versions of controller-runtime.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDiscoveryRESTMapper

func NewDiscoveryRESTMapper(c *rest.Config, httpClient *http.Client) (meta.RESTMapper, error)

NewDiscoveryRESTMapper is a version-independent wrapper around apiutil.NewDiscoveryRESTMapper

func SourceKind

func SourceKind(cache cache.Cache, obj client.Object) source.Source

SourceKind is a version-indendenent abstraction over calling source.Kind

func WrapEventHandler

func WrapEventHandler(h handler.EventHandler) handler.EventHandler

WrapEventHandler is a version-indendenent abstraction over handler.EventHandler

Types

type EventHandler

type EventHandler = handler.EventHandler

Jump to

Keyboard shortcuts

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