Documentation ¶
Overview ¶
Package loaders provides an interface load target configurations into the connection manager.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Registry = make(map[string]func(config *configuration.GatewayConfig) TargetLoader)
Functions ¶
func Register ¶ added in v0.7.0
func Register(name string, new func(config *configuration.GatewayConfig) TargetLoader)
Types ¶
type TargetLoader ¶
type TargetLoader interface { // Get the Configuration once. GetConfiguration() (*targetpb.Configuration, error) // Start the loader, if necessary. // Start will be called once by the gateway after StartGateway is called. Start() error // Start watching the configuration for changes and send the entire // configuration to the supplied channel when a change is detected. WatchConfiguration(chan<- *connections.TargetConnectionControl) error }
TargetLoader is an interface to load target configuration data. TargetLoader communicates with the ConnectionManager via TargetConnectionControl messages that contain targetpb.Configuration.
func New ¶ added in v0.7.0
func New(name string, config *configuration.GatewayConfig) TargetLoader
Directories ¶
Path | Synopsis |
---|---|
Package netbox provides a TargetLoader for loading devices from NetBox.
|
Package netbox provides a TargetLoader for loading devices from NetBox. |
Package simple provides a TargetLoader for parsing a simple target YAML config file.
|
Package simple provides a TargetLoader for parsing a simple target YAML config file. |
Click to show internal directories.
Click to hide internal directories.