pkg

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildGit

func BuildGit(args []string, getTagsFunc func() ([]string, error)) (version string, err error)

func BuildInplace

func BuildInplace(args []string, _ func() ([]string, error)) (version string, err error)

func BumpMinor

func BumpMinor(minor string) (string, error)

BumpMinor increses minor version by one

func FilterTags

func FilterTags(condition string, tags []string, filter func(string, string) bool) (res []string)

FilterTags filter a tag list based on a condition and a filter function

func GenRC

func GenRC(current, desired string) (result string, err error)

func GenReleaseCandidate

func GenReleaseCandidate(args []string) (version string, err error)

func GetAllTags

func GetAllTags() (tags []string, err error)

GetAllTags list all tags in the current directory

func GetBuilderVersion

func GetBuilderVersion(tags []string, version string) (result string)

func GetHighestPatch

func GetHighestPatch(tags []string, transform ...func(string) string) int

GetHighestPatch return the highest patch number from all tags

func GetNextChartVersion

func GetNextChartVersion(current, next string) (ver string, err error)

func GitDescribe added in v0.1.2

func GitDescribe(arguments ...string) (version string, err error)

GitDescribe describe a git using given arguments

func PatchVersion

func PatchVersion(args, tags []string) (version string, err error)

PatchVersion patch a version

Types

type BuildFunc

type BuildFunc func([]string, func() ([]string, error)) (string, error)

BuildFunc build generating function

Jump to

Keyboard shortcuts

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