Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var SupportedVersions = []Version{ { Range: semver.MustParseRange(">= 1.16.0"), SchemaVersions: SchemaVersions{ v1alpha1.PostgresSQLDatastore: semver.MustParse("1.8.0"), v1alpha1.MySQLDatastore: semver.MustParse("1.8.0"), v1alpha1.CassandraDatastore: semver.MustParse("1.7.0"), }, }, { Range: semver.MustParseRange(">= 1.14.0 <1.16.0"), SchemaVersions: SchemaVersions{ v1alpha1.PostgresSQLDatastore: semver.MustParse("1.7.0"), v1alpha1.MySQLDatastore: semver.MustParse("1.7.0"), v1alpha1.CassandraDatastore: semver.MustParse("1.6.0"), }, }, }
SupportedVersions holds all supported temporal versions.
Functions ¶
func ParseAndValidateTemporalVersion ¶
ParseAndValidateTemporalVersion parses the provided version and determines if it's a supported one.
Types ¶
type SchemaVersions ¶
type SchemaVersions map[v1alpha1.DatastoreType]semver.Version
SchemaVersions is temporal schemas versions by datastore type.
func GetExpectedSchemaVersions ¶
func GetExpectedSchemaVersions(v semver.Version) (SchemaVersions, error)
GetExpectedSchemaVersions returns the SchemaVersion for the provided temporal version.
type Version ¶
type Version struct { Range semver.Range SchemaVersions SchemaVersions }
Version represents a temporal version range.
Click to show internal directories.
Click to hide internal directories.