chartverifier

package
v0.0.0-...-67ede70 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 11, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ReportAPIVersion = "v1"
	ReportKind       = "verify-report"
)

Functions

func DefaultRegistry

func DefaultRegistry() checks.Registry

func GenerateSha

func GenerateSha(rawFiles []*helmchart.File) string

func GetPackageDigest

func GetPackageDigest(uri string) string

func NewCheckErr

func NewCheckErr(err error) error

Types

type AnnotationHolder

type AnnotationHolder struct {
	Holder                        ReportBuilder
	CertifiedOpenShiftVersionFlag string
}

func (*AnnotationHolder) GetCertifiedOpenShiftVersionFlag

func (holder *AnnotationHolder) GetCertifiedOpenShiftVersionFlag() string

func (*AnnotationHolder) SetCertifiedOpenShiftVersion

func (holder *AnnotationHolder) SetCertifiedOpenShiftVersion(version string)

func (*AnnotationHolder) SetSupportedOpenShiftVersions

func (holder *AnnotationHolder) SetSupportedOpenShiftVersions(versions string)

type By

type By func(p1, p2 *helmchart.File) bool

type CheckErr

type CheckErr string

func (CheckErr) Error

func (e CheckErr) Error() string

type CheckNotFoundErr

type CheckNotFoundErr string

func (CheckNotFoundErr) Error

func (e CheckNotFoundErr) Error() string

type CheckResult

type CheckResult struct {
	checks.Result
	Name string
}

type FilteredRegistry

type FilteredRegistry map[apiChecks.CheckName]checks.Check

type InternalCheckReport

type InternalCheckReport struct {
	APICheckReport apiReport.CheckReport
}

func (*InternalCheckReport) GetAPICheckReport

func (cr *InternalCheckReport) GetAPICheckReport() *apiReport.CheckReport

func (*InternalCheckReport) SetResult

func (cr *InternalCheckReport) SetResult(outcome bool, skipped bool, reason string)

type InternalReport

type InternalReport struct {
	APIReport apiReport.Report
}

func (*InternalReport) AddCheck

func (ir *InternalReport) AddCheck(check checks.Check) *InternalCheckReport

func (*InternalReport) GetAPIReport

func (ir *InternalReport) GetAPIReport() *apiReport.Report

func (*InternalReport) SetReportDigest

func (ir *InternalReport) SetReportDigest()

type ReportBuilder

type ReportBuilder interface {
	SetToolVersion(name string) ReportBuilder
	SetProfile(vendorType profiles.VendorType, version string) ReportBuilder
	SetChartURI(name string) ReportBuilder
	AddCheck(check checks.Check, result checks.Result) ReportBuilder
	SetChart(chart *helmchart.Chart) ReportBuilder
	SetTestedOpenShiftVersion(version string) ReportBuilder
	SetSupportedOpenShiftVersions(versions string) ReportBuilder
	SetWebCatalogOnly(webCatalogOnly bool) ReportBuilder
	SetPublicKeyDigest(digest string) ReportBuilder
	Build() (*apiReport.Report, error)
}

func NewReportBuilder

func NewReportBuilder() ReportBuilder

type Verifier

type Verifier interface {
	Verify(uri string) (*apiReport.Report, error)
}

type VerifierBuilder

type VerifierBuilder interface {
	SetRegistry(registry checks.Registry) VerifierBuilder
	SetValues(vals map[string]interface{}) VerifierBuilder
	SetChecks(checks FilteredRegistry) VerifierBuilder
	SetConfig(config *viper.Viper) VerifierBuilder
	GetConfig() *viper.Viper
	SetOverrides(map[string]interface{}) VerifierBuilder
	SetToolVersion(string) VerifierBuilder
	SetOpenShiftVersion(string) VerifierBuilder
	SetWebCatalogOnly(bool) VerifierBuilder
	SetSkipCleanup(bool) VerifierBuilder
	SetTimeout(time.Duration) VerifierBuilder
	SetPublicKeys([]string) VerifierBuilder
	SetHelmInstallTimeout(time.Duration) VerifierBuilder
	SetSettings(settings *cli.EnvSettings) VerifierBuilder
	Build() (Verifier, error)
}

func NewVerifierBuilder

func NewVerifierBuilder() VerifierBuilder

Directories

Path Synopsis
* Copyright 2021 Red Hat * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License.
* Copyright 2021 Red Hat * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL