devconf

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2023 License: MIT Imports: 13 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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