config

package
v2.0.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Watcher

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

Watcher monitors changes to the executor configuration file and reloads the executor when changes are detected.

func NewWatcher

func NewWatcher(configPath string) (*Watcher, error)

NewWatcher creates a new Watcher instance.

func (*Watcher) GetExecutor

func (w *Watcher) GetExecutor() *ratify.Executor

GetExecutor returns the current executor instance. It is safe to call this method concurrently.

func (*Watcher) Start

func (w *Watcher) Start() error

Start begins watching the executor configuration file for changes.

func (*Watcher) Stop

func (w *Watcher) Stop()

Stop stops the watcher and closes the underlying fsnotify watcher.

Jump to

Keyboard shortcuts

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