Skip to content

Commit b448429

Browse files
author
Jeff McCormick
authored
added alpha scorecard config struct (#2767)
* added alpha scorecard config struct * remove String func, add parallel and name fields * tweak comment to make linter happy(ier) * remove parallel field for now
1 parent 57a94f1 commit b448429

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

internal/scorecard/alpha/config.go

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
// Copyright 2020 The Operator-SDK Authors
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
15+
package alpha
16+
17+
type ScorecardTest struct {
18+
Name string `yaml:"name"` // The container test name
19+
Image string `yaml:"image"` // The container image name
20+
Entrypoint string `yaml:"entrypoint,omitempty"` // An optional entrypoint passed to the test image
21+
Labels map[string]string `yaml:"labels"` // User defined labels used to filter tests
22+
Description string `yaml:"description"` // User readable test description
23+
}
24+
25+
// ScorecardConfig represents the set of test configurations which scorecard
26+
// would run based on user input
27+
type ScorecardConfig struct {
28+
Tests []ScorecardTest `yaml:"tests"`
29+
}

0 commit comments

Comments
 (0)