status

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConnectToKVStores

func ConnectToKVStores(s events.Stream, log *logrus.Logger,
	defs rctypes.Definitions, opts ...kv.Option,
)

ConnectToKVStores initializes all status KVs in preparation for monitoring status updates Any errors here are fatal, as we are failing to initialize something we are explicitly configured for.

func DeleteCondition added in v0.1.6

func DeleteCondition(kind rctypes.Kind, facility, condID string) error

DeleteCondition does what it says on the tin. If this does not return an error, the KV entry is gone.

func GetAllConditions added in v0.1.6

func GetAllConditions(kind rctypes.Kind, facility string) ([]nats.KeyValueEntry, error)

GetAllConditions returns all conditions for a specific type and facility. This includes any entry in any state, provided it has not been reaped by TTL.

func GetConditionKV added in v0.1.5

func GetConditionKV(kind rctypes.Kind) (nats.KeyValue, error)

GetConditionKV returns the raw NATS KeyValue interface for the bucket associated with the given condition type. This is a really low-level access, but if you want a handle to the raw NATS API, here it is.

func GetSingleCondition added in v0.1.6

func GetSingleCondition(kind rctypes.Kind, facility, condID string) (nats.KeyValueEntry, error)

GetSingleCondition does exactly that given a kind, facility, and condition-id

func WatchConditionStatus added in v0.1.5

func WatchConditionStatus(ctx context.Context, kind rctypes.Kind, facility string) (nats.KeyWatcher, error)

WatchConditionStatus specializes some generic NATS functionality, mainly to keep the callers cleaner of the NATS-specific details.

Types

This section is empty.

Jump to

Keyboard shortcuts

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