Documentation
¶
Index ¶
- type Client
- func (c *Client) Create(ctx context.Context, obj client.Object, opts ...client.CreateOption) error
- func (c *Client) Delete(ctx context.Context, obj client.Object, opts ...client.DeleteOption) error
- func (c *Client) Get(ctx context.Context, key client.ObjectKey, out client.Object, ...) error
- func (c *Client) GetSource(ctx context.Context, obj client.Object, h handler.EventHandler) (source.Source, error)
- func (c *Client) Update(ctx context.Context, obj client.Object, opts ...client.UpdateOption) error
- type NarrowSource
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
func CreateClient ¶
func CreateClient(ctx context.Context, mgr manager.Manager, cachedObjectTypes []client.Object) (*Client, error)
CreateClient creates a new client layer that sits on top of the provided `underlying` client. This client implements Get for the provided GVKs, using a specific cache.
Other kinds of requests (ie. non-get and non-managed GVKs) are forwarded to the `underlying` client.
Furthermore, cached objects are also available as `source.Source`.
type NarrowSource ¶
func (*NarrowSource) Start ¶
func (s *NarrowSource) Start(ctx context.Context, q workqueue.TypedRateLimitingInterface[reconcile.Request]) error
Click to show internal directories.
Click to hide internal directories.