Documentation ¶
Index ¶
- func GenericCLIDevToDev(cli *genericcli.GenericCLI, opts ...genericcli.GenericDeviceOption) func(connector streamer.Connector) device.Device
- func GenericCLIWrapper(...) func(streamer.Connector) device.Device
- func InitDefaultDeviceMapping(logger *zap.Logger) map[string]func(streamer.Connector) device.Device
- type Conf
- type DevConf
- type DevConfs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenericCLIDevToDev ¶
func GenericCLIDevToDev(cli *genericcli.GenericCLI, opts ...genericcli.GenericDeviceOption) func(connector streamer.Connector) device.Device
func GenericCLIWrapper ¶
func GenericCLIWrapper(cliFn func(connector streamer.Connector, opts ...genericcli.GenericDeviceOption) genericcli.GenericDevice, logger *zap.Logger) func(streamer.Connector) device.Device
Types ¶
type DevConf ¶
type DevConf struct { Name string `yaml:"name"` PromptExpression string `yaml:"prompt_expression"` ErrorExpression string `yaml:"error_expression"` PagerExpression string `yaml:"pager_expression"` }
func (DevConf) Make ¶
func (m DevConf) Make() (*genericcli.GenericCLI, error)
type DevConfs ¶
type DevConfs []DevConf
func (DevConfs) Make ¶
func (m DevConfs) Make() (map[string]*genericcli.GenericCLI, error)
Click to show internal directories.
Click to hide internal directories.