model

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 19, 2025 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExecutionStatus added in v0.2.1

type ExecutionStatus struct {
	ExecutionID    string            `json:"execution_id" gorm:"primaryKey"`
	TargetMappings TargetMappingList `json:"target_mappings"`
	StartedAt      time.Time         `json:"started_at"`
	FinishedAt     time.Time         `json:"finished_at"`
}

type ExecutionStatusWithSoftwareMigrationList added in v0.4.2

type ExecutionStatusWithSoftwareMigrationList struct {
	ExecutionID    string                                   `json:"execution_id" gorm:"primaryKey"`
	TargetMappings []TargetMappingWithSoftwareMigrationList `json:"target_mappings"`
	StartedAt      time.Time                                `json:"started_at"`
	FinishedAt     time.Time                                `json:"finished_at"`
}

type MigrationLogRes added in v0.2.2

type MigrationLogRes struct {
	UUID         string `json:"uuid"`
	InstallLog   string `json:"install_log"`
	MigrationLog string `json:"migration_log"`
}

type SSHTarget added in v0.2.1

type SSHTarget struct {
	IP         string `json:"ip"`
	Port       uint   `json:"port"`
	UseKeypair bool   `json:"use_keypair"`
	Username   string `json:"username"`
	Password   string `json:"password"`
	PrivateKey string `json:"private_key"`
}

type SimpleMsg added in v0.2.1

type SimpleMsg struct {
	Message string `json:"message"`
}

type SoftwareMigrateRes added in v0.2.2

type SoftwareMigrateRes struct {
	ExecutionID    string          `json:"execution_id"`
	TargetMappings []TargetMapping `json:"target_mappings"`
}

type SoftwareMigrationStatus added in v0.4.0

type SoftwareMigrationStatus struct {
	ExecutionID            string                     `json:"execution_id" gorm:"primaryKey"`
	SourceConnectionInfoID string                     `json:"source_connection_info_id" gorm:"primaryKey"`
	NamespaceID            string                     `json:"namespace_id" validate:"required"`
	MCIID                  string                     `json:"mci_id" validate:"required"`
	VMID                   string                     `json:"vm_id" validate:"required"`
	Order                  int                        `json:"order" gorm:"primaryKey"`
	SoftwareName           string                     `json:"software_name"`
	SoftwareVersion        string                     `json:"software_version"`
	SoftwareInstallType    softwaremodel.SoftwareType `json:"software_install_type" gorm:"primaryKey"`
	Status                 string                     `json:"status"`
	StartedAt              time.Time                  `json:"started_at"`
	UpdatedAt              time.Time                  `json:"updated_at"`
	ErrorMessage           string                     `json:"error_message"`
}

type SoftwareMigrationStatusList added in v0.4.0

type SoftwareMigrationStatusList []SoftwareMigrationStatus

func (*SoftwareMigrationStatusList) Scan added in v0.4.0

func (esl *SoftwareMigrationStatusList) Scan(value interface{}) error

func (SoftwareMigrationStatusList) Value added in v0.4.0

type SoftwareMigrationStatusReq added in v0.4.2

type SoftwareMigrationStatusReq struct {
	ExecutionID string `json:"execution_id"`
}

type SoftwareMigrationStatusRes added in v0.4.2

type SoftwareMigrationStatusRes struct {
	ExecutionStatusList []ExecutionStatus `json:"execution_status_list"`
}

type SoftwareMigrationStatusSoftwareStatusOnly added in v0.4.2

type SoftwareMigrationStatusSoftwareStatusOnly struct {
	Order               int                        `json:"order" gorm:"primaryKey"`
	SoftwareName        string                     `json:"software_name"`
	SoftwareVersion     string                     `json:"software_version"`
	SoftwareInstallType softwaremodel.SoftwareType `json:"software_install_type" gorm:"primaryKey"`
	Status              string                     `json:"status"`
	StartedAt           time.Time                  `json:"started_at"`
	UpdatedAt           time.Time                  `json:"updated_at"`
	ErrorMessage        string                     `json:"error_message"`
}

type Source added in v0.2.1

type Source struct {
	ConnectionID string `json:"connection_id" yaml:"connection_uuid" validate:"required"`
}

type TBMCIInfo added in v0.3.3

type TBMCIInfo struct {
	VM []TBVMInfo `json:"vm"`
}

type TBSSHKeyInfo added in v0.2.1

type TBSSHKeyInfo struct {
	PrivateKey string `json:"privateKey,omitempty"`
}

type TBVMInfo added in v0.2.1

type TBVMInfo struct {
	Id         string            `json:"id"`
	Label      map[string]string `json:"label"`
	PublicIP   string            `json:"publicIP"`
	SSHPort    string            `json:"sshPort"`
	SSHKeyID   string            `json:"sshKeyId"`
	VMUserName string            `json:"vmUserName,omitempty"`
}

type Target added in v0.2.1

type Target struct {
	NamespaceID string `json:"namespace_id" validate:"required"`
	MCIID       string `json:"mci_id" validate:"required"`
	VMID        string `json:"vm_id" validate:"required"`
}

func (*Target) Scan added in v0.2.1

func (t *Target) Scan(value interface{}) error

func (Target) Value added in v0.2.1

func (t Target) Value() (driver.Value, error)

type TargetMapping added in v0.3.3

type TargetMapping struct {
	SourceConnectionInfoID string `json:"source_connection_info_id"`
	Target                 Target `json:"target" validate:"required"`
	Status                 string `json:"status"`
}

func (*TargetMapping) Scan added in v0.4.2

func (tm *TargetMapping) Scan(value interface{}) error

func (TargetMapping) Value added in v0.4.2

func (tm TargetMapping) Value() (driver.Value, error)

type TargetMappingList added in v0.4.2

type TargetMappingList []TargetMapping

func (*TargetMappingList) Scan added in v0.4.2

func (tml *TargetMappingList) Scan(value interface{}) error

func (TargetMappingList) Value added in v0.4.2

func (tml TargetMappingList) Value() (driver.Value, error)

type TargetMappingWithSoftwareMigrationList added in v0.4.2

type TargetMappingWithSoftwareMigrationList struct {
	SourceConnectionInfoID      string                                      `json:"source_connection_info_id"`
	Target                      Target                                      `json:"target" validate:"required"`
	Status                      string                                      `json:"status"`
	SoftwareMigrationStatusList []SoftwareMigrationStatusSoftwareStatusOnly `json:"software_migration_status_list"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL