util

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2024 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Overview

util package provides utility functions for other packages

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientFactory

type ClientFactory interface {
	genericclioptions.RESTClientGetter

	// DynamicClient returns a dynamic client ready for use
	DynamicClient() (dynamic.Interface, error)

	// UnstructuredClientForMapping return a RESTClient that can be used for the Unstructured object described by mapping
	UnstructuredClientForMapping(mapping *meta.RESTMapping) (resource.RESTClient, error)

	// KubernetesClientSet gives you back an external clientset
	KubernetesClientSet() (kubernetes.Interface, error)
}

ClientFactory provides abstractions that allow to change the certain functions in certain cases, like testing

func NewFactory

func NewFactory(clientGetter genericclioptions.RESTClientGetter) ClientFactory

NewFactory return a CleintFactory implementation

Jump to

Keyboard shortcuts

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