watcheragent

package
v0.0.0-...-7d6da81 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2024 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const ClusterNameLabel = "cloud.nephio.org/cluster"

Variables

This section is empty.

Functions

func NewGRPCManager

func NewGRPCManager(ctx context.Context, logger logr.Logger,
	dialOptions ...grpc.DialOption) *gRPCManager

Types

type Reconciler

type Reconciler struct {
	client.Client
	Scheme *runtime.Scheme

	GRPCManager    *gRPCManager
	WatcherManager *WatcherManager
	WatchEvents    chan event.GenericEvent

	Log logr.Logger
}

Reconciler reconciles a WatcherAgent object

func (*Reconciler) Reconcile

func (r *Reconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

func (*Reconciler) SetupWithManager

func (r *Reconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type WatcherManager

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

WatcherManager manages different watchers based on the received WatchRequests There is one-to-one mapping between watchers and WatchRequests.

func NewManager

func NewManager(ctx context.Context, logger logr.Logger, client dynamic.Interface,
	restMapper meta.RESTMapper, clock clock.Clock) *WatcherManager

func (*WatcherManager) ListWatches

ListWatches returns currently active watchers mapped to corresponding watchReq

Jump to

Keyboard shortcuts

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