Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MigrateBatchItemResult ¶
type MigrateBatchItemResult struct {
Mapping MigrateBatchMapping
Result MigrateResult
Err error
}
MigrateBatchItemResult records the outcome of one mapping in file order.
type MigrateBatchMapping ¶
type MigrateBatchMapping struct {
FromCWD string `toml:"from"`
ToCWD string `toml:"to"`
Branch string `toml:"branch"`
}
MigrateBatchMapping describes one source-to-target migration mapping loaded from TOML.
type MigrateBatchOptions ¶
type MigrateBatchOptions struct {
FilePath string
SessionsRoot string
StateDBPath string
Limit int
Since time.Time
HasSince bool
DryRun bool
Confirm bool
PrintCreated bool
}
MigrateBatchOptions controls file-driven batch migration execution.
type MigrateBatchResult ¶
type MigrateBatchResult struct {
DryRun bool
PrintCreated bool
TotalMappings int
Succeeded int
Failed int
Matched int
Created int
Skipped int
Items []MigrateBatchItemResult
}
MigrateBatchResult is the aggregate result for a file-driven batch migration run.
func MigrateSessionsBatch ¶
func MigrateSessionsBatch(opts MigrateBatchOptions) (MigrateBatchResult, error)
MigrateSessionsBatch executes one migration file in declaration order.
type MigrateOptions ¶
type MigrateOptions struct {
FromCWD string
ToCWD string
Branch string
SessionsRoot string
StateDBPath string
Limit int
Since time.Time
HasSince bool
DryRun bool
Confirm bool
PrintCreated bool
}
MigrateOptions controls session migration planning and execution.
type MigratePlan ¶
type MigratePlan struct {
SourceID string
DestID string
SourceRollout string
DestRollout string
SourceCWD string
DestCWD string
SourceBranch string
DestBranch string
}
MigratePlan describes one source session copied to one destination session.
type MigrateResult ¶
type MigrateResult struct {
FromCWD string
ToCWD string
DestBranch string
Matched int
Created int
Skipped int
DryRun bool
PrintCreated bool
Planned []MigratePlan
Warnings []string
}
MigrateResult is the user-facing migration summary.
func MigrateSessions ¶
func MigrateSessions(opts MigrateOptions) (MigrateResult, error)
MigrateSessions copies sessions from one cwd to another and keeps the local thread index in sync.