configmap

package
v0.0.0-...-591e9e7 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CmWatcher

type CmWatcher struct {
	// Path to ConfigMap file to watch
	Path string

	// used for tests
	NotifyCounter *testutil.CallCounter
	// contains filtered or unexported fields
}

func NewCmWatcher

func NewCmWatcher(path string, onFileEvent OnFileEvent, fr obs.FlightRecorder) (*CmWatcher, error)

NewCmWatcher() creates a new ConfigMap file watcher, which looks for changes to the file and invokes onFileEvent

func NewCmWatcherForTest

func NewCmWatcherForTest(path string, onFileEvent OnFileEvent, fr obs.FlightRecorder) (*CmWatcher, error)

func (*CmWatcher) Start

func (w *CmWatcher) Start() error

Start() start file watcher

func (*CmWatcher) Stop

func (w *CmWatcher) Stop()

Stop() stop file watcher

type OnFileEvent

type OnFileEvent func(path string) error

Jump to

Keyboard shortcuts

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