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 WithCacheReader(cacheReader bool) func(opts *Options)
- func WithContext(ctx context.Context) 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 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 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.