restmapper

package
v2.14.11+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache struct {
	// contains filtered or unexported fields
}

RestMapperCache is used to dynamically create controllerruntimeClients whilst caching the RestMapper. It uses properties of the *cfg as cache key

func New

func New() *Cache

New returns a new Cache

func (*Cache) Client

func (c *Cache) Client(cfg *rest.Config) (ctrlruntimeclient.Client, error)

Client returns a brand new controllerruntime.Client, using a cache for the restMapping to avoid doing discovery during startup. It uses properties of the *cfg as cache Key

Jump to

Keyboard shortcuts

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