Documentation
¶
Index ¶
- Variables
- func IsIdentical(a, b CephVersion) bool
- func IsInferior(a, b CephVersion) bool
- func IsStrictlySuperior(a, b CephVersion) bool
- func IsSuperior(a, b CephVersion) bool
- func ValidateCephVersionsBetweenLocalAndExternalClusters(localVersion, externalVersion CephVersion) error
- type CephVersion
- func (v *CephVersion) CephVersionFormatted() string
- func (v *CephVersion) IsAtLeast(other CephVersion) bool
- func (v *CephVersion) IsAtLeastSquid() bool
- func (v *CephVersion) IsAtLeastTentacle() bool
- func (v *CephVersion) IsAtLeastUmbrella() bool
- func (v *CephVersion) ReleaseName() string
- func (v *CephVersion) String() string
- func (v *CephVersion) Supported() bool
- func (v *CephVersion) Unsupported() bool
Constants ¶
This section is empty.
Variables ¶
var ( // Minimum supported version Minimum = CephVersion{19, 2, 0, 0, ""} // Squid ceph version Squid = CephVersion{19, 0, 0, 0, ""} // Tentacle ceph version Tentacle = CephVersion{20, 0, 0, 0, ""} // Umbrella ceph version Umbrella = CephVersion{21, 0, 0, 0, ""} )
Functions ¶
func IsIdentical ¶ added in v1.1.0
func IsIdentical(a, b CephVersion) bool
IsIdentical checks if Ceph versions are identical
func IsInferior ¶ added in v1.1.0
func IsInferior(a, b CephVersion) bool
IsInferior checks if a given version if inferior to another one
func IsStrictlySuperior ¶ added in v1.20.5
func IsStrictlySuperior(a, b CephVersion) bool
IsStrictlySuperior checks if a given version is superior to another one, ignoring any difference in commit ID. Commit IDs are hashes and have no ordering, so unlike IsSuperior this never reports one version as superior to another purely because the two were built from different commits.
func IsSuperior ¶ added in v1.1.0
func IsSuperior(a, b CephVersion) bool
IsSuperior checks if a given version if superior to another one
func ValidateCephVersionsBetweenLocalAndExternalClusters ¶ added in v1.1.0
func ValidateCephVersionsBetweenLocalAndExternalClusters(localVersion, externalVersion CephVersion) error
ValidateCephVersionsBetweenLocalAndExternalClusters makes sure an external cluster can be connected by checking the external ceph versions available and comparing it with the local image provided
Types ¶
type CephVersion ¶
CephVersion represents the Ceph version format
func ExtractCephVersion ¶
func ExtractCephVersion(src string) (*CephVersion, error)
ExtractCephVersion extracts the major, minor and extra digit of a Ceph release
func (*CephVersion) CephVersionFormatted ¶
func (v *CephVersion) CephVersionFormatted() string
CephVersionFormatted returns the Ceph version in a human readable format
func (*CephVersion) IsAtLeast ¶
func (v *CephVersion) IsAtLeast(other CephVersion) bool
IsAtLeast checks a given Ceph version is at least a given one
func (*CephVersion) IsAtLeastSquid ¶ added in v1.15.0
func (v *CephVersion) IsAtLeastSquid() bool
IsAtLeastSquid checks that the Ceph version is at least Squid
func (*CephVersion) IsAtLeastTentacle ¶ added in v1.15.0
func (v *CephVersion) IsAtLeastTentacle() bool
IsAtLeastTentacle checks that the Ceph version is at least Tentacle
func (*CephVersion) IsAtLeastUmbrella ¶ added in v1.19.0
func (v *CephVersion) IsAtLeastUmbrella() bool
IsAtLeastUmbrella checks that the Ceph version is at least Umbrella
func (*CephVersion) ReleaseName ¶
func (v *CephVersion) ReleaseName() string
ReleaseName is the name of the Ceph release
func (*CephVersion) String ¶
func (v *CephVersion) String() string
func (*CephVersion) Supported ¶
func (v *CephVersion) Supported() bool
Supported checks if a given release is supported
func (*CephVersion) Unsupported ¶ added in v1.4.7
func (v *CephVersion) Unsupported() bool
Unsupported checks if a given release is supported