Documentation
¶
Index ¶
- func BackupRemoteCoderDB(dbPath string) (string, error)
- func MigrateImBotCredentials(remoteCoderDBPath, configDir string) (count int, err error)
- func MigrateImBotCredentialsFromConfigDir(configDir string) (int, error)
- func ValidateMigratedData(configDir string) error
- func VerifyImBotMigration(remoteCoderDBPath, configDir string) (sourceCount, destCount int, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BackupRemoteCoderDB ¶
BackupRemoteCoderDB creates a backup of the remote_coder database before migration
func MigrateImBotCredentials ¶
MigrateImBotCredentials migrates ImBot credentials from the old remote_coder database to the standard tingly.db database.
Parameters:
- remoteCoderDBPath: Path to the remote_coder.db file (source)
- configDir: Path to the tingly config directory (destination)
Returns:
- count: Number of records migrated
- err: Any error encountered during migration
func MigrateImBotCredentialsFromConfigDir ¶
MigrateImBotCredentialsFromConfigDir is a convenience function that migrates from the default remote_coder database location for a given config directory.
func ValidateMigratedData ¶
ValidateMigratedData validates that the migrated data can be unmarshaled correctly
func VerifyImBotMigration ¶
func VerifyImBotMigration(remoteCoderDBPath, configDir string) (sourceCount, destCount int, err error)
VerifyImBotMigration verifies that the migration was successful by comparing record counts
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.