Versions in this module Expand all Collapse all v0 v0.8.1 May 22, 2019 v0.8.0 May 17, 2019 Changes in this version + const BasicTestsOpt + const CRDsDirOpt + const CRManifestOpt + const CSVPathOpt + const ConfigOpt + const GlobalManifestOpt + const HumanReadableOutputFormat + const InitTimeoutOpt + const JSONOutputFormat + const KubeconfigOpt + const NamespaceOpt + const NamespacedManifestOpt + const OLMTestsOpt + const OlmDeployedOpt + const OutputFormatOpt + const PluginDirOpt + const ProxyImageOpt + const ProxyPullPolicyOpt + func CalculateResult(tests []scapiv1alpha1.ScorecardTestResult) scapiv1alpha1.ScorecardSuiteResult + func CombineScorecardOutput(outputs []scapiv1alpha1.ScorecardOutput, log string) scapiv1alpha1.ScorecardOutput + func ScorecardTests(cmd *cobra.Command, args []string) error + func TestResultToScorecardTestResult(tr TestResult) scapiv1alpha1.ScorecardTestResult + func TestSuitesToScorecardOutput(suites []TestSuite, log string) scapiv1alpha1.ScorecardOutput + func UpdateState(res scapiv1alpha1.ScorecardTestResult) scapiv1alpha1.ScorecardTestResult + func UpdateSuiteStates(suite scapiv1alpha1.ScorecardSuiteResult) scapiv1alpha1.ScorecardSuiteResult + type AnnotationsContainExamplesTest struct + func NewAnnotationsContainExamplesTest(conf OLMTestConfig) *AnnotationsContainExamplesTest + func (t *AnnotationsContainExamplesTest) Run(ctx context.Context) *TestResult + type BasicTestConfig struct + CR *unstructured.Unstructured + Client client.Client + ProxyPod *v1.Pod + type CRDsHaveResourcesTest struct + func NewCRDsHaveResourcesTest(conf OLMTestConfig) *CRDsHaveResourcesTest + func (t *CRDsHaveResourcesTest) Run(ctx context.Context) *TestResult + type CRDsHaveValidationTest struct + func NewCRDsHaveValidationTest(conf OLMTestConfig) *CRDsHaveValidationTest + func (t *CRDsHaveValidationTest) Run(ctx context.Context) *TestResult + type CheckSpecTest struct + func NewCheckSpecTest(conf BasicTestConfig) *CheckSpecTest + func (t *CheckSpecTest) Run(ctx context.Context) *TestResult + type CheckStatusTest struct + func NewCheckStatusTest(conf BasicTestConfig) *CheckStatusTest + func (t *CheckStatusTest) Run(ctx context.Context) *TestResult + type OLMTestConfig struct + CR *unstructured.Unstructured + CRDsDir string + CSV *olmapiv1alpha1.ClusterServiceVersion + Client client.Client + ProxyPod *v1.Pod + type SpecDescriptorsTest struct + func NewSpecDescriptorsTest(conf OLMTestConfig) *SpecDescriptorsTest + func (t *SpecDescriptorsTest) Run(ctx context.Context) *TestResult + type StatusDescriptorsTest struct + func NewStatusDescriptorsTest(conf OLMTestConfig) *StatusDescriptorsTest + func (t *StatusDescriptorsTest) Run(ctx context.Context) *TestResult + type Test interface + GetDescription func() string + GetName func() string + IsCumulative func() bool + Run func(context.Context) *TestResult + type TestInfo struct + Cumulative bool + Description string + Name string + func (i TestInfo) GetDescription() string + func (i TestInfo) GetName() string + func (i TestInfo) IsCumulative() bool + type TestResult struct + EarnedPoints int + Errors []error + MaximumPoints int + State scapiv1alpha1.State + Suggestions []string + Test Test + func ResultsCumulative(results []TestResult) (TestResult, error) + func ResultsPassFail(results []TestResult) (TestResult, error) + type TestSuite struct + Log string + TestResults []TestResult + Tests []Test + Weights map[string]float64 + func MergeSuites(suites []TestSuite) ([]TestSuite, error) + func NewBasicTestSuite(conf BasicTestConfig) *TestSuite + func NewOLMTestSuite(conf OLMTestConfig) *TestSuite + func NewTestSuite(name, description string) *TestSuite + func (ts *TestSuite) AddTest(t Test, weight float64) + func (ts *TestSuite) Run(ctx context.Context) + func (ts *TestSuite) TotalScore() (score int) + type WritingIntoCRsHasEffectTest struct + func NewWritingIntoCRsHasEffectTest(conf BasicTestConfig) *WritingIntoCRsHasEffectTest + func (t *WritingIntoCRsHasEffectTest) Run(ctx context.Context) *TestResult