versioning

package
v0.0.0-...-ba1c585 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2017 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Overview

Package versioning handles device manager versioning. Device manager binaries need to be compatible with the existing device manager installation.

Index

Constants

This section is empty.

Variables

View Source
var CurrentVersion = Version{1, 0}

Functions

func CheckCompatibility

func CheckCompatibility(ctx *context.T, dir string) error

Checks the compatibilty of the running binary against the device manager directory on disk

func SaveCreatorInfo

func SaveCreatorInfo(ctx *context.T, dir string) error

Types

type CreatorInfo

type CreatorInfo struct {
	Version  Version
	MetaData string
}

CreationInfo holds data about the binary that originally created the device manager on-disk state

type Version

type Version struct{ Major, Minor int }

Version info for this device manager binary. Increment as appropriate when the binary changes. The major version number should be incremented whenever a change to the binary makes it incompatible with on-disk state created by a binary from a different major version.

Jump to

Keyboard shortcuts

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