Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var BreakingChangesMap = map[defs.BackupType][]string{ defs.LogicalBackup: {"1.5.0"}, defs.IncrementalBackup: {"2.1.0"}, defs.PhysicalBackup: {}, }
BreakingChangesMap map of versions introduced breaking changes to respective backup defs. !!! Versions should be sorted in the ascending order.
Functions ¶
func CompatibleWith ¶
CompatibleWith checks if a given version is compatible the current one. It is not compatible if the current is crossed the breaking ponit (version >= breakingVersion) and the given isn't (v < breakingVersion)
func HasFilelistFile ¶
func IsLegacyArchive ¶
func IsLegacyBackupOplog ¶
Types ¶
type FeatureSupport ¶
type FeatureSupport MongoVersion
func (FeatureSupport) BackupType ¶
func (f FeatureSupport) BackupType(t defs.BackupType) error
func (FeatureSupport) FullPhysicalBackup ¶
func (f FeatureSupport) FullPhysicalBackup() bool
func (FeatureSupport) IncrementalPhysicalBackup ¶
func (f FeatureSupport) IncrementalPhysicalBackup() bool
func (FeatureSupport) PBMSupport ¶
func (f FeatureSupport) PBMSupport() error
type Info ¶
type MongoVersion ¶
type MongoVersion struct { PSMDBVersion string `bson:"psmdbVersion,omitempty"` VersionString string `bson:"version"` Version []int `bson:"versionArray"` }
func GetMongoVersion ¶
func (MongoVersion) IsConfigShardSupported ¶
func (v MongoVersion) IsConfigShardSupported() bool
func (MongoVersion) IsShardedTimeseriesSupported ¶
func (v MongoVersion) IsShardedTimeseriesSupported() bool
func (MongoVersion) Major ¶
func (v MongoVersion) Major() int
func (MongoVersion) String ¶
func (v MongoVersion) String() string
Click to show internal directories.
Click to hide internal directories.