Documentation
¶
Index ¶
- Constants
- func CheckAnsibleVersion() error
- func DeletePlaybook(id string) error
- func GetServicePID(client *ssh.Client, serviceName, password string) (string, error)
- func MakeMigrationListRes(sourceSoftwareModel *softwaremodel.SourceSoftwareModel) (*softwaremodel.TargetSoftwareModel, error)
- func MigrateRepositoryConfiguration(sourceClient *ssh.Client, targetClient *ssh.Client, uuid string, ...) error
- func MigrateSoftware(execution *Execution)
- type ConfigFile
- type Connection
- type DirectoryRef
- type Execution
- type Logger
- func (l *Logger) Close()
- func (l *Logger) Fatal(logLevel string, exitCode int, msg ...interface{})
- func (l *Logger) Fatalf(logLevel string, exitCode int, format string, a ...any)
- func (l *Logger) Fatalln(logLevel string, exitCode int, msg ...interface{})
- func (l *Logger) Init(logPath, logFileName string) (*Logger, error)
- func (l *Logger) Panic(logLevel string, msg ...interface{})
- func (l *Logger) Panicf(logLevel string, format string, a ...any)
- func (l *Logger) Panicln(logLevel string, msg ...interface{})
- func (l *Logger) Print(logLevel string, msg ...interface{})
- func (l *Logger) Printf(logLevel string, format string, a ...any)
- func (l *Logger) Println(logLevel string, msg ...interface{})
- type ServiceInfo
- type SystemType
Constants ¶
View Source
const ( // INFO : Informational messages printed with green. INFO = "INFO" // DEBUG : Debugging messages printed with teal. DEBUG = "DEBUG" // WARN : Warning messages printed with yellow. WARN = "WARN" // ERROR : Error messages printed with red. ERROR = "ERROR" // CRITICAL : Critical messages printed with magenta. CRITICAL = "CRITICAL" // NONE : Print normal messages with none of color and date, prefix. NONE = "NONE" )
Variables ¶
This section is empty.
Functions ¶
func CheckAnsibleVersion ¶ added in v0.2.2
func CheckAnsibleVersion() error
func DeletePlaybook ¶
func GetServicePID ¶ added in v0.2.2
func MakeMigrationListRes ¶ added in v0.2.2
func MakeMigrationListRes(sourceSoftwareModel *softwaremodel.SourceSoftwareModel) (*softwaremodel.TargetSoftwareModel, error)
func MigrateRepositoryConfiguration ¶ added in v0.3.1
func MigrateRepositoryConfiguration(sourceClient *ssh.Client, targetClient *ssh.Client, uuid string, migrationLogger *Logger) error
MigrateRepositoryConfiguration migrates repository configuration from source to target
func MigrateSoftware ¶ added in v0.2.2
func MigrateSoftware(execution *Execution)
Types ¶
type ConfigFile ¶ added in v0.2.2
type Connection ¶ added in v0.2.2
type Connection struct {
Protocol string
LocalAddress string
ForeignAddress string
PID int
Command string
ProgramName string
}
func GetListeningConnections ¶ added in v0.2.2
func GetListeningConnections(client *ssh.Client, password string) ([]Connection, error)
type DirectoryRef ¶ added in v0.2.3
type Execution ¶ added in v0.4.0
type Execution struct {
ExecutionID string
MigrationList *softwaremodel.MigrationList
MigrationStatusList []model.SoftwareMigrationStatus
Target model.Target
SourceConnectionInfoID string
SourceClient *ssh.Client
TargetClient *ssh.Client
}
func PrepareSoftwareMigration ¶ added in v0.3.3
func PrepareSoftwareMigration(executionID string, targetServers []softwaremodel.MigrationServer, nsId string, infraId string) ([]Execution, []model.TargetMapping, error)
type Logger ¶ added in v0.2.2
type Logger struct {
// contains filtered or unexported fields
}
func (*Logger) Fatal ¶ added in v0.2.2
Fatal : Print the log with a colored level then exit with return value 1
func (*Logger) Fatalf ¶ added in v0.2.2
Fatalf : Print the formatted log with a colored level then exit with return value 1
func (*Logger) Fatalln ¶ added in v0.2.2
Fatalln : Print the log with a colored level with new line then exit with return value 1
func (*Logger) Panicf ¶ added in v0.2.2
Panicf : Print the formatted log with a colored level then call panic()
func (*Logger) Panicln ¶ added in v0.2.2
Panicln : Print the log with a colored level with new line then call panic()
type ServiceInfo ¶ added in v0.2.2
type SystemType ¶ added in v0.2.2
type SystemType int
const ( Unknown SystemType = iota Debian RHEL )
Click to show internal directories.
Click to hide internal directories.