version

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: May 23, 2022 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

The release version is defined here.

Index

Constants

This section is empty.

Variables

View Source
var GITREV string = "<unset>"

old name compat

View Source
var MIGRATIONS = []*upgrade.Migration{{
	Name:    "upgrade_channel",
	Version: semver.MustParse("0.5.0"),
	Apply: func(f fsdir.T) error {
		c := relaycfg.Defaults()
		if err := f.Get(&c, "config.json.next"); err != nil {
			return fmt.Errorf("could not load config.json.next: %s", err)
		}
		for _, re := range c.Contracts {
			re.UpgradeChannel = re.Channel
			re.Channel = ""
		}
		if err := f.Set(&c, "config.json.next"); err != nil {
			return fmt.Errorf("could not save config.json.next: %s", err)
		}
		return nil
	},
}}

MIGRATIONS is the slice of versioned migrations.

VERSION is the semver version struct of VERSION_STRING.

View Source
var VERSION_STRING = GITREV

VERSION_STRING is the current version string, set by the linker via go build -X flag.

Functions

func LatestChannelVersion

func LatestChannelVersion(f fsdir.T) (semver.Version, error)

LatestChannelVersion is a special function for wireleap-relay which will obtain the latest version supported by the currently configured update channel from the directory.

func PostRollbackHook

func PostRollbackHook(f fsdir.T) (err error)

Post-rollback hook for rollbackcmd.

Types

This section is empty.

Jump to

Keyboard shortcuts

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