store_version

package
v0.1.21 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	VNull = Version(values.Int(0))

	// TODO drop support for versions above
	// TODO use golang generation for versions
	V10 = Version(values.Int(10))
	V11 = Version(values.Int(11))
	V12 = Version(values.Int(12))
	V13 = Version(values.Int(13))
	V14 = Version(values.Int(14))
	V15 = Version(values.Int(15))

	VCurrent = V15
	VNext    = V15
)

Functions

func Greater

func Greater(a, b domain_interfaces.StoreVersion) bool

func GreaterOrEqual

func GreaterOrEqual(a, b domain_interfaces.StoreVersion) bool

func IsVersionLessOrEqualToV11

func IsVersionLessOrEqualToV11(other domain_interfaces.StoreVersion) bool

func Less

func LessOrEqual

func LessOrEqual(a, b domain_interfaces.StoreVersion) bool

Types

type ErrFutureStoreVersion

type ErrFutureStoreVersion struct {
	domain_interfaces.StoreVersion
}

func (ErrFutureStoreVersion) Error

func (err ErrFutureStoreVersion) Error() string

func (ErrFutureStoreVersion) GetErrorType

func (err ErrFutureStoreVersion) GetErrorType() pkgErrDisamb

func (ErrFutureStoreVersion) Is

func (err ErrFutureStoreVersion) Is(target error) bool

type Getter

type Getter interface {
	GetStoreVersion() Version
}

type Version

type Version values.Int

TODO replace with Int

func (Version) GetInt

func (version Version) GetInt() int

func (Version) Less

func (version Version) Less(b domain_interfaces.StoreVersion) bool

func (Version) LessOrEqual

func (version Version) LessOrEqual(b domain_interfaces.StoreVersion) bool

func (*Version) Set

func (version *Version) Set(p string) (err error)

func (Version) String

func (version Version) String() string

Jump to

Keyboard shortcuts

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