Documentation ¶
Index ¶
- Constants
- Variables
- func GetLatestAutoInc(cv *CalVer) (int, error)
- func Retag(args TagArgs) (string, error)
- func SetRepoFormat(f *Format) error
- func TagExists(tag string) bool
- func TagNext(args TagArgs) (string, error)
- func Untag(args TagArgs) error
- func VerifyHash(hash string) (string, error)
- type CalVer
- type CalVerArgs
- type CalVerTagGroup
- type Format
- type TagArgs
Constants ¶
View Source
const ( // FullYear notation - 2006, 2016, 2106 FullYear = "YYYY" // ShortYear notation - 6, 16, 106 ShortYear = "YY" // PaddedYear notation - 06, 16, 106 PaddedYear = "0Y" // ShortMonth notation - 1, 2 ... 11, 12 ShortMonth = "MM" // PaddedMonth notation - 01, 02 ... 11, 12 PaddedMonth = "0M" // ShortWeek notation - 1, 2, 33, 52 ShortWeek = "WW" // PaddedWeek notation - 01, 02, 33, 52 PaddedWeek = "0W" // ShortDay notation - 1, 2 ... 30, 31 ShortDay = "DD" // PaddedDay notation - 01, 02 ... 30, 31 PaddedDay = "0D" Minor = "MINOR" Micro = "MICRO" Auto = "AUTO" )
Variables ¶
View Source
var ValidSegments = [12]string{ FullYear, ShortYear, PaddedYear, ShortMonth, PaddedMonth, ShortWeek, PaddedWeek, ShortDay, PaddedDay, Minor, Micro, Auto, }
Functions ¶
func GetLatestAutoInc ¶
func SetRepoFormat ¶
func VerifyHash ¶
Types ¶
type CalVer ¶
type CalVer struct { Format *Format Minor uint Micro uint AutoIncrement bool Increment uint Modifier string // contains filtered or unexported fields }
func NewCalVer ¶
func NewCalVer(a CalVerArgs) (*CalVer, error)
func NextCalVer ¶
func NextCalVer(a CalVerArgs) (*CalVer, error)
type CalVerArgs ¶
type CalVerArgs struct { Format *Format RawFormat string Minor *uint Micro *uint Modifier string DryRun bool AutoIncrement bool Hash string }
func (*CalVerArgs) String ¶
func (c *CalVerArgs) String() string
type CalVerTagGroup ¶
type CalVerTagGroup struct { Hash string Tags []string When time.Time Commit *object.Commit Refs []*plumbing.Reference Latest bool ChangeLog []*object.Commit }
func (*CalVerTagGroup) Time ¶
func (cvt *CalVerTagGroup) Time() time.Time
type Format ¶
type Format struct { Major segment Minor segment Micro segment }
func GetRepoFormat ¶
func (*Format) NeedsMicro ¶
func (*Format) NeedsMinor ¶
Click to show internal directories.
Click to hide internal directories.