devconf

package
v1.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 14, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

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

func InitDefaultDeviceMapping

func InitDefaultDeviceMapping(logger *zap.Logger) map[string]func(streamer.Connector) device.Device

Types

type Conf added in v1.0.1

type Conf struct {
	Devices DevConfs `yaml:"devices"`
}

func NewConf added in v1.0.1

func NewConf() *Conf

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL