Documentation ¶
Index ¶
- Variables
- func TableName() string
- type Ai
- type AiCenter
- type AiCenterModel
- type AiModel
- type CenterOverview
- type CenterOverviewModel
- type CenterTag
- type CenterTagModel
- type Cloud
- type CloudCenter
- type CloudCenterModel
- type CloudModel
- type ComputeCenter
- type ComputeCenterModel
- type ComputeCluster
- type ComputeClusterModel
- type Dict
- type DictModel
- type DomainResource
- type DomainResourceModel
- type File
- type Hpc
- type HpcCenter
- type HpcCenterModel
- type HpcModel
- type RegionSlurm
- type RegionSlurmModel
- type ResourcePanelConfig
- type ResourcePanelConfigModel
- type Task
- type TaskModel
Constants ¶
This section is empty.
Variables ¶
var ErrNotFound = sqlx.ErrNotFound
Functions ¶
Types ¶
type Ai ¶
type Ai struct { Id int64 `db:"id"` // id TaskId int64 `db:"task_id"` // 任务id ProjectId string `db:"project_id"` // 项目id Name string `db:"name"` // 名称 Status string `db:"status"` // 状态 StartTime string `db:"start_time"` // 开始时间 RunningTime int64 `db:"running_time"` // 运行时间 CreatedBy int64 `db:"created_by"` // 创建人 CreatedTime sql.NullTime `db:"created_time"` // 创建时间 UpdatedBy int64 `db:"updated_by"` // 更新人 UpdatedTime sql.NullTime `db:"updated_time"` // 更新时间 DeletedFlag int64 `db:"deleted_flag"` // 是否删除(0-否,1-是) ServiceName string `db:"service_name"` Result string `db:"result"` YamlString string `db:"yaml_string"` JobId string `db:"job_id"` Command string `db:"command"` FlavorId string `db:"flavor_id"` ImageUrl string `db:"image_url"` SubscriptionId string `db:"subscription_id"` ItemVersionId string `db:"itemVersion_id"` }
type AiCenter ¶
type AiCenter struct { Id int64 `db:"id"` // 平台唯一id ClusterNum sql.NullInt64 `db:"cluster_num"` // 集群数量 NodeNum sql.NullInt64 `db:"node_num"` // 节点数量 CpuNum sql.NullInt64 `db:"cpu_num"` // CPU核数 GpuNum sql.NullInt64 `db:"gpu_num"` // GPU卡数 ManagedFlops sql.NullString `db:"managed_flops"` // 已接入算力 UnmanagedFlops sql.NullString `db:"unmanaged_flops"` // 未接入算力 ManagedStorage sql.NullString `db:"managed_storage"` // 已接入存储 UnmanagedStorage sql.NullString `db:"unmanaged_storage"` // 未接入存储 }
type AiCenterModel ¶
type AiCenterModel interface {
// contains filtered or unexported methods
}
AiCenterModel is an interface to be customized, add more methods here, and implement the added methods in customAiCenterModel.
type AiModel ¶
type AiModel interface {
// contains filtered or unexported methods
}
AiModel is an interface to be customized, add more methods here, and implement the added methods in customAiModel.
type CenterOverview ¶
type CenterOverview struct { Id sql.NullInt64 `json:"id"` CenterSource sql.NullString `json:"centerSource"` SourceId sql.NullString `json:"sourceId"` Name sql.NullString `json:"name"` Description sql.NullString `json:"description"` Type sql.NullString `json:"type"` Area sql.NullString `json:"area"` City sql.NullString `json:"city"` Longitude sql.NullFloat64 `json:"longitude"` Latitude sql.NullFloat64 `json:"latitude"` Status sql.NullString `json:"status"` UserNum sql.NullInt64 `json:"userNum"` DeletedFlag sql.NullInt64 `json:"deletedFlag"` CloudClusterNum sql.NullInt64 `json:"cloudClusterNum"` CloudNodeNum sql.NullInt64 `json:"cloudNodeNum"` CloudCpuNum sql.NullInt64 `json:"cloudCpuNum"` CloudGpuNum sql.NullInt64 `json:"cloudGpuNum"` CloudMngFlops sql.NullInt64 `json:"cloudMngFlops"` CloudUmngFlops sql.NullInt64 `json:"cloudUmngFlops"` CloudMngStorage sql.NullInt64 `json:"CloudMngStorage"` CloudUmngStorage sql.NullInt64 `json:"CloudUmngStorage"` AiClusterNum sql.NullInt64 `json:"aiClusterNum"` AiNodeNum sql.NullInt64 `json:"aiNodeNum"` AiCpuNum sql.NullInt64 `json:"aiCpuNum"` AiGpuNum sql.NullInt64 `json:"aiGpuNum"` AiMngFlops sql.NullInt64 `json:"aiMngFlops"` AiUmngFlops sql.NullInt64 `json:"aiUmngFlops"` AiMngStorage sql.NullInt64 `json:"aiMngStorage"` AiUmngStorage sql.NullInt64 `json:"aiUmngStorage"` HpcClusterNum sql.NullInt64 `json:"hpcClusterNum"` HpcNodeNum sql.NullInt64 `json:"hpcNodeNum"` HpcCpuNum sql.NullInt64 `json:"hpcCpuNum"` HpcGpuNum sql.NullInt64 `json:"hpcGpuNum"` HpcMngFlops sql.NullInt64 `json:"hpcMngFlops"` HpcUmngFlops sql.NullInt64 `json:"hpcUmngFlops"` HpcMngStorage sql.NullInt64 `json:"hpcMngStorage"` HpcUmngStorage sql.NullInt64 `json:"hpcUmngStorage"` Edwc sql.NullBool `json:"edwc"` Ydyl sql.NullBool `json:"ydyl"` HubCode sql.NullInt64 `json:"hubCode"` }
type CenterOverviewModel ¶
type CenterOverviewModel interface {
// contains filtered or unexported methods
}
CenterOverviewModel is an interface to be customized, add more methods here, and implement the added methods in customCenterOverviewModel.
type CenterTag ¶
type CenterTagModel ¶
type CenterTagModel interface {
// contains filtered or unexported methods
}
CenterTagModel is an interface to be customized, add more methods here, and implement the added methods in customCenterTagModel.
type Cloud ¶
type Cloud struct { Id int64 `db:"id"` // id TaskId int64 `db:"task_id"` // 任务id ApiVersion string `db:"api_version"` Name string `db:"name"` // 名称 Namespace string `db:"namespace"` // 命名空间 Kind string `db:"kind"` // 种类 Status string `db:"status"` // 状态 StartTime string `db:"start_time"` // 开始时间 RunningTime int64 `db:"running_time"` // 运行时长 CreatedBy int64 `db:"created_by"` // 创建人 CreatedTime sql.NullTime `db:"created_time"` // 创建时间 UpdatedBy int64 `db:"updated_by"` // 更新人 UpdatedTime sql.NullTime `db:"updated_time"` // 更新时间 DeletedFlag int64 `db:"deleted_flag"` // 是否删除(0-否,1-是) ServiceName string `db:"service_name"` YamlString string `db:"yaml_string"` Result string `db:"result"` }
type CloudCenter ¶
type CloudCenter struct { Id int64 `db:"id"` // 平台唯一id ClusterNum sql.NullInt64 `db:"cluster_num"` // 集群数量 NodeNum sql.NullInt64 `db:"node_num"` // 节点数量 CpuNum sql.NullInt64 `db:"cpu_num"` // CPU核数 GpuNum sql.NullInt64 `db:"gpu_num"` // GPU卡数 ManagedFlops sql.NullString `db:"managed_flops"` // 已接入算力 UnmanagedFlops sql.NullString `db:"unmanaged_flops"` // 未接入算力 ManagedStorage sql.NullString `db:"managed_storage"` // 已接入存储 UnmanagedStorage sql.NullString `db:"unmanaged_storage"` // 未接入存储 }
type CloudCenterModel ¶
type CloudCenterModel interface {
// contains filtered or unexported methods
}
CloudCenterModel is an interface to be customized, add more methods here, and implement the added methods in customCloudCenterModel.
type CloudModel ¶
type CloudModel interface {
// contains filtered or unexported methods
}
CloudModel is an interface to be customized, add more methods here, and implement the added methods in customCloudModel.
type ComputeCenter ¶
type ComputeCenter struct { Id int64 `db:"id"` // 平台唯一id CenterSource sql.NullString `db:"center_source"` // 中心来源(鹏城,nudt,公有云等) SourceId sql.NullString `db:"source_id"` // 数据来源原id Name sql.NullString `db:"name"` // 中心名称 Description sql.NullString `db:"description"` // 详细描述 Type sql.NullString `db:"type"` // 中心类型(云算、智算 or 超算) Area sql.NullString `db:"area"` // 资源区域 City sql.NullString `db:"city"` // 所在城市 Longitude sql.NullFloat64 `db:"longitude"` // 经度 Latitude sql.NullFloat64 `db:"latitude"` // 纬度 Status sql.NullString `db:"status"` // 接入状态 UserNum sql.NullInt64 `db:"user_num"` // 用户数量 DeletedFlag sql.NullInt64 `db:"deleted_flag"` // 是否删除(0-否,1-是) }
type ComputeCenterModel ¶
type ComputeCenterModel interface {
// contains filtered or unexported methods
}
ComputeCenterModel is an interface to be customized, add more methods here, and implement the added methods in customComputeCenterModel.
type ComputeCluster ¶
type ComputeCluster struct { Id int64 `db:"id"` // 集群id Name sql.NullString `db:"name"` // 集群名 Type sql.NullString `db:"type"` // 集群类型 CenterId sql.NullInt64 `db:"center_id"` // 数据中心id CenterName sql.NullString `db:"center_name"` // 数据中心名称 JcceDomainId sql.NullInt64 `db:"jcce_domain_id"` // JCCE侧域ID JcceDomainName sql.NullString `db:"jcce_domain_name"` // JCCE侧域名 Longitude sql.NullFloat64 `db:"longitude"` // 经度 Latitude sql.NullFloat64 `db:"latitude"` // 纬度 Description sql.NullString `db:"description"` // 描述 }
type ComputeClusterModel ¶
type ComputeClusterModel interface {
// contains filtered or unexported methods
}
ComputeClusterModel is an interface to be customized, add more methods here, and implement the added methods in customComputeClusterModel.
func NewComputeClusterModel ¶
func NewComputeClusterModel(conn sqlx.SqlConn) ComputeClusterModel
NewComputeClusterModel returns a model for the database table.
type Dict ¶
type Dict struct { Id int64 `db:"id"` // id DictName string `db:"dict_name"` // 字典名称 DictCode string `db:"dict_code"` // 字典编号 DictValue string `db:"dict_value"` // 字典值 Source string `db:"source"` // 来源 Description sql.NullString `db:"description"` // 描述 CreatedBy sql.NullInt64 `db:"created_by"` // 创建人 CreatedTime sql.NullTime `db:"created_time"` // 创建时间 UpdatedBy sql.NullInt64 `db:"updated_by"` // 更新人 UpdatedTime sql.NullTime `db:"updated_time"` // 更新时间 DeletedFlag int64 `db:"deleted_flag"` // 是否删除(0-否,1-是) }
type DictModel ¶
type DictModel interface {
// contains filtered or unexported methods
}
DictModel is an interface to be customized, add more methods here, and implement the added methods in customDictModel.
type DomainResource ¶
type DomainResource struct { Id int64 `db:"id"` // id DomainId string `db:"domain_id"` // 资源域id DomainName string `db:"domain_name"` // 资源域名称 JobCount int64 `db:"job_count"` // 资源域任务数量 DomainSource int64 `db:"domain_source"` // 资源域数据来源:0-nudt,1-鹏城 Stack string `db:"stack"` // 技术栈 ResourceType string `db:"resource_type"` // 资源类型 Cpu string `db:"cpu"` // cpu Memory string `db:"memory"` // 内存 Disk string `db:"disk"` // 存储 NodeCount string `db:"node_count"` // 节点数量 CreateTime time.Time `db:"create_time"` // 数据创建时间 UpdateTime time.Time `db:"update_time"` // 数据更新时间 DeleteFlag int64 `db:"delete_flag"` // 是否删除 0:未删除,1:已经删除 Description string `db:"description"` //集群描述 ClusterName string `db:"cluster_name"` //集群名称 }
type DomainResourceModel ¶
type DomainResourceModel interface {
// contains filtered or unexported methods
}
DomainResourceModel is an interface to be customized, add more methods here, and implement the added methods in customDomainResourceModel.
type File ¶
type File struct { Id *int `gorm:"column:id" json:"Id"` //type:*int comment:id version:2023-05-06 09:58 Name string `gorm:"column:name" json:"Name"` //type:string comment:文件名称 version:2023-05-06 09:58 Kind string `gorm:"column:kind" json:"Kind"` DataType string `gorm:"column:data_type" json:"dataType"` //type:string comment: version:2023-05-06 09:58 Suffix string `gorm:"column:suffix" json:"Suffix"` //type:string comment:后缀名 version:2023-05-06 09:58 Bucket string `gorm:"column:bucket" json:"Bucket"` //type:string comment:桶 version:2023-05-06 09:58 Hash string `gorm:"column:hash" json:"Hash"` //type:string comment:hash version:2023-05-06 09:58 Status string `gorm:"column:status" json:"Status"` //type:string comment:hash version:2023-05-06 09:58 DeletedFlag *int `gorm:"column:deleted_flag" json:"DeletedFlag"` //type:*int comment:是否删除 version:2023-05-06 09:58 CreatedBy *int `gorm:"column:created_by" json:"CreatedBy"` //type:*int comment:创建人 version:2023-05-06 09:58 CreatedTime *time.Time `gorm:"column:created_time" json:"CreatedTime"` //type:*time.Time comment:创建时间 version:2023-05-06 09:58 UpdatedBy *int `gorm:"column:updated_by" json:"UpdatedBy"` //type:*int comment:更新人 version:2023-05-06 09:58 UpdatedTime *time.Time `gorm:"column:updated_time" json:"UpdatedTime"` //type:*time.Time comment:更新时间 version:2023-05-06 09:58 }
DataSet 。 说明: 表名:data_set group: DataSet obsolete: appliesto:go 1.8+; namespace:hongmouer.his.models.DataSet assembly: hongmouer.his.models.go class:HongMouer.HIS.Models.DataSet version:2023-05-06 09:58
type Hpc ¶
type Hpc struct { Id int64 `db:"id"` // id TaskId int64 `db:"task_id"` // 任务id JobId string `db:"job_id"` // 作业id ServiceName string `db:"service_name"` // 服务名称 Name string `db:"name"` // 名称 Status string `db:"status"` // 状态 StartTime string `db:"start_time"` // 开始时间 RunningTime int64 `db:"running_time"` // 运行时间 CardCount int64 `db:"card_count"` // 卡数 CreatedBy int64 `db:"created_by"` // 创建人 CreatedTime sql.NullTime `db:"created_time"` // 创建时间 UpdatedBy int64 `db:"updated_by"` // 更新人 UpdatedTime sql.NullTime `db:"updated_time"` // 更新时间 DeletedFlag int64 `db:"deleted_flag"` // 是否删除(0-否,1-是) WorkDir string `db:"work_dir"` WallTime string `db:"wall_time"` Result string `db:"result"` YamlString string `db:"yaml_string"` CmdScript string `db:"cmd_script"` // contains filtered or unexported fields }
type HpcCenter ¶
type HpcCenter struct { Id int64 `db:"id"` // 平台唯一id ClusterNum sql.NullInt64 `db:"cluster_num"` // 集群数量 NodeNum sql.NullInt64 `db:"node_num"` // 节点数量 CpuNum sql.NullInt64 `db:"cpu_num"` // CPU核数 GpuNum sql.NullInt64 `db:"gpu_num"` // GPU卡数 ManagedFlops sql.NullString `db:"managed_flops"` // 已接入算力 UnmanagedFlops sql.NullString `db:"unmanaged_flops"` // 未接入算力 ManagedStorage sql.NullString `db:"managed_storage"` // 已接入存储 UnmanagedStorage sql.NullString `db:"unmanaged_storage"` // 未接入存储 }
type HpcCenterModel ¶
type HpcCenterModel interface {
// contains filtered or unexported methods
}
HpcCenterModel is an interface to be customized, add more methods here, and implement the added methods in customHpcCenterModel.
type HpcModel ¶
type HpcModel interface {
// contains filtered or unexported methods
}
HpcModel is an interface to be customized, add more methods here, and implement the added methods in customHpcModel.
type RegionSlurm ¶
type RegionSlurmModel ¶
type RegionSlurmModel interface {
// contains filtered or unexported methods
}
RegionSlurmModel is an interface to be customized, add more methods here, and implement the added methods in customRegionSlurmModel.
func NewRegionSlurmModel ¶
func NewRegionSlurmModel(conn sqlx.SqlConn) RegionSlurmModel
NewRegionSlurmModel returns a model for the database table.
type ResourcePanelConfig ¶
type ResourcePanelConfig struct { Id int64 `db:"id"` Title string `db:"title"` // 标题 TitleColor string `db:"title_color"` // 标题色 MainColor string `db:"main_color"` // 主色调 MainColor2 string `db:"main_color2"` // 次主色调 TextColor string `db:"text_color"` // 文字颜色 BackgroundColor string `db:"background_color"` // 背景底色 Center string `db:"center"` // 中心点 CenterPosition string `db:"center_position"` // 中心点坐标 ProvinceBgColor string `db:"province_bg_color"` // 三级地图底色 StatusIng string `db:"status_ing"` // 接入中图标 StatusUn string `db:"status_un"` // 未接入图标 StatusEnd string `db:"status_end"` // 已接入图标 TitleIcon string `db:"title_icon"` // 标题底图 SubTitleIcon string `db:"sub_title_icon"` // 小标题底图 NumberBg string `db:"number_bg"` // 数字底图 TaskBg string `db:"task_bg"` // 任务底图 CreateTime time.Time `db:"create_time"` // 创建时间 UpdateTime time.Time `db:"update_time"` // 更新时间 }
type ResourcePanelConfigModel ¶
type ResourcePanelConfigModel interface {
// contains filtered or unexported methods
}
ResourcePanelConfigModel is an interface to be customized, add more methods here, and implement the added methods in customResourcePanelConfigModel.
type Task ¶
type Task struct { Id int64 `db:"id"` // id Name string `db:"name"` // 作业名称 Description string `db:"description"` // 作业描述 Status string `db:"status"` // 作业状态 Strategy int64 `db:"strategy"` // 策略 SynergyStatus int64 `db:"synergy_status"` // 协同状态(0-未协同、1-已协同) StartTime time.Time `db:"start_time"` // 开始运行时间 EndTime string `db:"end_time"` // 结束运行时间 RunningTime int64 `db:"running_time"` // 已运行时间(单位秒) YamlString string `db:"yaml_string"` Result string `db:"result"` // 作业结果 CreatedBy int64 `db:"created_by"` // 创建人 CreatedTime time.Time `db:"created_time"` // 创建时间 UpdatedBy int64 `db:"updated_by"` // 更新人 UpdatedTime time.Time `db:"updated_time"` // 更新时间 DeletedFlag int64 `db:"deleted_flag"` // 是否删除(0-否,1-是) ServiceName string `db:"service_name"` }
type TaskModel ¶
type TaskModel interface {
// contains filtered or unexported methods
}
TaskModel is an interface to be customized, add more methods here, and implement the added methods in customTaskModel.
Source Files ¶
- aiCenterModel.go
- aiCenterModel_gen.go
- aimodel.go
- aimodel_gen.go
- centerOverViewModel.go
- centerOverviewModel_gen.go
- centerTagModel.go
- centerTagModel_gen.go
- cloudCenterModel.go
- cloudCenterModel_gen.go
- cloudmodel.go
- cloudmodel_gen.go
- computeCenterModel.go
- computeCenterModel_gen.go
- computeclustermodel.go
- computeclustermodel_gen.go
- dictmodel.go
- dictmodel_gen.go
- domainresourcemodel.go
- domainresourcemodel_gen.go
- file.go
- hpcCenterModel.go
- hpcCenterModel_gen.go
- hpcmodel.go
- hpcmodel_gen.go
- regionslurmmodel.go
- regionslurmmodel_gen.go
- resourcepanelconfigmodel.go
- resourcepanelconfigmodel_gen.go
- taskmodel.go
- taskmodel_gen.go
- vars.go