Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ListenerFunc ¶
ListenerFunc is a function called by the watcher with the current state.
type Watcher ¶
type Watcher struct {
// contains filtered or unexported fields
}
Watcher is a process from the Hub agent that watches the topology for changes and stores them over time to make them accessible from the SaaS.
func NewWatcher ¶
NewWatcher instantiates a new watcher that uses a fetcher to periodically get the K8S state and a store to write it.
func (*Watcher) AddListener ¶
func (w *Watcher) AddListener(listener ListenerFunc)
AddListener adds a state listener.
Click to show internal directories.
Click to hide internal directories.