Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // NullVersion is the v0.0.0 constant NullVersion = semver.MustParse("0.0.0") // SupportedVersions holds all supported temporal versions. SupportedVersions = []VersionInfo{ { Range: semver.MustParseRange(">= 1.16.0"), DefaultSchemaVersions: SchemaVersions{ v1alpha1.PostgresSQLDatastore: semver.MustParse("1.8.0"), v1alpha1.MySQLDatastore: semver.MustParse("1.8.0"), v1alpha1.CassandraDatastore: semver.MustParse("1.7.0"), }, VisibilitySchemaVersion: SchemaVersions{ v1alpha1.PostgresSQLDatastore: semver.MustParse("1.1.0"), v1alpha1.MySQLDatastore: semver.MustParse("1.1.0"), v1alpha1.CassandraDatastore: semver.MustParse("1.0.0"), }, AdvancedVisibilitySchemaVersion: SchemaVersions{ v1alpha1.ElasticsearchDatastore: semver.MustParse("1.0.0"), }, }, { Range: semver.MustParseRange(">= 1.14.0 <1.16.0"), DefaultSchemaVersions: SchemaVersions{ v1alpha1.PostgresSQLDatastore: semver.MustParse("1.7.0"), v1alpha1.MySQLDatastore: semver.MustParse("1.7.0"), v1alpha1.CassandraDatastore: semver.MustParse("1.6.0"), }, VisibilitySchemaVersion: SchemaVersions{ v1alpha1.PostgresSQLDatastore: semver.MustParse("1.1.0"), v1alpha1.MySQLDatastore: semver.MustParse("1.1.0"), v1alpha1.CassandraDatastore: semver.MustParse("1.0.0"), }, AdvancedVisibilitySchemaVersion: SchemaVersions{ v1alpha1.ElasticsearchDatastore: semver.MustParse("1.0.0"), }, }, } )
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.
type VersionInfo ¶ added in v0.1.0
type VersionInfo struct { Range semver.Range DefaultSchemaVersions SchemaVersions VisibilitySchemaVersion SchemaVersions AdvancedVisibilitySchemaVersion SchemaVersions }
VersionInfo holds a temporal version range depedencies versions.
func GetMatchingSupportedVersion ¶ added in v0.1.0
func GetMatchingSupportedVersion(v semver.Version) (*VersionInfo, bool)
GetMatchingSupportedVersion retrives the matching supported VersionInfo from the provided version.
Click to show internal directories.
Click to hide internal directories.