watcher

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2022 License: Apache-2.0 Imports: 14 Imported by: 2

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
}

func NewWatcher

func NewWatcher(name string, wtype string, announceInterval time.Duration, activeStates []string, machine model.Machine, fail string, success string) (*Watcher, error)

func (*Watcher) AnnounceInterval

func (w *Watcher) AnnounceInterval() time.Duration

func (*Watcher) CancelGovernor added in v0.23.0

func (w *Watcher) CancelGovernor()

func (*Watcher) CurrentState

func (w *Watcher) CurrentState() interface{}

func (*Watcher) DataCopyFile added in v0.23.0

func (w *Watcher) DataCopyFile() (string, error)

func (*Watcher) Debugf

func (w *Watcher) Debugf(format string, args ...interface{})

func (*Watcher) Delete

func (w *Watcher) Delete()

func (*Watcher) EnterGovernor added in v0.23.0

func (w *Watcher) EnterGovernor(ctx context.Context, name string, timeout time.Duration) (governor.Finisher, error)

func (*Watcher) Errorf

func (w *Watcher) Errorf(format string, args ...interface{})

func (*Watcher) FactsFile added in v0.23.0

func (w *Watcher) FactsFile() (string, error)

func (*Watcher) FailEvent

func (w *Watcher) FailEvent() string

func (*Watcher) FailureTransition

func (w *Watcher) FailureTransition() error

func (*Watcher) Infof

func (w *Watcher) Infof(format string, args ...interface{})

func (*Watcher) Machine

func (w *Watcher) Machine() model.Machine

func (*Watcher) Name

func (w *Watcher) Name() string

func (*Watcher) NotifyStateChance

func (w *Watcher) NotifyStateChance()

func (*Watcher) NotifyWatcherState

func (w *Watcher) NotifyWatcherState(state interface{})

func (*Watcher) ProcessTemplate added in v0.24.0

func (w *Watcher) ProcessTemplate(s string) (string, error)

func (*Watcher) SetDeleteFunc

func (w *Watcher) SetDeleteFunc(f func())

func (*Watcher) ShouldWatch

func (w *Watcher) ShouldWatch() bool

func (*Watcher) StateChangeC

func (w *Watcher) StateChangeC() chan struct{}

func (*Watcher) SuccessEvent

func (w *Watcher) SuccessEvent() string

func (*Watcher) SuccessTransition

func (w *Watcher) SuccessTransition() error

func (*Watcher) Transition

func (w *Watcher) Transition(event string) error

func (*Watcher) Type

func (w *Watcher) Type() string

func (*Watcher) Warnf added in v0.23.0

func (w *Watcher) Warnf(format string, args ...interface{})

Jump to

Keyboard shortcuts

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