Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrFetchMetadataFailed = errors.New("failed to fetch rmetadata") ErrNoRegisteredActioner = errors.New("no registered actioners") )
Possible Errors
Functions ¶
This section is empty.
Types ¶
type MetadataWatcher ¶
type MetadataWatcher interface { RegisterActioner(actioner actioner.MetadataActioner) Run() error Shutdown() }
MetadataWatcher watches for metadata changes of the given droplet, It notifies every registered actioner when it detects any metadata changes.
func NewSSHWatcher ¶
func NewSSHWatcher(cfg *Conf) MetadataWatcher
NewSSHWatcher creates a new metadata watcher that is based on watching port knocking messages on port 22
func NewWebBasedWatcher ¶
func NewWebBasedWatcher(_ *Conf) MetadataWatcher
NewWebBasedWatcher creates a new metadata watcher that is based on a webserver
Click to show internal directories.
Click to hide internal directories.