model

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

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 JobExecution added in v0.5.1

type JobExecution struct {
	JobID             string    `json:"job_id" gorm:"primaryKey"`
	JobType           string    `json:"job_type"`
	ResourceType      string    `json:"resource_type"`
	ResourceName      string    `json:"resource_name"`
	SourceClusterName string    `json:"source_cluster_name"`
	TargetClusterName string    `json:"target_cluster_name"`
	SourceNamespace   string    `json:"source_namespace"`
	TargetNamespace   string    `json:"target_namespace"`
	Status            string    `json:"status"`
	Progress          int       `json:"progress"`
	Message           string    `json:"message"`
	Metadata          string    `json:"metadata"`
	LogPath           string    `json:"log_path"`
	ErrorMessage      string    `json:"error_message"`
	StartedAt         time.Time `json:"started_at"`
	UpdatedAt         time.Time `json:"updated_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"`
	InfraID                string                     `json:"infra_id" validate:"required"`
	NodeID                 string                     `json:"node_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 TBInfraInfo added in v0.5.1

type TBInfraInfo struct {
	Node []TBNodeInfo `json:"node"`
}

type TBNodeInfo added in v0.5.1

type TBNodeInfo struct {
	Id           string            `json:"id"`
	Name         string            `json:"name"`
	Label        map[string]string `json:"label"`
	PublicIP     string            `json:"publicIP"`
	SSHPort      int               `json:"sshPort"`
	SSHKeyID     string            `json:"sshKeyId"`
	NodeUserName string            `json:"nodeUserName,omitempty"`
}

type TBSSHKeyInfo added in v0.2.1

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

type Target added in v0.2.1

type Target struct {
	NamespaceID string `json:"namespace_id" validate:"required"`
	InfraID     string `json:"infra_id" validate:"required"`
	NodeID      string `json:"node_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"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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