Documentation
¶
Overview ¶
vdfile package provides all different type configuration that vd can run with
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WriteVDFile ¶
Created TOML config file based on Config
Types ¶
type Config ¶
type Config struct {
InTerminator string `toml:"interm"`
OutTerminator string `toml:"outterm"`
Params []configParameter `toml:"parameter"`
Commands []configCommand `toml:"command"`
Mismatch string `toml:"mismatch,omitempty"`
}
func DecodeVDFS ¶
Parse TOML file but using fle system FS to Config struct
func GenerateRandomDelay ¶
Adds random delays to commands
type VDFile ¶
type VDFile struct {
InTerminator []byte
OutTerminator []byte
Params map[string]parameter.Parameter
Commands map[string]*command.Command
Mismatch []byte
}
VDFile struct
func ReadVDFile ¶
Read VDFile from disk from the given filepath
func ReadVDFileFromConfig ¶
Creates vdfile struct based on Config containing result of TOML file parsing
Click to show internal directories.
Click to hide internal directories.