package
0.0.3
Repository: https://github.com/leaf-ai/go-service.git
Documentation: pkg.go.dev

# Functions

ConfigK8s is used to pull the values from a named config map in k8s This function will return an empty map and and error value on failure.
initiateK8s runs until either ctx is Done or the listener is running successfully.
IsAliveK8s is used to extract any kv.in the state of the k8s client api connection.
No description provided by the author
No description provided by the author
ListenK8s will register a listener to watch for pod specific configMaps in k8s and will relay state changes to a channel, the global state map should exist at the bare minimum.
ListenK8sConfigMaps will register a listener to watch for k8s config maps updates in a specified namespace and will relay these changes to a channel.
MonitorK8s is used to send appropriate errors into an error reporting channel on a regular basis if the k8s connectivity state changes .
NewConfigBroadcast is used to instantiate a Kubernetes config maps update broadcaster.
No description provided by the author

# Structs

ConfigListeners are used to handle the broadcasting of cluster events when Kubernetes is being used.
K8sConfigUpdate encapsulates an update for some config map in the scope of server run-time environment.
K8sStateUpdate encapsulates the known kubernetes state within which the server finds itself.
Resource describes the needed resources for a runner task in a data structure that can be marshalled as json .
Resources is a receiver for resource related methods used to describe machine level capabilities .