multi

package
v0.0.0-...-5669fb0 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCache

func NewCache(scheme *runtime.Scheme, defaultCache cache.Cache, caches map[string]cache.Cache) cache.Cache

func NewCacheNotFoundError

func NewCacheNotFoundError(group string) error

func NewClient

func NewClient(defaultClient kclient.Client, clients map[string]kclient.Client) kclient.Client

NewClient returns a client that will use the client for the API groups it knows about. The default client is used for any unspecified API groups. If a client cannot be found, and a default doesn't exist, then every method will return a ClientNotFound error. Note that defaultClient's scheme should be valid for all clients.

func NewClientNotFoundError

func NewClientNotFoundError(group string) error

func NewWithWatch

func NewWithWatch(defaultClient kclient.WithWatch, clients map[string]kclient.WithWatch) kclient.WithWatch

NewWithWatch returns a client WithWatch that will use the client for the API groups it knows about. The default client is used for any unspecified API groups. If a client cannot be found, and a default doesn't exist, then every method will return a ClientNotFound error. Note that defaultClient's scheme should be valid for all clients.

Types

type CacheNotFoundError

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

func (*CacheNotFoundError) Error

func (c *CacheNotFoundError) Error() string

type ClientNotFoundError

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

func (*ClientNotFoundError) Error

func (c *ClientNotFoundError) Error() string

Jump to

Keyboard shortcuts

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