bundles

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BindFlags

type BindFlags struct {
	IndexImage        string `json:"image"`
	Limit             int32  `json:"limit"`
	HeadOnly          bool   `json:"headOnly"`
	DisableScorecard  bool   `json:"disableScorecard"`
	DisableValidators bool   `json:"disableValidators"`
	ServerMode        bool   `json:"serverMode"`
	Label             string `json:"label"`
	LabelValue        string `json:"labelValue"`
	Filter            string `json:"filter"`
	OutputPath        string `json:"outputPath"`
	OutputFormat      string `json:"outputFormat"`
	ContainerEngine   string `json:"containerEngine"`
}

BindFlags define the flags used to generate the bundle report

type Column

type Column struct {
	PackageName              string                          `json:"packageName"`
	BundleImagePath          string                          `json:"bundleImagePath,omitempty"`
	DefaultChannel           string                          `json:"defaultChannel,omitempty"`
	MaxOCPVersion            string                          `json:"maxOCPVersion,omitempty"`
	Channels                 []string                        `json:"bundleChannel,omitempty"`
	ValidatorErrors          []string                        `json:"validatorErrors,omitempty"`
	ValidatorWarnings        []string                        `json:"validatorWarnings,omitempty"`
	ScorecardErrors          []string                        `json:"scorecardErrors,omitempty"`
	ScorecardSuggestions     []string                        `json:"scorecardSuggestions,omitempty"`
	ScorecardFailingTests    []string                        `json:"scorecardFailingTests,omitempty"`
	AuditErrors              []string                        `json:"errors,omitempty"`
	HasPossiblePerformIssues bool                            `json:"hasPossiblePerformIssues"`
	HasCustomScorecardTests  bool                            `json:"hasCustomScorecardTests"`
	IsHeadOfChannel          bool                            `json:"isHeadOfChannel"`
	IsDeprecated             bool                            `json:"isDeprecated"`
	IsFromDefaultChannel     bool                            `json:"isFromDefaultChannel"`
	BundleImageLabels        map[string]string               `json:"bundleImageLabels,omitempty"`
	BundleAnnotations        map[string]string               `json:"bundleAnnotations,omitempty"`
	BundleCSV                *v1alpha1.ClusterServiceVersion `json:"csv,omitempty"`
	PropertiesFromDB         []pkg.PropertiesAnnotation      `json:"propertiesFromDB,omitempty"`
}

func NewColumn

func NewColumn(v models.AuditBundle) *Column

func (*Column) AddDataFromScorecard

func (c *Column) AddDataFromScorecard(scorecardResults v1alpha3.TestList)

func (*Column) AddDataFromValidators

func (c *Column) AddDataFromValidators(results []errors.ManifestResult)

func (*Column) SetIsDeprecated

func (c *Column) SetIsDeprecated()

func (*Column) SetMaxOpenshiftVersion

func (c *Column) SetMaxOpenshiftVersion()

type Data

type Data struct {
	AuditBundle       []models.AuditBundle
	Flags             BindFlags
	IndexImageInspect pkg.DockerInspect
}

func (*Data) BuildBundlesQuery

func (d *Data) BuildBundlesQuery() (string, error)

func (*Data) OutputReport

func (d *Data) OutputReport() error

func (*Data) PrepareReport

func (d *Data) PrepareReport() Report

type Report

type Report struct {
	Columns           []Column
	Flags             BindFlags
	IndexImageInspect pkg.DockerInspect
	GenerateAt        string
}

Jump to

Keyboard shortcuts

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