filewatch

package
v0.22.12 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2021 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const DetectedOverflowErrMsg = `` /* 189-byte string literal not displayed */
View Source
const MaxFileEventHistory = 20

MaxFileEventHistory is the maximum number of file events that will be retained on the FileWatch status.

Variables

This section is empty.

Functions

func HandleFileWatchUpdateStatusEvent added in v0.21.0

func HandleFileWatchUpdateStatusEvent(ctx context.Context, state *store.EngineState, action FileWatchUpdateStatusAction)

Types

type Controller

type Controller struct {
	ctrlclient.Client
	Store store.RStore
	// contains filtered or unexported fields
}

Controller reconciles a FileWatch object

func NewController

func NewController(client ctrlclient.Client, store store.RStore, fsWatcherMaker fsevent.WatcherMaker, timerMaker fsevent.TimerMaker) *Controller

func (*Controller) CreateBuilder added in v0.20.9

func (c *Controller) CreateBuilder(mgr ctrl.Manager) (*builder.Builder, error)

func (*Controller) Reconcile

func (c *Controller) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

type FileWatchUpdateStatusAction added in v0.21.0

type FileWatchUpdateStatusAction struct {
	ObjectMeta *metav1.ObjectMeta
	Status     *filewatches.FileWatchStatus
}

func NewFileWatchUpdateStatusAction added in v0.21.0

func NewFileWatchUpdateStatusAction(fw *filewatches.FileWatch) FileWatchUpdateStatusAction

func (FileWatchUpdateStatusAction) Action added in v0.21.0

func (FileWatchUpdateStatusAction) Action()

func (FileWatchUpdateStatusAction) Summarize added in v0.21.0

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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