vpapp

package
v0.0.0-...-bf055c7 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2019 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Package vpapp contains small tools to handle app package "à la" autotools as well as version.

Index

Constants

View Source
const PackageCopyright = "Copyright (C)  2015, 2016  Christian Mauduit <ufoot@ufoot.org>" // PackageCopyright set by version.sh

PackageCopyright contains a short copyright notice.

View Source
const PackageEmail = "ufoot@ufoot.org" // PackageEmail set by version.sh

PackageEmail contains a contact email for the package.

View Source
const PackageLicense = "GNU GPL v3" // PackageLicense set by version.sh

PackageLicense contains a short license information.

View Source
const PackageName = "Vapor Toolkit" // PackageName set by version.sh

PackageName contains a readable name of the package, suitable for display.

View Source
const PackageTarname = "vapor" // PackageTarname set by version.sh

PackageTarname contains a short name of the package, suitable for a filename.

View Source
const PackageURL = "https://github.com/ufoot/vapor" // PackageURL set by version.sh

PackageURL contains the address of the project homepage.

View Source
const VersionMajor = 0 // VersionMajor set by version.sh

VersionMajor is the project major version.

View Source
const VersionMinor = 3 // VersionMinor set by version.sh

VersionMinor is the project minor version.

View Source
const VersionStamp = "c6a4298" // VersionStamp set by version.sh

VersionStamp is the project stamp, possibly changes for each build.

Variables

This section is empty.

Functions

func CalcID

func CalcID(p *vpcommonapi.Package, v *vpcommonapi.Version) []byte

CalcID generates an Application ID from Package and Version

func Compare

func Compare(v1, v2 *vpcommonapi.Version) int

Compare compares two versions, returns -1 if v1<v2, 0 if they are equal, and +1 if v1>v2. Stamp is just ignored, only major and minor are considered.

func Compatible

func Compatible(v1, v2 *vpcommonapi.Package) bool

Compatible tells wether two packages refer to the same application, basically only the Tarname is checked, the rest is considered informative.

func DefaultPackage

func DefaultPackage() *vpcommonapi.Package

DefaultPackage creates a new default object.

func DefaultVersion

func DefaultVersion() *vpcommonapi.Version

DefaultVersion creates a new default object.

func Equal

func Equal(v1, v2 *vpcommonapi.Version) bool

Equal returns true if the versions are exactly the same. Stamp is still just ignored, only major and minor are considered.

func NewPackage

func NewPackage(tarname, name, email, url, copyright, license string) *vpcommonapi.Package

NewPackage creates a new package object.

func NewVersion

func NewVersion(major, minor int, stamp string) *vpcommonapi.Version

NewVersion creates a new version object.

func PackageToString

func PackageToString(p *vpcommonapi.Package) string

PackageToString returns the package as a string

func VersionToString

func VersionToString(v *vpcommonapi.Version) string

VersionToString returns the version as a string

Types

This section is empty.

Jump to

Keyboard shortcuts

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