version

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: May 30, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

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 Parse

func Parse(v string) (semver.Version, error)

Parse is a utility function to parse the provided version.

func ParseAndValidateTemporalVersion

func ParseAndValidateTemporalVersion(v string) (semver.Version, error)

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.

Jump to

Keyboard shortcuts

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