utils

package
v1.13.1 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2020 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClientFuncWithDisabledCacheFor

func NewClientFuncWithDisabledCacheFor(directlyReadingObjects ...runtime.Object) manager.NewClientFunc

NewClientFuncWithDisabledCacheFor returns a manager.NewClientFunc that creates a new client.Client that reads from the cache by default but reads the specified objects directly from the API server.

func NewClientFuncWithEnabledCacheFor

func NewClientFuncWithEnabledCacheFor(cachedObjects ...runtime.Object) manager.NewClientFunc

NewClientFuncWithEnabledCacheFor returns a manager.NewClientFunc that creates a new client.Client that reads directly from the API server by default but reads the specified objects from the cache.

func NewClientFuncWithSpecificallyCachedReader

func NewClientFuncWithSpecificallyCachedReader(readSpecifiedFromCache bool, specifiedObjects ...runtime.Object) manager.NewClientFunc

NewClientFuncWithSpecificallyCachedReader returns a manager.NewClientFunc that creates a new client.Client that either - reads directly from the API server by default but reads the specified objects from the cache (readSpecifiedFromCache=true) - or reads from the cache by default but reads the specified objects directly from the API server (readSpecifiedFromCache=true).

func NewClientWithSpecificallyCachedReader

func NewClientWithSpecificallyCachedReader(cache cache.Cache, config *rest.Config, options client.Options, readSpecifiedFromCache bool, specifiedObjects ...runtime.Object) (client.Client, error)

NewClientWithSpecificallyCachedReader creates a new client.Client that either - reads directly from the API server by default but reads the specified objects from the cache (readSpecifiedFromCache=true) - or reads from the cache by default but reads the specified objects directly from the API server (readSpecifiedFromCache=false).

func NewReaderWithDisabledCacheFor

func NewReaderWithDisabledCacheFor(cacheReader, clientReader client.Reader, scheme *runtime.Scheme, directlyReadingObjects ...runtime.Object) (client.Reader, error)

NewReaderWithDisabledCacheFor creates a new client.Reader that reads from the cache by default but reads the specified objects directly from the API server.

func NewReaderWithEnabledCacheFor

func NewReaderWithEnabledCacheFor(cacheReader, clientReader client.Reader, scheme *runtime.Scheme, cachedObjects ...runtime.Object) (client.Reader, error)

NewReaderWithEnabledCacheFor creates a new client.Reader that reads directly from the API server by default but reads the specified objects from the cache.

func NewSpecificallyCachedReaderFor

func NewSpecificallyCachedReaderFor(cacheReader, clientReader client.Reader, scheme *runtime.Scheme, readSpecifiedFromCache bool, objectKinds ...runtime.Object) (client.Reader, error)

NewSpecificallyCachedReaderFor creates a new client.Reader that either - reads directly from the API server by default but reads the specified objects from the cache (readSpecifiedFromCache=true) - or reads from the cache by default but reads the specified objects directly from the API server (readSpecifiedFromCache=false).

Types

This section is empty.

Jump to

Keyboard shortcuts

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