notifier

package
v0.29.0 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChoriaProvider

type ChoriaProvider interface {
	PublishRaw(target string, data []byte) error
	Logger(component string) *logrus.Entry
}

ChoriaProvider provider key Choria service

type Notifier

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

Notifier implements machine.NotificationService

func New

func New(fw ChoriaProvider) (n *Notifier, err error)

New creates a new choria notifier

func (*Notifier) Debugf

func (n *Notifier) Debugf(m machine.InfoSource, name string, format string, args ...any)

Debugf implements machine.NotificationService

func (*Notifier) Errorf

func (n *Notifier) Errorf(m machine.InfoSource, name string, format string, args ...any)

Errorf implements machine.NotificationService

func (*Notifier) Infof

func (n *Notifier) Infof(m machine.InfoSource, name string, format string, args ...any)

Infof implements machine.NotificationService

func (*Notifier) NotifyPostTransition

func (n *Notifier) NotifyPostTransition(transition *machine.TransitionNotification) (err error)

NotifyPostTransition implements machine.NotificationService

func (*Notifier) NotifyWatcherState

func (n *Notifier) NotifyWatcherState(name string, detail machine.WatcherStateNotification) error

NotifyWatcherState implements machine.NotificationService

func (*Notifier) Warnf

func (n *Notifier) Warnf(m machine.InfoSource, name string, format string, args ...any)

Warnf implements machine.NotificationService

Jump to

Keyboard shortcuts

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