multiClusterWatch

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2023 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RESYNC_PERIOD = 30 * time.Minute
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterWatcher

type ClusterWatcher struct {
	ClusterName string

	Handler ResourceHandler
	Queue   workqueue.RateLimitingInterface
	// contains filtered or unexported fields
}

func (*ClusterWatcher) Enqueue

func (w *ClusterWatcher) Enqueue(obj interface{})

func (*ClusterWatcher) EnqueueAfter

func (w *ClusterWatcher) EnqueueAfter(obj interface{}, dur time.Duration)

func (*ClusterWatcher) Start

func (w *ClusterWatcher) Start(ctx context.Context) error

func (*ClusterWatcher) WatchIngress

func (w *ClusterWatcher) WatchIngress(sharedInformer informers.SharedInformerFactory) error

type Interface

type Interface interface {
	WatchCluster(config *rest.Config) (Watcher, error)
}

type ResourceHandler

type ResourceHandler interface {
	Handle(context.Context, runtime.Object) (ctrl.Result, error)
}

type ResourceHandlerFactory

type ResourceHandlerFactory func(c *rest.Config, controlClient client.Client) (ResourceHandler, error)

func NewTrafficHandlerFactory

func NewTrafficHandlerFactory(dnsService *dns.Service, tlsService *tls.Service) ResourceHandlerFactory

type WatchController

type WatchController struct {
	InformerContext context.Context
	Manager         manager.Manager
	HandlerFactory  ResourceHandlerFactory
	// contains filtered or unexported fields
}

func (*WatchController) WatchCluster

func (w *WatchController) WatchCluster(config *rest.Config) (Watcher, error)

type Watcher

type Watcher interface {
	Start(context.Context) error
}

func NewClusterWatcher

func NewClusterWatcher(mgr manager.Manager, config *rest.Config, handlerFactory ResourceHandlerFactory) (Watcher, error)

Jump to

Keyboard shortcuts

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