bus

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// EventChallenge is issued before installation begins to gather information about how the device should be provisioned.
	EventDiscoveryPassword pluggable.EventType = "discovery.password"
)

Variables

View Source
var AllEvents = []pluggable.EventType{
	EventDiscoveryPassword,
}

AllEvents is a convenience list of all the events streamed from the bus.

View Source
var Manager = NewBus()

Manager is the bus instance manager, which subscribes plugins to events emitted.

Functions

func EventError

func EventError(err error) pluggable.EventResponse

func IsEventDefined

func IsEventDefined(i interface{}) bool

IsEventDefined checks wether an event is defined in the bus. It accepts strings or EventType, returns a boolean indicating that the event was defined among the events emitted by the bus.

func Reload

func Reload()

Types

type Bus

type Bus struct {
	*pluggable.Manager
	// contains filtered or unexported fields
}

func NewBus

func NewBus() *Bus

func (*Bus) Initialize

func (b *Bus) Initialize()

func (*Bus) LoadProviders

func (b *Bus) LoadProviders()

Jump to

Keyboard shortcuts

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