Documentation ¶
Index ¶
- Variables
- func IsIdentical(a, b CephVersion) bool
- func IsInferior(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) IsAtLeastNautilus() bool
- func (v *CephVersion) IsAtLeastOctopus() bool
- func (v *CephVersion) IsAtLeastPacific() bool
- func (v *CephVersion) IsAtLeastQuincy() bool
- func (v *CephVersion) IsNautilus() bool
- func (v *CephVersion) IsOctopus() bool
- func (v *CephVersion) IsPacific() bool
- func (v *CephVersion) IsQuincy() 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 is 14.2.5 Minimum = CephVersion{14, 2, 5, 0, ""} // Nautilus Ceph version Nautilus = CephVersion{14, 0, 0, 0, ""} // Octopus Ceph version Octopus = CephVersion{15, 0, 0, 0, ""} // Pacific Ceph version Pacific = CephVersion{16, 0, 0, 0, ""} // Quincy Ceph version Quincy = CephVersion{17, 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 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) IsAtLeastNautilus ¶
func (v *CephVersion) IsAtLeastNautilus() bool
IsAtLeastNautilus check that the Ceph version is at least Nautilus
func (*CephVersion) IsAtLeastOctopus ¶
func (v *CephVersion) IsAtLeastOctopus() bool
IsAtLeastOctopus check that the Ceph version is at least Octopus
func (*CephVersion) IsAtLeastPacific ¶ added in v1.3.0
func (v *CephVersion) IsAtLeastPacific() bool
IsAtLeastPacific check that the Ceph version is at least Pacific
func (*CephVersion) IsAtLeastQuincy ¶ added in v1.5.9
func (v *CephVersion) IsAtLeastQuincy() bool
IsAtLeastQuincy check that the Ceph version is at least Quincy
func (*CephVersion) IsNautilus ¶ added in v1.3.0
func (v *CephVersion) IsNautilus() bool
IsNautilus checks if the Ceph version is Nautilus
func (*CephVersion) IsOctopus ¶ added in v1.3.0
func (v *CephVersion) IsOctopus() bool
IsOctopus checks if the Ceph version is Octopus
func (*CephVersion) IsPacific ¶ added in v1.3.0
func (v *CephVersion) IsPacific() bool
IsPacific checks if the Ceph version is Pacific
func (*CephVersion) IsQuincy ¶ added in v1.5.9
func (v *CephVersion) IsQuincy() bool
IsQuincy checks if the Ceph version is Quincy
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