Documentation ¶
Index ¶
- Constants
- Variables
- func BuildMapBundlesPerChannels(bundlesPerPkg []BundleDeprecate) map[string][]BundleDeprecate
- func GetMaxOCPValue(b bundles.Column) string
- func GetReportValues(bundles []BundleDeprecate, k8sVersion string) ([]string, []string, []string, []string)
- func GetTheLatestBundleVersion(bundlesFromChannel []BundleDeprecate) string
- func MapBundlesPerPackage(bundlesReport []BundleDeprecate) map[string][]BundleDeprecate
- func MapPkgsComplyingWithDeprecateAPI(mapPackagesWithBundles map[string][]BundleDeprecate, k8sVersion string) map[string][]BundleDeprecate
- func ParseBundlesJSONReport() (bundles.Report, error)
- func ParseMultiBundlesJSONReport() ([]bundles.Report, error)
- type APIDashReport
- type BindFlags
- type BundleDeprecate
- type Migrated
- type MultipleArchitecturesBundleReport
- type MultipleArchitecturesPackageReport
- type MultipleArchitecturesReport
- type NotMigrated
- type PackageQA
- type PotentialImpacted
- type QAReport
- type ValidatorPkg
- type ValidatorReport
- type ValidatorReportBundle
Constants ¶
const BLACK = "black"
const DEPRECATED_API_COMPLY = "COMPLY"
nolint:golint
const DEPRECATED_API_NOT_COMPLY = "NOT COMPLY"
nolint:golint
const ERRORS = "ONLY ERRORS"
nolint:golint
const ERRORS_WARNINGS = "FIX ERRORS AND WARNINGS"
nolint:golint
const FOUND = "FOUND"
nolint:golint
const GREEN = "green"
const NOT_USED = "NOT USED"
nolint:golint
const OCPLabel = "com.redhat.openshift.versions"
const ORANGE = "orange"
const PASS = "PASSED IN ALL CHECKS"
nolint:golint
const RED = "red"
const USED = "USED"
nolint:golint
const WARNINGS = "CHECK THE WARNINGS"
nolint:golint
const YELLOW = "#ec8f1c"
Variables ¶
var Flags = BindFlags{}
Functions ¶
func BuildMapBundlesPerChannels ¶
func BuildMapBundlesPerChannels(bundlesPerPkg []BundleDeprecate) map[string][]BundleDeprecate
BuildMapBundlesPerChannels returns a map of bundles per packages
func GetMaxOCPValue ¶
GetMaxOCPValue returns the Max OCP annotation find on the bundle or an string not set to define that it was not set
func GetReportValues ¶ added in v0.1.0
func GetTheLatestBundleVersion ¶
func GetTheLatestBundleVersion(bundlesFromChannel []BundleDeprecate) string
GetTheLatestBundleVersion returns the latest/upper semversion
func MapBundlesPerPackage ¶
func MapBundlesPerPackage(bundlesReport []BundleDeprecate) map[string][]BundleDeprecate
MapBundlesPerPackage returns map with all bundles found per pkg name
func MapPkgsComplyingWithDeprecateAPI ¶ added in v0.1.0
func MapPkgsComplyingWithDeprecateAPI( mapPackagesWithBundles map[string][]BundleDeprecate, k8sVersion string) map[string][]BundleDeprecate
(Green) Complying If is not using deprecated API(s) at all in the head channels If has at least one channel head which is compatible with 4.9 (migrated) and the other head channels are with max ocp version
func ParseBundlesJSONReport ¶
ParseBundlesJSONReport parse the JSON result from the audit-tool index bundle report and return its structure
func ParseMultiBundlesJSONReport ¶ added in v0.1.0
ParseBundlesJSONReport parse the JSON result from the audit-tool index bundle report and return its structure
Types ¶
type APIDashReport ¶
type APIDashReport struct { ImageName string ImageID string ImageHash string ImageBuild string OCPVersion string K8SVersion string Migrated []Migrated NotMigrated []NotMigrated PotentialImpacted []PotentialImpacted GeneratedAt string }
func NewAPIDashReport ¶
func NewAPIDashReport(bundlesReport bundles.Report, optionalValues map[string]string, filterPkg string) *APIDashReport
NewAPIDashReport returns the structure to render the Deprecate API custom dashboard nolint:dupl
type BindFlags ¶
type BindFlags struct { Files string `json:"files,omitempty"` File string `json:"file,omitempty"` OutputPath string `json:"outputPath,omitempty"` Filter string `json:"filter,omitempty"` ContainerEngine string `json:"containerEngine,omitempty"` OptionalValues map[string]string `json:"optionalValues,omitempty"` }
BindFlags define the Flags used to generate the bundleCSV report
type BundleDeprecate ¶ added in v0.1.0
type BundleDeprecate struct { BundleData bundles.Column DeprecateAPIsMsgs []string ApisRemoved1_22 []string ApisRemoved1_25 []string ApisRemoved1_26 []string Permissions1_25 []string Permissions1_26 []string }
func GetHeadOfChannels ¶
func GetHeadOfChannels(bundlesOfPackage []BundleDeprecate) []BundleDeprecate
func GetLatestBundlesVersions ¶
func GetLatestBundlesVersions(bundlesPerChannels map[string][]BundleDeprecate) []BundleDeprecate
GetQtLatestVersionChannelsState returns the qtd. of channels which are OK and configured with max ocp version
func (*BundleDeprecate) AddDeprecateDataFromValidators ¶ added in v0.1.0
func (bd *BundleDeprecate) AddDeprecateDataFromValidators()
func (*BundleDeprecate) AddPotentialWarning ¶ added in v0.1.0
func (bd *BundleDeprecate) AddPotentialWarning()
type MultipleArchitecturesBundleReport ¶ added in v0.2.0
type MultipleArchitecturesPackageReport ¶ added in v0.2.0
type MultipleArchitecturesPackageReport struct { Name string Bundles []MultipleArchitecturesBundleReport }
type MultipleArchitecturesReport ¶ added in v0.1.0
type MultipleArchitecturesReport struct { ImageName string ImageID string ImageHash string ImageBuild string GeneratedAt string Unsupported []MultipleArchitecturesPackageReport Supported []MultipleArchitecturesPackageReport SupportedWithErrors []MultipleArchitecturesPackageReport SupportedWithWarnings []MultipleArchitecturesPackageReport }
func NewMultipleArchitecturesReport ¶ added in v0.1.0
func NewMultipleArchitecturesReport(bundlesReport bundles.Report, filter, containerTool string) *MultipleArchitecturesReport
nolint:dupl
type NotMigrated ¶
type PackageQA ¶ added in v0.1.0
type PackageQA struct { PackageName string DeprecateAPI []string DeprecateAPIColor string CapabilityColor string DisconnectedAnnotation string DisconnectedAnnotationColor string ChannelNaming string ChannelNamingColor string SDKUsage string SDKUsageColor string ScorecardDefaultImages string ScorecardDefaultImagesColor string ScorecardCustomImages string ScorecardCustomImagesColor string Validators string ValidatorsColor string ChannelNamesNotComply []string ChannelNamesComply []string BundlesWithoutDisconnect []string HeadOfChannels []BundleDeprecate Capabilities []string Subscriptions []string }
type PotentialImpacted ¶ added in v0.1.0
type QAReport ¶ added in v0.1.0
type ValidatorPkg ¶ added in v0.1.0
type ValidatorPkg struct { Name string Bundles []ValidatorReportBundle }
type ValidatorReport ¶ added in v0.1.0
type ValidatorReport struct { ImageName string ImageID string ImageHash string ImageBuild string GeneratedAt string FilterBy string Packages []ValidatorPkg }
func NewValidatorReport ¶ added in v0.1.0
func NewValidatorReport(bundlesReport bundles.Report, filterPkg, filterValidator string) *ValidatorReport
nolint:dupl