Documentation ΒΆ
Index ΒΆ
- Variables
- func BumpPatch[S ~string](arg S) S
- func ExecutionAsString(ctx context.Context, e Execution) (string, error)
- func ForcePatch(ctx context.Context, ee Execution, mmrt MMRT) bool
- func LoadExecutionFromPR(ctx context.Context, tprov TagReader, prr PRResolver) (Execution, *PRDetails, error)
- func Max[A ~string, B ~string](a A, b B) string
- func Skip(ctx context.Context, ee Execution, mmrt MMRT) bool
- type ActivePRProjectState
- func (e *ActivePRProjectState) BaseBranchTags() Tags
- func (e *ActivePRProjectState) HeadBranchTags() Tags
- func (e *ActivePRProjectState) HeadCommitTags() Tags
- func (e *ActivePRProjectState) IsMerge() bool
- func (e *ActivePRProjectState) IsTargetingRoot() bool
- func (e *ActivePRProjectState) PR() int
- func (e *ActivePRProjectState) ProvideRefs() RefProvider
- func (e *ActivePRProjectState) RootBranch() string
- func (e *ActivePRProjectState) RootBranchTags() Tags
- type BasicRefProvider
- type Calculation
- type CalculationOutput
- type Execution
- type GitProvider
- type LST
- type LocalProjectState
- func (me *LocalProjectState) BaseBranchTags() Tags
- func (me *LocalProjectState) HeadBranchTags() Tags
- func (*LocalProjectState) HeadCommitTags() Tags
- func (me *LocalProjectState) IsDirty() bool
- func (me *LocalProjectState) IsLocal() bool
- func (*LocalProjectState) IsMerge() bool
- func (me *LocalProjectState) IsTargetingRoot() bool
- func (*LocalProjectState) PR() int
- func (me *LocalProjectState) ProvideRefs() RefProvider
- func (*LocalProjectState) RootBranchTags() Tags
- type MAXLR
- type MAXMR
- type MMRBN
- type MMRT
- type MRLT
- type MRRT
- type MRT
- type NVT
- type PRDetails
- type PRProvider
- type PRResolver
- type RefProvider
- type SingleRefProvider
- type Tag
- type TagReader
- type TagWriter
- type Tags
- func (t Tags) Copy() Tags
- func (t Tags) ExtractCommitRefs() Tags
- func (t Tags) GetReserved() (Tag, bool)
- func (t Tags) MappedByName() map[string]string
- func (t Tags) MarshalZerologArray(a *zerolog.Array)
- func (t Tags) Names() []string
- func (t Tags) SemversMatching(matcher func(string) bool) []string
- func (t Tags) Sort() Tags
Constants ΒΆ
This section is empty.
Variables ΒΆ
View Source
var (
Err = errors.New("simver.Err")
)
Functions ΒΆ
func ExecutionAsString ΒΆ added in v0.13.0
func ForcePatch ΒΆ added in v0.1.34
func LoadExecutionFromPR ΒΆ added in v0.18.0
Types ΒΆ
type ActivePRProjectState ΒΆ added in v0.18.0
type ActivePRProjectState struct { CurrentPR *PRDetails CurrentRootBranchTags Tags CurrentRootCommitTags Tags CurrentHeadCommitTags Tags CurrentBaseCommitTags Tags CurrentBaseBranchTags Tags CurrentHeadBranchTags Tags }
func (*ActivePRProjectState) BaseBranchTags ΒΆ added in v0.18.0
func (e *ActivePRProjectState) BaseBranchTags() Tags
func (*ActivePRProjectState) HeadBranchTags ΒΆ added in v0.18.0
func (e *ActivePRProjectState) HeadBranchTags() Tags
func (*ActivePRProjectState) HeadCommitTags ΒΆ added in v0.18.0
func (e *ActivePRProjectState) HeadCommitTags() Tags
func (*ActivePRProjectState) IsMerge ΒΆ added in v0.18.0
func (e *ActivePRProjectState) IsMerge() bool
func (*ActivePRProjectState) IsTargetingRoot ΒΆ added in v0.18.0
func (e *ActivePRProjectState) IsTargetingRoot() bool
func (*ActivePRProjectState) PR ΒΆ added in v0.18.0
func (e *ActivePRProjectState) PR() int
func (*ActivePRProjectState) ProvideRefs ΒΆ added in v0.18.0
func (e *ActivePRProjectState) ProvideRefs() RefProvider
func (*ActivePRProjectState) RootBranch ΒΆ added in v0.18.0
func (e *ActivePRProjectState) RootBranch() string
func (*ActivePRProjectState) RootBranchTags ΒΆ added in v0.18.0
func (e *ActivePRProjectState) RootBranchTags() Tags
type BasicRefProvider ΒΆ added in v0.1.40
func (*BasicRefProvider) Base ΒΆ added in v0.1.40
func (e *BasicRefProvider) Base() string
func (*BasicRefProvider) Head ΒΆ added in v0.1.40
func (e *BasicRefProvider) Head() string
func (*BasicRefProvider) Merge ΒΆ added in v0.1.40
func (e *BasicRefProvider) Merge() string
func (*BasicRefProvider) Root ΒΆ added in v0.1.40
func (e *BasicRefProvider) Root() string
type Calculation ΒΆ
type Calculation struct { MyMostRecentTag MMRT MostRecentLiveTag MRLT MyMostRecentBuild MMRBN PR int NextValidTag NVT IsMerged bool ForcePatch bool Skip bool }
func (*Calculation) CalculateNewTagsRaw ΒΆ
func (me *Calculation) CalculateNewTagsRaw(ctx context.Context) *CalculationOutput
type CalculationOutput ΒΆ added in v0.1.31
type CalculationOutput struct { BaseTags []string HeadTags []string RootTags []string MergeTags []string }
func (*CalculationOutput) ApplyRefs ΒΆ added in v0.1.31
func (out *CalculationOutput) ApplyRefs(opts RefProvider) Tags
func (*CalculationOutput) CurrentBuildTag ΒΆ added in v0.20.0
func (me *CalculationOutput) CurrentBuildTag(opts RefProvider) (string, string)
type Execution ΒΆ
type Execution interface { PR() int IsTargetingRoot() bool IsMerge() bool HeadCommitTags() Tags HeadBranchTags() Tags BaseBranchTags() Tags RootBranchTags() Tags ProvideRefs() RefProvider }
func NewLocalProjectState ΒΆ added in v0.18.0
type GitProvider ΒΆ
type LocalProjectState ΒΆ added in v0.18.0
func (*LocalProjectState) BaseBranchTags ΒΆ added in v0.18.0
func (me *LocalProjectState) BaseBranchTags() Tags
BaseBranchTags implements Execution.
func (*LocalProjectState) HeadBranchTags ΒΆ added in v0.18.0
func (me *LocalProjectState) HeadBranchTags() Tags
HeadBranchTags implements Execution.
func (*LocalProjectState) HeadCommitTags ΒΆ added in v0.18.0
func (*LocalProjectState) HeadCommitTags() Tags
HeadCommitTags implements Execution.
func (*LocalProjectState) IsDirty ΒΆ added in v0.18.0
func (me *LocalProjectState) IsDirty() bool
func (*LocalProjectState) IsLocal ΒΆ added in v0.18.0
func (me *LocalProjectState) IsLocal() bool
func (*LocalProjectState) IsMerge ΒΆ added in v0.18.0
func (*LocalProjectState) IsMerge() bool
IsMerge implements Execution.
func (*LocalProjectState) IsTargetingRoot ΒΆ added in v0.18.0
func (me *LocalProjectState) IsTargetingRoot() bool
IsTargetingRoot implements Execution.
func (*LocalProjectState) PR ΒΆ added in v0.18.0
func (*LocalProjectState) PR() int
PR implements Execution.
func (*LocalProjectState) ProvideRefs ΒΆ added in v0.18.0
func (me *LocalProjectState) ProvideRefs() RefProvider
ProvideRefs implements Execution.
func (*LocalProjectState) RootBranchTags ΒΆ added in v0.18.0
func (*LocalProjectState) RootBranchTags() Tags
RootBranchTags implements Execution.
type MAXLR ΒΆ added in v0.1.43
type MAXLR string // max live or reserved tag
func MaxLiveOrReservedTag ΒΆ added in v0.1.43
type MAXMR ΒΆ added in v0.1.43
type MAXMR string // max my reserved tag
func MaxMyOrReservedTag ΒΆ added in v0.1.43
type PRDetails ΒΆ
type PRDetails struct { Number int HeadBranch string BaseBranch string RootBranch string // always main Merged bool MergeCommit string HeadCommit string PotentialMergeCommit string BaseCommit string RootCommit string }
func NewPushSimulatedPRDetails ΒΆ added in v0.1.45
func (*PRDetails) IsSimulatedPush ΒΆ added in v0.1.45
type PRProvider ΒΆ
type PRResolver ΒΆ added in v0.1.12
type RefProvider ΒΆ added in v0.1.40
type SingleRefProvider ΒΆ added in v0.18.0
type SingleRefProvider struct {
Ref string
}
func (*SingleRefProvider) Base ΒΆ added in v0.18.0
func (e *SingleRefProvider) Base() string
func (*SingleRefProvider) Head ΒΆ added in v0.18.0
func (e *SingleRefProvider) Head() string
func (*SingleRefProvider) Merge ΒΆ added in v0.18.0
func (e *SingleRefProvider) Merge() string
func (*SingleRefProvider) Root ΒΆ added in v0.18.0
func (e *SingleRefProvider) Root() string
type Tags ΒΆ
type Tags []Tag
func (Tags) ExtractCommitRefs ΒΆ added in v0.1.40
func (Tags) GetReserved ΒΆ
func (Tags) MappedByName ΒΆ added in v0.1.40
func (Tags) MarshalZerologArray ΒΆ added in v0.1.44
MarshalZerologArray implements zerolog.LogArrayMarshaler.
func (Tags) SemversMatching ΒΆ added in v0.1.31
Source Files ΒΆ
Click to show internal directories.
Click to hide internal directories.