Documentation
¶
Index ¶
- type ExecutionParams
- type MigrationOrchestrator
- type MigrationWorkflow
- func (s *MigrationWorkflow) CheckLags(ctx context.Context, config *types.MigrationConfig, lagThreshold int64, ...) error
- func (s *MigrationWorkflow) FenceGateway(ctx context.Context, config *types.MigrationConfig) error
- func (s *MigrationWorkflow) Initialize(ctx context.Context, config *types.MigrationConfig, ...) error
- func (s *MigrationWorkflow) PromoteTopics(ctx context.Context, config *types.MigrationConfig, ...) error
- func (s *MigrationWorkflow) SwitchGateway(ctx context.Context, config *types.MigrationConfig) error
- type WorkflowStep
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExecutionParams ¶
ExecutionParams holds runtime parameters needed during migration execution
type MigrationOrchestrator ¶
type MigrationOrchestrator struct {
// contains filtered or unexported fields
}
MigrationOrchestrator manages the FSM lifecycle and coordinates workflow execution
func NewMigrationOrchestrator ¶
func NewMigrationOrchestrator( config *types.MigrationConfig, workflow *MigrationWorkflow, migrationState *types.MigrationState, stateFilePath string, ) *MigrationOrchestrator
NewMigrationOrchestrator creates a new migration orchestrator with injected dependencies
func (*MigrationOrchestrator) Execute ¶
func (o *MigrationOrchestrator) Execute(ctx context.Context, lagThreshold int64, clusterApiKey, clusterApiSecret string) error
Execute runs the full migration workflow from the current state
func (*MigrationOrchestrator) Initialize ¶
func (o *MigrationOrchestrator) Initialize(ctx context.Context, clusterApiKey, clusterApiSecret string) error
Initialize triggers the initialization event
type MigrationWorkflow ¶
type MigrationWorkflow struct {
// contains filtered or unexported fields
}
func NewMigrationWorkflow ¶
func NewMigrationWorkflow( gatewayService gateway.Service, clusterLinkService clusterlink.Service, ) *MigrationWorkflow
func NewMigrationWorkflowWithOffsets ¶
func NewMigrationWorkflowWithOffsets( gatewayService gateway.Service, clusterLinkService clusterlink.Service, sourceOffset *offset.Service, destinationOffset *offset.Service, ) *MigrationWorkflow
func (*MigrationWorkflow) CheckLags ¶
func (s *MigrationWorkflow) CheckLags( ctx context.Context, config *types.MigrationConfig, lagThreshold int64, clusterApiKey, clusterApiSecret string, ) error
CheckLags polls source and destination offsets until lag is below threshold
func (*MigrationWorkflow) FenceGateway ¶
func (s *MigrationWorkflow) FenceGateway(ctx context.Context, config *types.MigrationConfig) error
FenceGateway applies the fenced gateway CR YAML to block traffic
func (*MigrationWorkflow) Initialize ¶
func (s *MigrationWorkflow) Initialize( ctx context.Context, config *types.MigrationConfig, clusterApiKey, clusterApiSecret string, ) error
func (*MigrationWorkflow) PromoteTopics ¶
func (s *MigrationWorkflow) PromoteTopics(ctx context.Context, config *types.MigrationConfig, clusterApiKey, clusterApiSecret string) error
PromoteTopics polls offsets and promotes mirror topics that reach zero lag
func (*MigrationWorkflow) SwitchGateway ¶
func (s *MigrationWorkflow) SwitchGateway(ctx context.Context, config *types.MigrationConfig) error
SwitchGateway applies the switchover gateway CR YAML to point to Confluent Cloud