Documentation ¶
Overview ¶
Package config provides configuration structures for the application.
Index ¶
- Constants
- func GetByPassPorts(conf *Config) []uint
- func GetDefaultConfig() string
- func Merge(srcStr, destStr string) (string, error)
- func SetByPassPorts(conf *Config, ports []uint)
- func SetDefaultConfig(cfgStr string)
- func SetSelectedTests(conf *Config, testSets []string)
- func SetSelectedTestsNormalize(conf *Config, value string) error
- type BypassRule
- type Config
- type Filter
- type GlobalNoise
- type Globalnoise
- type Noise
- type Normalize
- type Record
- type SelectedTests
- type Test
- type TestsetNoise
Constants ¶
View Source
const InternalConfig = `` /* 139-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
func GetByPassPorts ¶
func GetDefaultConfig ¶
func GetDefaultConfig() string
func SetByPassPorts ¶
func SetDefaultConfig ¶
func SetDefaultConfig(cfgStr string)
func SetSelectedTests ¶
Types ¶
type BypassRule ¶
type Config ¶
type Config struct { Path string `json:"path" yaml:"path" mapstructure:"path" ` AppID string `json:"appId" yaml:"appId" mapstructure:"appId"` ReRecord string `json:"rerecord" yaml:"rerecord" mapstructure:"rerecord"` Command string `json:"command" yaml:"command" mapstructure:"command"` Port uint32 `json:"port" yaml:"port" mapstructure:"port"` DNSPort uint32 `json:"dnsPort" yaml:"dnsPort" mapstructure:"dnsPort"` ProxyPort uint32 `json:"proxyPort" yaml:"proxyPort" mapstructure:"proxyPort"` Debug bool `json:"debug" yaml:"debug" mapstructure:"debug"` DisableTele bool `json:"disableTele" yaml:"disableTele" mapstructure:"disableTele"` DisableANSI bool `json:"disableANSI" yaml:"disableANSI" mapstructure:"disableANSI"` InDocker bool `json:"inDocker" yaml:"inDocker" mapstructure:"inDocker"` ContainerName string `json:"containerName" yaml:"containerName" mapstructure:"containerName"` NetworkName string `json:"networkName" yaml:"networkName" mapstructure:"networkName"` BuildDelay uint64 `json:"buildDelay" yaml:"buildDelay" mapstructure:"buildDelay"` Test Test `json:"test" yaml:"test" mapstructure:"test"` Record Record `json:"record" yaml:"record" mapstructure:"record"` Normalize Normalize `json:"normalize" yaml:"normalize" mapstructure:"normalize"` ConfigPath string `json:"configPath" yaml:"configPath" mapstructure:"configPath"` BypassRules []BypassRule `json:"bypassRules" yaml:"bypassRules" mapstructure:"bypassRules"` EnableTesting bool `json:"enableTesting" yaml:"enableTesting" mapstructure:"enableTesting"` GenerateGithubActions bool `json:"generateGithubActions" yaml:"generateGithubActions" mapstructure:"generateGithubActions"` KeployContainer string `json:"keployContainer" yaml:"keployContainer" mapstructure:"keployContainer"` KeployNetwork string `json:"keployNetwork" yaml:"keployNetwork" mapstructure:"keployNetwork"` CommandType string `json:"cmdType" yaml:"cmdType" mapstructure:"cmdType"` }
type Filter ¶
type Filter struct { BypassRule `mapstructure:",squash"` URLMethods []string `json:"urlMethods" yaml:"urlMethods" mapstructure:"urlMethods"` Headers map[string]string `json:"headers" yaml:"headers" mapstructure:"headers"` }
type GlobalNoise ¶
type Globalnoise ¶
type Globalnoise struct { Global GlobalNoise `json:"global" yaml:"global" mapstructure:"global"` Testsets TestsetNoise `json:"test-sets" yaml:"test-sets" mapstructure:"test-sets"` }
type Normalize ¶
type Normalize struct { SelectedTests []SelectedTests `json:"selectedTests" yaml:"selectedTests" mapstructure:"selectedTests"` TestRun string `json:"testReport" yaml:"testReport" mapstructure:"testReport"` }
type SelectedTests ¶
type Test ¶
type Test struct { SelectedTests map[string][]string `json:"selectedTests" yaml:"selectedTests" mapstructure:"selectedTests"` GlobalNoise Globalnoise `json:"globalNoise" yaml:"globalNoise" mapstructure:"globalNoise"` Delay uint64 `json:"delay" yaml:"delay" mapstructure:"delay"` APITimeout uint64 `json:"apiTimeout" yaml:"apiTimeout" mapstructure:"apiTimeout"` Coverage bool `json:"coverage" yaml:"coverage" mapstructure:"coverage"` // boolean to capture the coverage in test CoverageReportPath string `json:"coverageReportPath" yaml:"coverageReportPath " mapstructure:"coverageReportPath"` // directory path to store the coverage files GoCoverage bool `json:"goCoverage" yaml:"goCoverage" mapstructure:"goCoverage"` // boolean to capture the coverage in test IgnoreOrdering bool `json:"ignoreOrdering" yaml:"ignoreOrdering" mapstructure:"ignoreOrdering"` MongoPassword string `json:"mongoPassword" yaml:"mongoPassword" mapstructure:"mongoPassword"` Language string `json:"language" yaml:"language" mapstructure:"language"` RemoveUnusedMocks bool `json:"removeUnusedMocks" yaml:"removeUnusedMocks" mapstructure:"removeUnusedMocks"` FallBackOnMiss bool `json:"fallBackOnMiss" yaml:"fallBackOnMiss" mapstructure:"fallBackOnMiss"` }
Click to show internal directories.
Click to hide internal directories.