-
Notifications
You must be signed in to change notification settings - Fork 130
/
nucleusmodel.go
37 lines (33 loc) · 1.21 KB
/
nucleusmodel.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
package config
import "github.com/LambdaTest/test-at-scale/pkg/lumber"
// Model definition for configuration
// NucleusConfig is the application's configuration
type NucleusConfig struct {
Config string
Port string
PayloadAddress string `json:"payloadAddress"`
CollectStats bool `json:"collectStats"`
ConsecutiveRuns int `json:"consecutiveRuns"`
LogFile string
LogConfig lumber.LoggingConfig
CoverageMode bool `json:"coverage"`
DiscoverMode bool `json:"discover"`
ExecuteMode bool `json:"execute"`
FlakyMode bool `json:"flaky"`
TaskID string `json:"taskID" env:"TASK_ID"`
BuildID string `json:"buildID" env:"BUILD_ID"`
Locators string `json:"locators"`
LocatorAddress string `json:"locatorAddress"`
Env string
Verbose bool
Azure Azure `env:"AZURE"`
LocalRunner bool `env:"local"`
SynapseHost string `env:"synapsehost"`
SubModule string `json:"subModule"`
}
// Azure providers the storage configuration.
type Azure struct {
ContainerName string `env:"CONTAINER_NAME"`
StorageAccountName string `env:"STORAGE_ACCOUNT"`
StorageAccessKey string `env:"STORAGE_ACCESS_KEY"`
}