Documentation ¶
Index ¶
- type CfgParser
- func (p CfgParser) BackupFile(file string) error
- func (p CfgParser) FindDeviceAddresses(data string) map[string]string
- func (c CfgParser) GetMappings(source, dest map[string]string) map[string]string
- func (p CfgParser) ReadFile(file string) ([]byte, error)
- func (c CfgParser) RemapDevices(source string, addrMap map[string]string) string
- func (p CfgParser) WriteFile(file, data string) error
- type IParser
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CfgParser ¶
func (CfgParser) BackupFile ¶
func (CfgParser) FindDeviceAddresses ¶
func (CfgParser) GetMappings ¶
func (CfgParser) RemapDevices ¶
type IParser ¶
type IParser interface { BackupFile(file string) error ReadFile(file string) ([]byte, error) WriteFile(file, data string) error FindDeviceAddresses(data string) map[string]string GetMappings(source, dest map[string]string) map[string]string RemapDevices(source string, deviceMap map[string]string) string }
Click to show internal directories.
Click to hide internal directories.