Versions in this module Expand all Collapse all v0 v0.9.0 Oct 2, 2026 v0.8.0 Oct 1, 2026 Changes in this version + const DefaultExpiryDays + const QuietMaxBranches + const SourceConfigPrefix + const SourceHeuristic + const SourceNone + var ErrImplicitSourceIsTarget = errors.New("implicit source branch is the integration target") + func BootstrapApply(ctx context.Context, exec *gitcmd.Executor, plan BootstrapPlan, ...) error + func BootstrapPlanDigest(p BootstrapPlan) string + func ExtractLocations(output string, tracked []string) []string + func FormatCheck(r *CheckReport) string + func FormatQueue(r *QueueReport) string + func FormatRun(r *RunReport) string + func NormalizeName(raw string, remotes []string) string + func ReadinessUpdateApply(ctx context.Context, exec *gitcmd.Executor, plan ReadinessUpdatePlan, ...) error + func ReadinessUpdatePlanDigest(p ReadinessUpdatePlan) string + func SplitRemoteBranch(raw string, remotes []string) (remote, branch string, ok bool) + func UpstreamTargetsIntegration(branch, upstream string, resolution Resolution, remotes []string) bool + func WriteBootstrapPlan(path string, p BootstrapPlan) error + func WriteReadinessUpdatePlan(path string, p ReadinessUpdatePlan) error + type BaseMeasurement int + const BaseMeasured + const BaseMeasurementUnknown + type BaselineInput struct + BaseLocations []string + BaseMeasurement BaseMeasurement + BasePrepared PrepareState + BranchLocations []string + BranchPrepared PrepareState + ChangedPaths []string + type BaselineResult struct + Reason string + Status BaselineStatus + func EvaluateBaseline(in BaselineInput) BaselineResult + type BaselineStatus int + const BaselineFail + const BaselinePass + const BaselineUnmeasurable + type BootstrapOptions struct + Branch string + Expiry time.Duration + Issuer string + PlanPath string + RepoPath string + Target string + type BootstrapPlan struct + DestinationRef string + ExpiresAt string + IssuedAt string + Issuer string + ManifestOID string + ManifestPath string + OperationID string + PushEndpoint string + ReadinessTreeDigest string + ReadinessTreeOID string + Remote string + Repository string + RunnerOID string + RunnerPath string + SourceRef string + SourceSHA string + TTLSeconds int64 + TargetRef string + TargetSHA string + Version int + func BootstrapPlanFor(ctx context.Context, exec *gitcmd.Executor, opts BootstrapOptions) (BootstrapPlan, error) + func ReadBootstrapPlan(path string) (BootstrapPlan, error) + type CheckItem struct + Detail string + Name string + Status string + type CheckOptions struct + AllowSkippedChecks bool + Branch string + ControllerConfig string + DirectToDefault bool + IntegrationConfig []string + NoFetch bool + Release bool + RepoPath string + Target string + type CheckReport struct + ContractDigest string + Controller *controllerBinding + Failures int + GateMode string + Items []CheckItem + ManifestOID string + ManifestPath string + Plan TargetPlan + PrepareInputs string + PrepareProfile string + ReadinessDuration time.Duration + ReadinessStatus string + ReadinessTreeOID string + Ready bool + RootFacts []string + RunnerOID string + RunnerPath string + Warnings int + func Check(ctx context.Context, exec *gitcmd.Executor, opts CheckOptions) (*CheckReport, error) + type Facts = config.IntegrationBranchFacts + type PrepareState string + const PrepareStatePristine + const PrepareStateProfilePrepared + const PrepareStateUnknown + const PrepareStateWorkingDir + type QueueEntry struct + AgeDays int + Ahead int + BaseState string + Behind int + Expired bool + MergeState string + Note string + Ref string + type QueueOptions struct + Base string + ConfigValues []string + ControllerConfig string + ExpiryDays int + NoFetch bool + Now time.Time + Quiet bool + RepoPath string + type QueueReport struct + Base string + BaseMissing bool + BaseSource string + ConflictCount int + Entries []QueueEntry + ExpiredCount int + ExpiryDays int + Integration Resolution + MergedCount int + QuietSkipped bool + Remote string + StaleCount int + func CollectQueue(ctx context.Context, exec *gitcmd.Executor, opts QueueOptions) (*QueueReport, error) + type ReadinessUpdateOptions struct + Branch string + Expiry time.Duration + Issuer string + RepoPath string + Target string + type ReadinessUpdatePlan struct + DestinationRef string + ExpiresAt string + IssuedAt string + Issuer string + NewContractDigest string + NewManifestOID string + NewManifestPath string + NewReadinessTreeDigest string + NewReadinessTreeOID string + NewReadinessTreePath string + NewRunnerOID string + NewRunnerPath string + OldContractDigest string + OldManifestOID string + OldManifestPath string + OldReadinessTreeDigest string + OldReadinessTreeOID string + OldReadinessTreePath string + OldRunnerOID string + OldRunnerPath string + OperationID string + OperationRef string + PushEndpoint string + Remote string + Repository string + SourceRef string + SourceSHA string + TTLSeconds int64 + TargetRef string + TargetSHA string + Version int64 + func ReadReadinessUpdatePlan(path string) (ReadinessUpdatePlan, error) + func ReadinessUpdatePlanFor(ctx context.Context, exec *gitcmd.Executor, opts ReadinessUpdateOptions) (ReadinessUpdatePlan, error) + type ReclaimResult struct + Done []string + Failed []string + Skipped string + func (r ReclaimResult) Incomplete() bool + type Resolution = config.IntegrationBranchResolution + func ResolveFromFacts(f Facts) Resolution + func ResolveIntegrationBranch(ctx context.Context, exec *gitcmd.Executor, repoPath string, ...) (Resolution, error) + type RunOptions struct + type RunReport struct + Check *CheckReport + Integrated bool + Printed []string + Reclaim ReclaimResult + SHA string + Source string + Target string + func Run(ctx context.Context, exec *gitcmd.Executor, opts RunOptions) (*RunReport, error) + type TargetPlan struct + Branch string + BranchSHA string + DefaultRef string + HeadSHA string + Integration Resolution + Remote string + Target string + TargetSHA string