-
Notifications
You must be signed in to change notification settings - Fork 130
/
synapsemodel.go
52 lines (43 loc) · 1.24 KB
/
synapsemodel.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
package config
import "github.com/LambdaTest/test-at-scale/pkg/lumber"
// Model definition for configuration
// SynapseConfig the application's configuration
type SynapseConfig struct {
Name string
Config string
LogFile string
LogConfig lumber.LoggingConfig
Env string
Verbose bool
Lambdatest LambdatestConfig
Git GitConfig
ContainerRegistry ContainerRegistryConfig
RepoSecrets map[string]map[string]string
}
// LambdatestConfig contains credentials for lambdatest
type LambdatestConfig struct {
SecretKey string
}
// GitConfig contains git token
type GitConfig struct {
Token string
TokenType string
}
// PullPolicyType defines when to pull docker image
type PullPolicyType string
// ModeType define type of container repo
type ModeType string
// ContainerRegistryConfig contains repo configuration if private repo is used
type ContainerRegistryConfig struct {
PullPolicy PullPolicyType
Mode ModeType
Username string
Password string
}
// defines constant for docker config
const (
PullAlways PullPolicyType = "always"
PullNever PullPolicyType = "never"
PrivateMode ModeType = "private"
PublicMode ModeType = "public"
)