Versions in this module Expand all Collapse all v0 v0.5.0 Oct 8, 2018 v0.4.0 Oct 4, 2018 Changes in this version + var ErrNotATag = errors.New("not a tag") + var ErrOutputNotFound = errors.New("output not found") + func BranchName(r *git.Repository) string + func Bump(currentVersion *version.Version, strategy Strategy) (*version.Version, error) + func OutputJSON(base *Base) error + func OutputVSO(base *Base) error + func SemverTags(r *git.Repository) (*[]Tag, error) + type Base struct + Branch string + Head *object.Commit + Offset int + Strategy Strategy + Tag Tag + func (b *Base) Bump() error + func (b Base) BranchName() string + func (b Base) BuildMetadata() int + func (b Base) Commit() string + func (b Base) CommitDate() string + func (b Base) FullBuildMetaData() string + func (b Base) FullSemver() string + func (b Base) HeadTag() bool + func (b Base) IsDevelopBranch() bool + func (b Base) IsFeatureBranch() bool + func (b Base) IsMasterBranch() bool + func (b Base) Major() int + func (b Base) MajorMinorPatch() string + func (b Base) Minor() int + func (b Base) Patch() int + func (b Base) PreReleaseLabel() string + func (b Base) PreReleaseNumber() string + func (b Base) Semver() string + func (b Base) String() string + type BaseCollection []*Base + func (v BaseCollection) Len() int + func (v BaseCollection) Less(i, j int) bool + func (v BaseCollection) Swap(i, j int) + type Outputer interface + Output func(base *Base) error + type Outputs struct + func NewOutputs() *Outputs + func (o *Outputs) Output(name string, base *Base) error + func (o *Outputs) Register(name string, output Outputer) + func (o *Outputs) Registered() []string + type Strategy int + const Major + const Minor + const Patch + func (strategy Strategy) String() string + type Tag struct + Hash string + IsAnnoted bool + Reference plumbing.Reference + func HeadTag(r *git.Repository) (*Tag, error) + func (t Tag) String() string + type TagCollection []*Tag + func (v TagCollection) Len() int + func (v TagCollection) Less(i, j int) bool + func (v TagCollection) Swap(i, j int)