clientmgr

package
v0.0.0-...-b5ad383 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetArenaClient

func GetArenaClient() *arenaclient.ArenaClient

func GetArenaClientWithConfig

func GetArenaClientWithConfig(kubeConfigFile string) (*arenaclient.ArenaClient, error)

func GetCtrlClient

func GetCtrlClient() client.Client

func GetCtrlClientWithConfig

func GetCtrlClientWithConfig(kubeConfig []byte) client.Client

func GetKubeClient

func GetKubeClient() clientset.Interface

func GetScheme

func GetScheme() *runtime.Scheme

func IndexField

func IndexField(obj client.Object, field string, extractValue client.IndexerFunc) error

func Init

func Init()

func InitFromManager

func InitFromManager(mgr ctrl.Manager)

func InstallClientManager

func InstallClientManager(mgr ClientManager)

func Start

func Start()

Types

type ClientManager

type ClientManager interface {
	// GetKubeClient returns a client configured with the Config. The client is
	// based on the client-go library.
	GetKubeClient() clientset.Interface

	// GetCtrlClient returns a client configured with the Config. This client may
	// not be a fully "direct" client -- it may read from a cache, for
	// instance.
	GetCtrlClient() client.Client

	// GetCtrlClientWithConfig returns a client with specified kube config
	GetCtrlClientWithConfig(kubeConfig []byte) client.Client

	// GetArenaClient return arena client
	GetArenaClient() *arenaclient.ArenaClient

	// GetArenaClientWithConfig return arena client with specified kube config
	GetArenaClientWithConfig(kubeConfigPath string) (*arenaclient.ArenaClient, error)

	// GetScheme returns an initialized Scheme
	GetScheme() *runtime.Scheme

	// IndexFields adds an index with the given field name on the given object type
	// by using the given function to extract the value for that field.
	IndexField(obj client.Object, field string, extractValue client.IndexerFunc) error
}

ClientManager is a set of abstract methods to get client to connect apiserver

Jump to

Keyboard shortcuts

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