client

package
v1.18.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	LoopFactoryCache = loop.New[loops.EventClient](16)
)

Functions

This section is empty.

Types

type Client

type Client[T meta.Resource] struct {
	// contains filtered or unexported fields
}

func New

func New[T meta.Resource](opts Options[T]) *Client[T]

func (*Client[T]) CacheLoop

func (c *Client[T]) CacheLoop()

func (*Client[T]) Handle

func (c *Client[T]) Handle(ctx context.Context, event loops.EventClient) error

func (*Client[T]) Run

func (c *Client[T]) Run(ctx context.Context) error

type Options

type Options[T meta.Resource] struct {
	EventCh        <-chan *informer.Event[T]
	CancelWatch    context.CancelFunc
	Stream         sender.Interface
	Namespace      string
	KubeClient     client.Client
	ProcessSecrets func(context.Context, *T, string, client.Client) error
}

Jump to

Keyboard shortcuts

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