package
10.0.96+incompatible
Repository: https://github.com/libopenstorage/openstorage.git
Documentation: pkg.go.dev

# Functions

Init initializes a AlertClient interface implementation.
New returns a new alert instance tied with a clusterID and kvdb.
Register an alert interface.
Shutdown the alert instance.

# Constants

Name of this alert client implementation.
NameTest of this alert instance used only for unit tests.

# Variables

ErrAlertClientNotFound raised if no client implementation found.
ErrExist raised if key already exists.
ErrIllegal raised if object is not valid.
ErrNotFound raised if Key is not found.
ErrNotInitialized raised if alert not initialized.
ErrNotSupported implemenation of a specific function is not supported.
ErrResourceNotFound raised if ResourceType is not found>.
ErrSubscribedRaise raised if unable to raise a subscribed alert.
ErrUnmarshal raised if Get fails to unmarshal value.

# Structs

KvAlert is used for managing the alerts and its kvdb instance Deprecated: Kept temporarily for backward compatibility.

# Interfaces

Alert interface for Alert API.

# Type aliases

AlertWatcherFunc is a function type used as a callback for KV WatchTree.
InitFunc initialization function for alert.