Documentation ¶
Index ¶
- type Watcher
- func (w *Watcher) AnnounceInterval() time.Duration
- func (w *Watcher) CancelGovernor()
- func (w *Watcher) CurrentState() any
- func (w *Watcher) DataCopyFile() (string, error)
- func (w *Watcher) Debugf(format string, args ...any)
- func (w *Watcher) Delete()
- func (w *Watcher) EnterGovernor(ctx context.Context, name string, timeout time.Duration) (governor.Finisher, error)
- func (w *Watcher) Errorf(format string, args ...any)
- func (w *Watcher) FactsFile() (string, error)
- func (w *Watcher) FailEvent() string
- func (w *Watcher) FailureTransition() error
- func (w *Watcher) Infof(format string, args ...any)
- func (w *Watcher) Machine() model.Machine
- func (w *Watcher) Name() string
- func (w *Watcher) NotifyStateChance()
- func (w *Watcher) NotifyWatcherState(state any)
- func (w *Watcher) ProcessTemplate(s string) (string, error)
- func (w *Watcher) SetDeleteFunc(f func())
- func (w *Watcher) ShouldWatch() bool
- func (w *Watcher) StateChangeC() chan struct{}
- func (w *Watcher) SuccessEvent() string
- func (w *Watcher) SuccessTransition() error
- func (w *Watcher) Transition(event string) error
- func (w *Watcher) Type() string
- func (w *Watcher) Warnf(format string, args ...any)
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
}
func NewWatcher ¶
func (*Watcher) AnnounceInterval ¶
func (*Watcher) CancelGovernor ¶ added in v0.23.0
func (w *Watcher) CancelGovernor()
func (*Watcher) CurrentState ¶
func (*Watcher) DataCopyFile ¶ added in v0.23.0
func (*Watcher) EnterGovernor ¶ added in v0.23.0
func (*Watcher) FailureTransition ¶
func (*Watcher) NotifyStateChance ¶
func (w *Watcher) NotifyStateChance()
func (*Watcher) NotifyWatcherState ¶
func (*Watcher) ProcessTemplate ¶ added in v0.24.0
func (*Watcher) SetDeleteFunc ¶
func (w *Watcher) SetDeleteFunc(f func())
func (*Watcher) ShouldWatch ¶
func (*Watcher) StateChangeC ¶
func (w *Watcher) StateChangeC() chan struct{}
func (*Watcher) SuccessEvent ¶
func (*Watcher) SuccessTransition ¶
func (*Watcher) Transition ¶
Click to show internal directories.
Click to hide internal directories.