client

package
v1.4.7 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2022 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// CachedGVKs identifies the GVKs of resources to be cached during dispatching
	CachedGVKs = ""
)

Functions

func DefaultNewControllerClient

func DefaultNewControllerClient(cache cache.Cache, config *rest.Config, options client.Options, uncachedObjects ...client.Object) (c client.Client, err error)

DefaultNewControllerClient function for creating controller client

Types

type DelegatingHandlerClient added in v1.3.0

type DelegatingHandlerClient struct {
	client.Client
	Getter func(ctx context.Context, key client.ObjectKey, obj client.Object) error
	Lister func(ctx context.Context, list client.ObjectList, opts ...client.ListOption) error
}

DelegatingHandlerClient override the original client's function

func (DelegatingHandlerClient) Get added in v1.3.0

Get resource by overridden getter

func (DelegatingHandlerClient) List added in v1.3.0

List resource by overridden lister

Jump to

Keyboard shortcuts

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