version

package
v0.0.3 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

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 GetExpectedDefaultSchemaVersions added in v0.0.3

func GetExpectedDefaultSchemaVersions(v semver.Version) (SchemaVersions, error)

GetExpectedDefaultSchemaVersions returns the default SchemaVersion for the provided temporal version.

func GetExpectedVisibilitySchemaVersions added in v0.0.3

func GetExpectedVisibilitySchemaVersions(v semver.Version) (SchemaVersions, error)

GetExpectedVisibilitySchemaVersions returns the default SchemaVersion for the provided temporal version.

type Version

type Version struct {
	Range                   semver.Range
	DefaultSchemaVersions   SchemaVersions
	VisibilitySchemaVersion 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