ns_watcher

package
v0.0.0-...-a06e19b Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NSWatcherK8sKind int = iota
)

Variables

This section is empty.

Functions

This section is empty.

Types

type NSEvent

type NSEvent = common.NSEvent

type NSWatcher

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

func New

func New(
	log logrus.FieldLogger,
	k8sHandle kubernetes.Interface,
) (*NSWatcher, error)

func NewDumb

func NewDumb() *NSWatcher

func (*NSWatcher) Errors

func (w *NSWatcher) Errors() chan error

func (*NSWatcher) NSEvents

func (w *NSWatcher) NSEvents() chan *common.NSEvent

func (*NSWatcher) Run

func (w *NSWatcher) Run(ctx context.Context)

func (*NSWatcher) Stop

func (w *NSWatcher) Stop()

type NSWatcherInterface

type NSWatcherInterface interface {
	Run(context.Context)
	Stop()

	NSEvents() chan *common.NSEvent
	Errors() chan error
}

type NSWatcherOptions

type NSWatcherOptions struct {
	Log logrus.FieldLogger
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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