Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RenameFromInsightsIndexName ¶
RenameFromInsightsIndexName - rename from the original insights index name to the new index name This must remove extra tags from re-indexes.
Types ¶
type Status ¶
type Status struct {
// contains filtered or unexported fields
}
func (*Status) CompletedTasks ¶
CompletedTasks returns the number of tasks completed
func (*Status) MarkUnneeded ¶
func (ms *Status) MarkUnneeded()
MarkUnneeded marks the migrations status to done
func (*Status) MigrationNeeded ¶
MigrationNeeded Verify if a migration is needed
func (*Status) Start ¶
func (ms *Status) Start()
Start - start the migration from a prior automate to the current automate for only the config-mgmt-service.
We would like to use the Chain-of-responsibility pattern here but cannot because of the requirement of two stages of migration. We can not have the second stage start its migration from version 1 -> 2 after the first stage has migrated from 1 -> 2 -> ... -> n. This causes a problem because the second stage is migration from 1 -> 2 does not know what state the first stage has left the data in. For the migration framework we are always going to migrate from the current state to the current version. This does cause a maintenance problem because for each new version the old migration stages need to be updated.
func (*Status) TotalTasks ¶
TotalTasks returns the total number of tasks to process a migration