pluginhookclient

package
v0.19.5 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPhysicalPluginClientFactory

func NewPhysicalPluginClientFactory(delegate client.NewClientFunc) client.NewClientFunc

func NewPluginClient

func NewPluginClient(virtual bool, delegate client.NewClientFunc) client.NewClientFunc

func NewVirtualPluginClientFactory

func NewVirtualPluginClientFactory(delegate client.NewClientFunc) client.NewClientFunc

func WrapPhysicalClient

func WrapPhysicalClient(delegate client.Client) client.Client

func WrapVirtualClient

func WrapVirtualClient(delegate client.Client) client.Client

Types

type Client

type Client struct {
	client.Client
	// contains filtered or unexported fields
}

Client makes sure that the Create/Update/Patch/Delete functions block until the local cache is updated

func (*Client) Create

func (c *Client) Create(ctx context.Context, obj client.Object, opts ...client.CreateOption) error

func (*Client) Delete

func (c *Client) Delete(ctx context.Context, obj client.Object, opts ...client.DeleteOption) error

func (*Client) Get

func (c *Client) Get(ctx context.Context, key client.ObjectKey, obj client.Object, opts ...client.GetOption) error

func (*Client) List

func (c *Client) List(ctx context.Context, list client.ObjectList, opts ...client.ListOption) error

func (*Client) Patch

func (c *Client) Patch(ctx context.Context, obj client.Object, patch client.Patch, opts ...client.PatchOption) error

func (*Client) Status

func (c *Client) Status() client.StatusWriter

func (*Client) Update

func (c *Client) Update(ctx context.Context, obj client.Object, opts ...client.UpdateOption) error

type StatusClient

type StatusClient struct {
	Client client.Client
	// contains filtered or unexported fields
}

StatusClient makes sure that the Update/Patch functions will be mutated if hooks exist

func (*StatusClient) Create added in v0.14.0

func (c *StatusClient) Create(ctx context.Context, obj client.Object, subResource client.Object, opts ...client.SubResourceCreateOption) error

func (*StatusClient) Patch

func (*StatusClient) Update

Jump to

Keyboard shortcuts

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