Documentation
¶
Overview ¶
Copyright (C) 2020-2023 Red Hat, Inc.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
Copyright (C) 2020-2023 Red Hat, Inc.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
Copyright (C) 2020-2023 Red Hat, Inc.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
Copyright (C) 2020-2022 Red Hat, Inc.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
Index ¶
- Constants
- func CompareVersion(version, constraint string) bool
- func ExtractNameVersionFromName(operatorName string) (name, version string)
- func LoadBinary(bytes []byte, db map[string]*ContainerCatalogEntry) (entries int, err error)
- func LoadCatalogs(offlineDBPath string) error
- func LoadHelmCharts(charts ChartStruct)
- type ChartEntry
- type ChartStruct
- type ContainerCatalogEntry
- type ContainerPageCatalog
- type OfflineValidator
- func (validator OfflineValidator) IsContainerCertified(registry, repository, tag, digest string) bool
- func (validator OfflineValidator) IsHelmChartCertified(helm *release.Release, ourKubeVersion string) bool
- func (validator OfflineValidator) IsOperatorCertified(csvName, ocpVersion, channel string) bool
- type OperatorCatalog
- type OperatorData
- type OperatorOcpVersionMatch
- type Repository
- type Tag
Constants ¶
const (
CSVNAMELENGTH = 2
)
Variables ¶
This section is empty.
Functions ¶
func CompareVersion ¶
CompareVersion compare between versions
func LoadBinary ¶
func LoadBinary(bytes []byte, db map[string]*ContainerCatalogEntry) (entries int, err error)
func LoadCatalogs ¶
func LoadHelmCharts ¶
func LoadHelmCharts(charts ChartStruct)
Types ¶
type ChartEntry ¶
type ChartStruct ¶
type ChartStruct struct {
Entries map[string][]ChartEntry `yaml:"entries"`
}
type ContainerCatalogEntry ¶
type ContainerCatalogEntry struct { ID string `json:"_id"` Architecture string `json:"architecture"` Certified bool `json:"certified"` DockerImageDigest string `json:"image_id"` Repositories []Repository `json:"repositories"` }
type ContainerPageCatalog ¶
type ContainerPageCatalog struct { Page uint `json:"page"` PageSize uint `json:"page_size"` Total uint `json:"total"` Data []ContainerCatalogEntry `json:"data"` }
type OfflineValidator ¶
type OfflineValidator struct{}
func (OfflineValidator) IsContainerCertified ¶
func (validator OfflineValidator) IsContainerCertified(registry, repository, tag, digest string) bool
func (OfflineValidator) IsHelmChartCertified ¶
func (validator OfflineValidator) IsHelmChartCertified(helm *release.Release, ourKubeVersion string) bool
func (OfflineValidator) IsOperatorCertified ¶
func (validator OfflineValidator) IsOperatorCertified(csvName, ocpVersion, channel string) bool
isOperatorCertified check the presence of operator name in certified operators db the operator name is the csv ocpVersion is Major.Minor OCP version
type OperatorCatalog ¶
type OperatorCatalog struct { Page uint `json:"page"` PageSize uint `json:"page_size"` Total uint `json:"total"` Data []OperatorData `json:"data"` NodeName string `json:"nodeName"` }
type OperatorData ¶
type OperatorOcpVersionMatch ¶
type OperatorOcpVersionMatch struct {
// contains filtered or unexported fields
}