meta

package
v0.0.0-...-b058ae1 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseNotifier

type BaseNotifier struct {
	// contains filtered or unexported fields
}

func NewBaseNotifier

func NewBaseNotifier() BaseNotifier

func (*BaseNotifier) Notify

func (i *BaseNotifier) Notify(event *informer.Event)

func (*BaseNotifier) Subscribe

func (i *BaseNotifier) Subscribe(observer Observer)

func (*BaseNotifier) Unsubscribe

func (i *BaseNotifier) Unsubscribe(observer Observer)

type InformerOption

type InformerOption func(*informersConfig)

func WithKubeClient

func WithKubeClient(client kubernetes.Interface) InformerOption

func WithKubeConfigPath

func WithKubeConfigPath(path string) InformerOption

func WithResyncPeriod

func WithResyncPeriod(period time.Duration) InformerOption

func WithoutNodes

func WithoutNodes() InformerOption

func WithoutServices

func WithoutServices() InformerOption

type Informers

type Informers struct {
	BaseNotifier
	// contains filtered or unexported fields
}

func InitInformers

func InitInformers(ctx context.Context, opts ...InformerOption) (*Informers, error)

func (*Informers) Subscribe

func (inf *Informers) Subscribe(observer Observer)

type Notifier

type Notifier interface {
	Subscribe(observer Observer)
	Unsubscribe(observer Observer)
	Notify(event *informer.Event)
}

type Observer

type Observer interface {
	ID() string
	On(event *informer.Event)
}

Directories

Path Synopsis
This implementation is a derivation of the code in https://github.com/netobserv/netobserv-ebpf-agent/tree/release-1.4
This implementation is a derivation of the code in https://github.com/netobserv/netobserv-ebpf-agent/tree/release-1.4

Jump to

Keyboard shortcuts

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