Documentation ¶
Overview ¶
Package connection_watcher contains logic and types to support file-watching Steampipe connection config
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConnectionConfigMap ¶ added in v0.19.0
type ConnectionConfigMap map[string]*sdkproto.ConnectionConfig
func NewConnectionConfigMap ¶
func NewConnectionConfigMap(connectionMap map[string]*modconfig.Connection) ConnectionConfigMap
func (ConnectionConfigMap) Diff ¶ added in v0.19.0
func (m ConnectionConfigMap) Diff(otherMap ConnectionConfigMap) (addedConnections, deletedConnections, changedConnections map[string][]*sdkproto.ConnectionConfig)
type ConnectionWatcher ¶
type ConnectionWatcher struct {
// contains filtered or unexported fields
}
func NewConnectionWatcher ¶
func NewConnectionWatcher(onConnectionChanged func(ConnectionConfigMap), onSchemaChanged func(*steampipeconfig.RefreshConnectionResult, *db_local.LocalDbClient)) (*ConnectionWatcher, error)
func (*ConnectionWatcher) Close ¶
func (w *ConnectionWatcher) Close()
Click to show internal directories.
Click to hide internal directories.