version

package
v0.0.0-...-331d270 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 20, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Minimum supported version
	Minimum = CephVersion{17, 2, 0, 0, ""}

	// Quincy Ceph version
	Quincy = CephVersion{17, 0, 0, 0, ""}
	// Reef Ceph version
	Reef = CephVersion{18, 0, 0, 0, ""}
	// Squid ceph version
	Squid = CephVersion{19, 0, 0, 0, ""}
)

Functions

func IsIdentical

func IsIdentical(a, b CephVersion) bool

IsIdentical checks if Ceph versions are identical

func IsInferior

func IsInferior(a, b CephVersion) bool

IsInferior checks if a given version if inferior to another one

func IsSuperior

func IsSuperior(a, b CephVersion) bool

IsSuperior checks if a given version if superior to another one

func ValidateCephVersionsBetweenLocalAndExternalClusters

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

type CephVersion struct {
	Major    int
	Minor    int
	Extra    int
	Build    int
	CommitID string
}

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) IsAtLeastQuincy

func (v *CephVersion) IsAtLeastQuincy() bool

IsAtLeastQuincy check that the Ceph version is at least Quincy

func (*CephVersion) IsAtLeastReef

func (v *CephVersion) IsAtLeastReef() bool

IsAtLeastReef check that the Ceph version is at least Reef

func (*CephVersion) IsQuincy

func (v *CephVersion) IsQuincy() bool

IsQuincy checks if the Ceph version is Quincy

func (*CephVersion) IsReef

func (v *CephVersion) IsReef() bool

IsReef checks if the Ceph version is Reef

func (*CephVersion) IsSquid

func (v *CephVersion) IsSquid() bool

IsSquid checks if the Ceph version is Squid

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

func (v *CephVersion) Unsupported() bool

Unsupported checks if a given release is supported

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL