-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add executor option for src validate install * remove commented code, remove option * remove binary * lint * update error int to -1
- Loading branch information
1 parent
1ef7956
commit 4eff6b7
Showing
2 changed files
with
63 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -52,6 +52,11 @@ type Insight struct { | |
DeleteWhenDone bool `yaml:"deleteWhenDone"` | ||
} | ||
|
||
type Executor struct { | ||
Enabled bool `yaml:"enabled"` | ||
Count bool `yaml:"count"` | ||
} | ||
|
||
type Smtp struct { | ||
Enabled bool `yaml:"enabled"` | ||
To string `yaml:"to"` | ||
|
@@ -67,6 +72,9 @@ type ValidationSpec struct { | |
// Insight used for validation testing. | ||
Insight Insight `yaml:"insight"` | ||
|
||
// Executor check configuration | ||
Executor Executor `yaml:"executor"` | ||
|
||
//Test SMTP configuration | ||
Smtp Smtp `yaml:"smtp"` | ||
} | ||
|
@@ -116,6 +124,9 @@ func DefaultConfig() *ValidationSpec { | |
}, | ||
DeleteWhenDone: true, | ||
}, | ||
Executor: Executor{ | ||
Enabled: false, | ||
}, | ||
Smtp: Smtp{ | ||
Enabled: false, | ||
To: "[email protected]", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters