Documentation
¶
Index ¶
Constants ¶
const ( ExitSuccess = 0 ExitChanges = 2 // Changes detected (diff mode) ExitPolicyBlock = 3 // Blocked by risk policy ExitSourceHealth = 4 // Source health failure )
ExitCode constants for CLI.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BatchSyncResult ¶
type BatchSyncResult struct {
Results []SyncResult
ChangeSets []*diff.ChangeSet
PRNumber int
PRDraft bool
AutoMergeEnabled bool
Skipped bool
SkipReason string
}
BatchSyncResult holds the outcome of a batch sync run.
type GitOps ¶
type GitOps struct {
// contains filtered or unexported fields
}
GitOps handles git operations for the catalog repo.
func (*GitOps) CreateBranch ¶
CreateBranch creates and checks out a new branch.
type Pipeline ¶
type Pipeline struct {
// contains filtered or unexported fields
}
Pipeline orchestrates the full sync workflow.
func (*Pipeline) LoadCatalog ¶
LoadCatalog loads the existing catalog from disk.
func (*Pipeline) Sync ¶
func (p *Pipeline) Sync(ctx context.Context) ([]SyncResult, error)
Sync runs the full pipeline for the configured providers.
func (*Pipeline) SyncBatch ¶
func (p *Pipeline) SyncBatch(ctx context.Context) (*BatchSyncResult, error)
SyncBatch discovers all configured providers, writes only safe changes, and creates one catalog PR for the run. Provider-level failures are reported in the result but do not block unrelated safe provider changes.
type SourceHealthError ¶
SourceHealthError indicates a source health check failure (exit code 4).
func (*SourceHealthError) Error ¶
func (e *SourceHealthError) Error() string