Documentation ¶
Index ¶
- Constants
- type APIReportSummary
- type Annotation
- type BooleanKey
- type DigestReport
- type MetadataReport
- type ReportSummary
- func (r *ReportSummary) GetContent(summary SummaryType, format SummaryFormat) (string, error)
- func (r *ReportSummary) SetBoolean(key BooleanKey, value bool) APIReportSummary
- func (r *ReportSummary) SetReport(report *report.Report) APIReportSummary
- func (r *ReportSummary) SetValues(values map[string]interface{}) APIReportSummary
- type ResultsReport
- type SummaryFormat
- type SummaryType
Constants ¶
View Source
const ( AnnotationsPrefixConfigName string = "annotations.prefix" DefaultAnnotationsPrefix string = "charts.openshift.io" DigestsAnnotationName string = "digest" LastCertifiedTimestampAnnotationName string = "lastCertifiedTimestamp" CertifiedOCPVersionsAnnotationName string = "certifiedOpenShiftVersions" TestedOCPVersionAnnotationName string = "testedOpenShiftVersion" SupportedOCPVersionsAnnotationName string = "supportedOpenShiftVersions" MetadataSummary SummaryType = "metadata" DigestsSummary SummaryType = "digests" ResultsSummary SummaryType = "results" AnnotationsSummary SummaryType = "annotations" AllSummary SummaryType = "all" JSONReport SummaryFormat = "json" YAMLReport SummaryFormat = "yaml" // SkipDigestCheck: Use for testing purpose only SkipDigestCheck BooleanKey = "skipDigestCheck" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIReportSummary ¶
type APIReportSummary interface { SetBoolean(key BooleanKey, value bool) APIReportSummary SetReport(report *report.Report) APIReportSummary GetContent(SummaryType, SummaryFormat) (string, error) SetValues(values map[string]interface{}) APIReportSummary }
func NewReportSummary ¶
func NewReportSummary() APIReportSummary
type Annotation ¶
type BooleanKey ¶
type BooleanKey string
type DigestReport ¶
type MetadataReport ¶
type MetadataReport struct { ProfileVendorType profiles.VendorType `json:"vendorType" yaml:"vendorType"` ProfileVersion string `json:"profileVersion" yaml:"profileVersion"` WebCatalogOnly bool `json:"webCatalogOnly" yaml:"webCatalogOnly,omitempty"` //nolint:stylecheck // complains Uri should be URI - leaving as is for now //because this produces an outputted file. ChartUri string `json:"chart-uri" yaml:"chart-uri"` Chart *helmchart.Metadata `json:"chart" yaml:"chart"` }
type ReportSummary ¶
type ReportSummary struct { AnnotationsReport []Annotation `json:"annotations,omitempty" yaml:"annotations,omitempty"` DigestsReport *DigestReport `json:"digests,omitempty" yaml:"digests,omitempty"` MetadataReport *MetadataReport `json:"metadata,omitempty" yaml:"metadata,omitempty"` ResultsReport *ResultsReport `json:"results,omitempty" yaml:"results,omitempty"` // contains filtered or unexported fields }
func (*ReportSummary) GetContent ¶
func (r *ReportSummary) GetContent(summary SummaryType, format SummaryFormat) (string, error)
func (*ReportSummary) SetBoolean ¶
func (r *ReportSummary) SetBoolean(key BooleanKey, value bool) APIReportSummary
* Set a boolean flag. Overwrites any previous setting.
func (*ReportSummary) SetReport ¶
func (r *ReportSummary) SetReport(report *report.Report) APIReportSummary
func (*ReportSummary) SetValues ¶
func (r *ReportSummary) SetValues(values map[string]interface{}) APIReportSummary
type ResultsReport ¶
type SummaryFormat ¶
type SummaryFormat string
type SummaryType ¶
type SummaryType string
Click to show internal directories.
Click to hide internal directories.