model

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2023 License: Apache-2.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = sqlx.ErrNotFound

Functions

func TableName

func TableName() string

TableName 表名:data_set,。 说明:

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.

func NewAiCenterModel

func NewAiCenterModel(conn sqlx.SqlConn, c cache.CacheConf) AiCenterModel

NewAiCenterModel returns a model 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.

func NewAiModel

func NewAiModel(conn sqlx.SqlConn, c cache.CacheConf) AiModel

NewAiModel returns a model for the database table.

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 model for the database table.

type CenterTag

type CenterTag struct {
	Id   int64         `db:"id"`   // 平台唯一id
	Ydyl sql.NullInt64 `db:"ydyl"` // 一带一路标识
	Edwc sql.NullInt64 `db:"edwc"` // 东数西算标识
}

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 model for the database table.

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.

func NewCloudCenterModel

func NewCloudCenterModel(conn sqlx.SqlConn, c cache.CacheConf) CloudCenterModel

NewCloudCenterModel returns a model for the database table.

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.

func NewCloudModel

func NewCloudModel(conn sqlx.SqlConn, c cache.CacheConf) CloudModel

NewCloudModel returns a model 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 model 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 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.

func NewDictModel

func NewDictModel(conn sqlx.SqlConn, c cache.CacheConf) DictModel

NewDictModel returns a model for the database table.

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 model 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
	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.

func NewHpcCenterModel

func NewHpcCenterModel(conn sqlx.SqlConn, c cache.CacheConf) HpcCenterModel

NewHpcCenterModel returns a model 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.

func NewHpcModel

func NewHpcModel(conn sqlx.SqlConn, c cache.CacheConf) HpcModel

NewHpcModel returns a model for the database table.

type RegionSlurm

type RegionSlurm struct {
	Id                  int64  `db:"id"`
	RegionName          string `db:"RegionName"`          // 域名
	SoftStack           string `db:"SoftStack"`           // 软件栈
	SlurmNum            int64  `db:"SlurmNum"`            // 超算域适配slurm数量
	AdaptorInterfaceSum int64  `db:"AdaptorInterfaceSum"` // 适配接口数量
}

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.

func NewResourcePanelConfigModel

func NewResourcePanelConfigModel(conn sqlx.SqlConn, c cache.CacheConf, opts ...cache.Option) ResourcePanelConfigModel

NewResourcePanelConfigModel returns a model for the database table.

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.

func NewTaskModel

func NewTaskModel(conn sqlx.SqlConn, c cache.CacheConf) TaskModel

NewTaskModel returns a model for the database table.

Jump to

Keyboard shortcuts

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