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 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 ScNodeAvailInfo
- type ScNodePhyInfo
- type ScNodePhyInfoModel
- type ScParticipantAvailInfo
- type ScParticipantAvailInfoModel
- type ScParticipantLabelInfo
- type ScParticipantLabelInfoModel
- type ScParticipantPhyInfo
- type ScParticipantPhyInfoModel
- type ScQueuePhyInfo
- type ScQueuePhyInfoModel
- type ScTenantInfo
- type ScTenantInfoModel
- type StorelinkCenter
- type StorelinkCenterModel
- type THashcat
- 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 ParticipantId int64 `db:"participant_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-是) 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.
func NewAiCenterModel ¶
func NewAiCenterModel(conn sqlx.SqlConn, c cache.CacheConf) AiCenterModel
NewAiCenterModel returns a models for the database table.
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.
func NewCenterOverviewModel ¶
func NewCenterOverviewModel(conn sqlx.SqlConn, c cache.CacheConf) CenterOverviewModel
NewCenterOverviewModel returns a models for the database table.
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.
func NewCenterTagModel ¶
func NewCenterTagModel(conn sqlx.SqlConn, c cache.CacheConf) CenterTagModel
NewCenterTagModel returns a models for the database table.
type Cloud ¶
type Cloud struct { Id int64 `db:"id"` // id TaskId int64 `db:"task_id"` // 任务id ParticipantId int64 `db:"participant_id"` // 集群静态信息id ApiVersion string `db:"api_version"` //api版本 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"` // 运行时长 DeletedAt gorm.DeletedAt `gorm:"index"` YamlString string `db:"yaml_string"` Result string `db:"result"` // 运行结果 NsID string `db:"ns_id"` Replica int32 `db:"replica"` }
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.
func NewCloudCenterModel ¶
func NewCloudCenterModel(conn sqlx.SqlConn, c cache.CacheConf) CloudCenterModel
NewCloudCenterModel returns a models for the database table.
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.
func NewComputeCenterModel ¶
func NewComputeCenterModel(conn sqlx.SqlConn, c cache.CacheConf) ComputeCenterModel
NewComputeCenterModel returns a models for the database table.
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 models 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.
func NewDomainResourceModel ¶
func NewDomainResourceModel(conn sqlx.SqlConn, c cache.CacheConf, opts ...cache.Option) DomainResourceModel
NewDomainResourceModel returns a models for the database table.
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 ParticipantId int64 `db:"participant_id"` // 集群静态信息id JobId string `db:"job_id"` // 作业id Name string `db:"name"` // 名称 Status string `db:"status"` // 状态 StartTime string `db:"start_time"` // 开始时间 RunningTime int64 `db:"running_time"` // 运行时间 CardCount int64 `db:"card_count"` // 卡数 WorkDir string `db:"work_dir"` // 工作目录 WallTime string `db:"wall_time"` // 最大运行时长 Result string `db:"result"` // 运行结果 YamlString string `db:"yaml_string"` CmdScript string `db:"cmd_script"` //DerivedEs string `db:"derived_es"` //Cluster string `db:"cluster"` //BlockId string `db:"block_id"` //AllocNodes uint32 `db:"alloc_nodes"` //AllocCpu uint32 `db:"alloc_cpu"` //Version string `db:"version"` //Account string `db:"account"` //ExitCode uint32 `db:"exit_code"` //AssocId uint32 `db:"assoc_id"` AppType string `db:"app_type"` AppName string `db:"app_name"` Queue string `db:"queue"` SubmitType string `db:"submit_type"` NNode string `db:"n_node"` StdOutFile string `db:"std_out_file"` StdErrFile string `db:"std_err_file"` StdInput string `db:"std_input"` //Environment map[string]string `gorm:"type:json;column:environment"` Environment datatypes.JSON `gorm:"type:json"` }
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.
func NewHpcCenterModel ¶
func NewHpcCenterModel(conn sqlx.SqlConn, c cache.CacheConf) HpcCenterModel
NewHpcCenterModel returns a models for the database table.
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 models 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.
func NewResourcePanelConfigModel ¶
func NewResourcePanelConfigModel(conn sqlx.SqlConn, c cache.CacheConf, opts ...cache.Option) ResourcePanelConfigModel
NewResourcePanelConfigModel returns a models for the database table.
type ScNodeAvailInfo ¶
type ScNodeAvailInfo struct { Id int64 `db:"id"` // id NodeName string `db:"node_name"` // 节点名称 CpuTotal int64 `db:"cpu_total"` // cpu核数 CpuUsable float64 `db:"cpu_usable"` // cpu可用率 DiskTotal int64 `db:"disk_total"` // 磁盘空间 DiskAvail int64 `db:"disk_avail"` // 磁盘可用空间 MemTotal int64 `db:"mem_total"` // 内存总数 MemAvail int64 `db:"mem_avail"` // 内存可用数 GpuTotal int64 `db:"gpu_total"` // gpu总数 GpuAvail int64 `db:"gpu_avail"` // gpu可用数 ParticipantId int64 `db:"participant_id"` // 集群动态信息id DeletedFlag int64 `db:"deleted_flag"` // 是否删除 CreatedBy sql.NullInt64 `db:"created_by"` // 创建人 CreatedTime time.Time `db:"created_time"` // 创建时间 UpdatedBy sql.NullInt64 `db:"updated_by"` // 更新人 UpdatedTime sql.NullTime `db:"updated_time"` // 更新时间 }
type ScNodePhyInfo ¶
type ScNodePhyInfo struct { Id int64 `db:"id"` // id NodeName string `db:"node_name"` // 节点名称 OsName string `db:"os_name"` // 系统名称 OsVersion int64 `db:"os_version"` // 系统版本 ArchType string `db:"arch_type"` // 架构类型 ArchName string `db:"arch_name"` // 架构名称 ArchFreq string `db:"arch_freq"` // 架构频率 ParticipantId int64 `db:"participant_id"` // 集群静态信息id DeletedFlag int64 `db:"deleted_flag"` // 是否删除 CreatedBy sql.NullInt64 `db:"created_by"` // 创建人 CreatedTime time.Time `db:"created_time"` // 创建时间 UpdatedBy sql.NullInt64 `db:"updated_by"` // 更新人 UpdatedTime sql.NullTime `db:"updated_time"` // 更新时间 }
type ScNodePhyInfoModel ¶
type ScNodePhyInfoModel interface {
// contains filtered or unexported methods
}
ScNodePhyInfoModel is an interface to be customized, add more methods here, and implement the added methods in customScNodePhyInfoModel.
func NewScNodePhyInfoModel ¶
func NewScNodePhyInfoModel(conn sqlx.SqlConn, c cache.CacheConf, opts ...cache.Option) ScNodePhyInfoModel
NewScNodePhyInfoModel returns a models for the database table.
type ScParticipantAvailInfo ¶
type ScParticipantAvailInfo struct { Id int64 `db:"id"` // id AvailStorageSpace int64 `db:"avail_storage_space"` // 集群存储可用空间 UserNum int64 `db:"user_num"` // 用户数量 PendingJobNum int64 `db:"pending_job_num"` // 待处理作业数量 RunningJobNum int64 `db:"running_job_num"` // 运行作业数量 ParticipantId int64 `db:"participant_id"` // 集群静态信息id DeletedFlag int64 `db:"deleted_flag"` // 是否删除 CreatedBy sql.NullInt64 `db:"created_by"` // 创建人 CreatedTime time.Time `db:"created_time"` // 创建时间 UpdatedBy sql.NullInt64 `db:"updated_by"` // 更新人 UpdatedTime sql.NullTime `db:"updated_time"` // 更新时间 }
type ScParticipantAvailInfoModel ¶
type ScParticipantAvailInfoModel interface {
// contains filtered or unexported methods
}
ScParticipantAvailInfoModel is an interface to be customized, add more methods here, and implement the added methods in customScParticipantAvailInfoModel.
func NewScParticipantAvailInfoModel ¶
func NewScParticipantAvailInfoModel(conn sqlx.SqlConn, c cache.CacheConf, opts ...cache.Option) ScParticipantAvailInfoModel
NewScParticipantAvailInfoModel returns a models for the database table.
type ScParticipantLabelInfo ¶
type ScParticipantLabelInfo struct { Id int64 `db:"id"` // id Key string `db:"key"` // key Value string `db:"value"` // value ParticipantId int64 `db:"participant_id"` // participant id Metadata sql.NullString `db:"metadata"` // 元数据 DeletedFlag int64 `db:"deleted_flag"` // 是否删除 CreatedBy sql.NullInt64 `db:"created_by"` // 创建人 CreatedTime time.Time `db:"created_time"` // 创建时间 UpdatedBy sql.NullInt64 `db:"updated_by"` // 更新人 UpdatedTime sql.NullTime `db:"updated_time"` // 更新时间 }
type ScParticipantLabelInfoModel ¶
type ScParticipantLabelInfoModel interface {
// contains filtered or unexported methods
}
ScParticipantLabelInfoModel is an interface to be customized, add more methods here, and implement the added methods in customScParticipantLabelInfoModel.
func NewScParticipantLabelInfoModel ¶
func NewScParticipantLabelInfoModel(conn sqlx.SqlConn, c cache.CacheConf, opts ...cache.Option) ScParticipantLabelInfoModel
NewScParticipantLabelInfoModel returns a models for the database table.
type ScParticipantPhyInfo ¶
type ScParticipantPhyInfo struct { Id int64 `db:"id"` // id Name string `db:"name"` // 名称 Address string `db:"address"` // 集群p端地址 Token string `db:"token"` // 数算集群token MetricsUrl string `db:"metrics_url"` // 监控url RpcAddress string `db:"rpc_address"` // rpc服务链接地址 NetworkType string `db:"network_type"` // 集群网络类型 NetworkBandwidth string `db:"network_bandwidth"` // 集群网络带宽 StorageType string `db:"storage_type"` // 集群存储类型 StorageSpace string `db:"storage_space"` // 集群存储空间 StorageAvailSpace string `db:"storage_avail_space"` // 集群存储可用空间 StorageBandwidth string `db:"storage_bandwidth"` // 集群存储带宽 TenantId int64 `db:"tenant_id"` // 租户信息id Type string `db:"type"` // 类型:0-数算集群;1-智算集群;2-超算集群 DeletedFlag int64 `db:"deleted_flag"` // 是否删除 CreatedBy int64 `db:"created_by"` // 创建人 CreatedTime time.Time `db:"created_time"` // 创建时间 UpdatedBy int64 `db:"updated_by"` // 更新人 UpdatedTime time.Time `db:"updated_time"` // 更新时间 }
type ScParticipantPhyInfoModel ¶
type ScParticipantPhyInfoModel interface {
// contains filtered or unexported methods
}
ScParticipantPhyInfoModel is an interface to be customized, add more methods here, and implement the added methods in customScParticipantPhyInfoModel.
type ScQueuePhyInfo ¶
type ScQueuePhyInfo struct { Id int64 `db:"id"` // id AclHosts string `db:"aclHosts"` // 可用节点,多个节点用逗号隔开 QueueId string `db:"queue_id"` // 队列名称 Text string `db:"text"` // 队列名称 QueueName string `db:"queue_name"` // 队列名称 QueNodes string `db:"que_nodes"` // 队列节点总数 QueMinNodect string `db:"que_min_nodect"` // 队列最小节点数 QueMaxNgpus string `db:"que_max_ngpus"` // 队列最大GPU卡数 QueMaxPpn string `db:"que_max_ppn"` // 使用该队列作业最大CPU核心数 QueChargeRate string `db:"que_charge_rate"` // 费率 QueMaxNcpus string `db:"que_max_ncpus"` // 用户最大可用核心数 QueMaxNdcus string `db:"que_max_ndcus"` // 队列总DCU卡数 QueMinNcpus string `db:"que_min_ncpus"` // 队列最小CPU核数 QueFreeNodes string `db:"que_free_nodes"` // 队列空闲节点数 QueMaxNodect string `db:"que_max_nodect"` // 队列作业最大节点数 QueMaxGpuPN string `db:"que_max_gpu_PN"` // 队列单作业最大GPU卡数 QueMaxWalltime string `db:"que_max_walltime"` // 队列最大运行时间 QueMaxDcuPN string `db:"que_max_dcu_PN"` // 队列单作业最大DCU卡数 ParticipantId int64 `db:"participant_id"` // 集群动态信息id DeletedFlag int64 `db:"deleted_flag"` // 是否删除 QueNcpus string `db:"que_ncpus"` QueFreeNcpus string `db:"que_free_ncpus"` CreatedBy sql.NullInt64 `db:"created_by"` // 创建人 CreatedTime time.Time `db:"created_time"` // 创建时间 UpdatedBy sql.NullInt64 `db:"updated_by"` // 更新人 UpdatedTime sql.NullTime `db:"updated_time"` // 更新时间 }
type ScQueuePhyInfoModel ¶
type ScQueuePhyInfoModel interface {
// contains filtered or unexported methods
}
ScQueuePhyInfoModel is an interface to be customized, add more methods here, and implement the added methods in customScQueuePhyInfoModel.
func NewScQueuePhyInfoModel ¶
func NewScQueuePhyInfoModel(conn sqlx.SqlConn, c cache.CacheConf, opts ...cache.Option) ScQueuePhyInfoModel
NewScQueuePhyInfoModel returns a models for the database table.
type ScTenantInfo ¶
type ScTenantInfoModel ¶
type ScTenantInfoModel interface {
// contains filtered or unexported methods
}
ScTenantInfoModel is an interface to be customized, add more methods here, and implement the added methods in customScTenantInfoModel.
type StorelinkCenter ¶
type StorelinkCenter struct { Id int64 `db:"id"` // id Name string `db:"name"` // 名称 Address string `db:"address"` // 集群p端地址 RpcAddress string `db:"rpc_address"` // rpc服务链接地址 Type string `db:"type"` // 类型:1-章鱼;2-modelarts;3-曙光AI DeletedFlag int64 `db:"deleted_flag"` // 是否删除 CreatedBy sql.NullInt64 `db:"created_by"` // 创建人 CreatedTime time.Time `db:"created_time"` // 创建时间 UpdatedBy sql.NullInt64 `db:"updated_by"` // 更新人 UpdatedTime time.Time `db:"updated_time"` // 更新时间 }
type StorelinkCenterModel ¶
type StorelinkCenterModel interface {
// contains filtered or unexported methods
}
StorelinkCenterModel is an interface to be customized, add more methods here, and implement the added methods in customStorelinkCenterModel.
func NewStorelinkCenterModel ¶
func NewStorelinkCenterModel(conn sqlx.SqlConn, c cache.CacheConf, opts ...cache.Option) StorelinkCenterModel
NewStorelinkCenterModel returns a model for the database table.
type THashcat ¶
type THashcat struct { Id int64 `db:"id"` // id CrackTaskId string `db:"crack_task_id"` // 任务id CrackContainerId string `db:"container_id"` // 任务id CrackStatus string `db:"crack_status"` // 状态 CrackStartTime string `db:"crack_start_time"` //开始时间 CrackEstimatedTime string `db:"crack_estimated_time"` // 预计时间 CrackProgress string `db:"crack_progress"` // 进度 CrackResult string `db:"crack_result"` // 结果 Started string `db:"started"` // 开始时间 Stopped string `db:"stopped"` // 结束时间 CreatedBy int64 `db:"created_by"` // 创建人 UpdatedBy int64 `db:"updated_by"` // 更新人 DeletedFlag int64 `db:"deleted_flag"` // 是否删除(0-否,1-是) KernelFeature string `db:"kernel_feature"` HashMode string `db:"hash_mode"` Rejected string `db:"rejected"` Session string `db:"session"` HashTarget string `db:"hash_target"` Speed string `db:"speed"` Candidates string `db:"candidates"` RestorePoint string `db:"restore_point"` Recovered string `db:"recovered"` GuessQueue string `db:"guess_queue"` CandidateEngine string `db:"candidate_engine"` GuessMask string `db:"guess_mask"` RestoreSub string `db:"restore_sub"` }
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-已协同) CommitTime time.Time `db:"commit_time"` // 提交时间 StartTime string `db:"start_time"` // 开始时间 EndTime string `db:"end_time"` // 结束运行时间 RunningTime int64 `db:"running_time"` // 已运行时间(单位秒) YamlString string `db:"yaml_string"` Result string `db:"result"` // 作业结果 DeletedAt gorm.DeletedAt `gorm:"index"` NsID string `db:"ns_id"` }
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_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
- scnodeavailinfomodel_gen.go
- scnodephyinfomodel.go
- scnodephyinfomodel_gen.go
- scparticipantavailinfomodel.go
- scparticipantavailinfomodel_gen.go
- scparticipantlabelinfomodel.go
- scparticipantlabelinfomodel_gen.go
- scparticipantphyinfomodel.go
- scparticipantphyinfomodel_gen.go
- scqueuephyinfomodel.go
- scqueuephyinfomodel_gen.go
- sctenantinfomodel.go
- sctenantinfomodel_gen.go
- storelinkcentermodel.go
- storelinkcentermodel_gen.go
- taskmodel.go
- taskmodel_gen.go
- thashcat.go
- vars.go