Documentation ¶
Index ¶
- func NewCache(config *rest.Config, options ...func(*Options)) (cache.Cache, error)
- func NewClient(config *rest.Config, options ...func(*Options)) (client.Client, error)
- func WithByObject(byObject map[client.Object]cache.ByObject) func(opts *Options)
- func WithCacheReader(cacheReader bool) func(opts *Options)
- func WithContext(ctx context.Context) func(opts *Options)
- func WithDefaultNamespaces(defaultNamespaces map[string]cache.Config) func(opts *Options)
- func WithDefaultTransform(defaultTransform toolscache.TransformFunc) func(opts *Options)
- func WithHTTPClient(httpClient *http.Client) func(opts *Options)
- func WithMapper(mapper meta.RESTMapper) func(opts *Options)
- func WithScheme(scheme *runtime.Scheme) func(opts *Options)
- func WithSyncPeriod(syncPeriod *time.Duration) func(opts *Options)
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithByObject ¶ added in v0.6.0
WithByObject sets the ByObject for the cache client.
func WithCacheReader ¶
WithCacheReader sets whether to use the cache reader. The default value is true.
func WithContext ¶
WithContext sets the context for the client. The default value is context.Background().
func WithDefaultNamespaces ¶ added in v0.6.0
WithDefaultNamespaces sets the DefaultNamespaces for the cache client.
func WithDefaultTransform ¶ added in v0.6.0
func WithDefaultTransform(defaultTransform toolscache.TransformFunc) func(opts *Options)
WithDefaultTransform sets the DefaultTransform for the cache client.
func WithHTTPClient ¶ added in v0.4.0
WithHTTPClient sets the HTTPClient for the client.
func WithMapper ¶ added in v0.4.0
func WithMapper(mapper meta.RESTMapper) func(opts *Options)
WithMapper sets the Mapper for the client.
func WithScheme ¶
WithScheme sets the custom scheme for the client. The default value is Kubernetes scheme.
func WithSyncPeriod ¶ added in v0.3.0
WithSyncPeriod sets the SyncPeriod time option. The default value is nil.
Types ¶
Click to show internal directories.
Click to hide internal directories.