proxy

package
v0.0.0-...-e1628ab Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

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

func (*Cache) GetCacheBySvcID

func (c *Cache) GetCacheBySvcID(svcID string) (*proxycache.BaseSvc, []proxycache.Backend, []string)

type Reconciler

type Reconciler struct {
	client.Client
	Scheme *runtime.Scheme
	DpMgr  *datapath.DpManager

	LocalNode string

	SyncChan chan event.GenericEvent

	Cache
	// contains filtered or unexported fields
}

Reconciler watch Service related resource and implement Service

func (*Reconciler) GetCache

func (r *Reconciler) GetCache() *Cache

func (*Reconciler) ReconcileService

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

ReconcileService receive Service from work queue

func (*Reconciler) ReconcileServicePort

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

ReconcileSvcPort receive servicePort from work queue

func (*Reconciler) ReconcileSync

func (r *Reconciler) ReconcileSync(_ context.Context, req ctrl.Request) (ctrl.Result, error)

ReconcileSync receive proxySuncEvent from work queue

func (*Reconciler) SetupWithManager

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

SetupWithManager add service controller and servicePort controller to mgr

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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