version

package
v0.0.0-...-3f1f3ec Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Minimum supported version is 13.2.4 where ceph-volume is supported
	Minimum = CephVersion{13, 2, 4, 0}
	// Luminous Ceph version
	Luminous = CephVersion{12, 0, 0, 0}
	// Mimic Ceph version
	Mimic = CephVersion{13, 0, 0, 0}
	// Nautilus Ceph version
	Nautilus = CephVersion{14, 0, 0, 0}
	// Octopus Ceph version
	Octopus = CephVersion{15, 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 RegisterImageVersion

func RegisterImageVersion(image string, version CephVersion)

RegisterImageVersion stores the CephVersion detected for a specified image for global access.

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
}

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 GetImageVersion

func GetImageVersion(image string) (*CephVersion, bool)

GetImageVersion returns the CephVersion registered for a specified image (if any) and whether any image was found.

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

func (v *CephVersion) IsAtLeastMimic() bool

IsAtLeastMimic check that the Ceph version is at least Mimic

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

func (v *CephVersion) IsMimic() bool

IsMimic checks if the Ceph version is Mimic

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

Jump to

Keyboard shortcuts

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