Documentation
¶
Overview ¶
Package rhctag implements types for working with versions as used in the Red Hat Container Catalog.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Version ¶
Version allows extracting the "major" and "minor" versions so that we don't compare container tags from different minor versions.
This is a workaround for another problem where not all minor releases of containers have a unique CPE.
For example, take "ocs4/rook-ceph-rhel8-operator": it shipped at least 2 minor releases into the same container repository. Both those major versions use the same CPE: "cpe:/a:redhat:openshift_container_storage:4". Here are 2 example tags which fixed CVE-2020-8565:
- 4.7-140.49a6fcf.release_4.7
- 4.8-167.9a9db5f.release_4.8
This type also handles container tags which have a 'v' prefix (e.g. "openshift4/ose-metering-hive").
- v4.6.0-202112140546.p0.g8b9da97.assembly.stream
- v4.7.0-202112140553.p0.g091bb99.assembly.stream
func Parse ¶
Parse attempts to extract a Red Hat container registry tag version string from the provided string.
func (*Version) MinorStart ¶
MinorStart returns a Version which is lower than all others in the minor range major-minor series of the receiver.