Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Application ¶
type Application struct { gorm.Model CreatedBy string `json:"created_by"` UpdatedBy string `json:"updated_by"` Deleted uint `json:"deteled"` State uint `json:"state" gorm:"default:1"` Name string `json:"name"` CnName string `json:"cn_name"` Description string `json:"description"` Harbor string `json:"harbor"` UserID uint `json:"user_id"` ProjectID uint `json:"project_id"` User User `gorm:"save_associations:false"` Project Project `gorm:"save_associations:false"` }
Application 应用结构体
func (*Application) BeforeCreate ¶
func (application *Application) BeforeCreate(scope *gorm.Scope) error
BeforeCreate CreatedAt赋值
func (*Application) BeforeUpdate ¶
func (application *Application) BeforeUpdate(scope *gorm.Scope) error
BeforeUpdate UpdatedAt赋值
type Deploy ¶
type Deploy struct { gorm.Model CreatedBy string `json:"created_by"` UpdatedBy string `json:"updated_by"` Deleted uint `json:"deteled"` State uint `json:"state" gorm:"default:1"` Name string `json:"name"` Version string `json:"version"` Reason string `json:"reason"` Harbor string `json:"harbor"` Yaml string `json:"yaml" gorm:"type:text"` Step uint `json:"step"` Result string `json:"result"` Log string `json:"log" gorm:"type:text"` EnvironmentID uint `json:"environment_id"` K8sID uint `json:"k8s_id"` UserID uint `json:"user_id"` ProjectID uint `json:"project_id"` ApplicationID uint `json:"application_id"` User User `gorm:"save_associations:false"` Project Project `gorm:"save_associations:false"` Application Application `gorm:"save_associations:false"` K8s K8s `gorm:"save_associations:false"` Environment Environment `gorm:"save_associations:false"` }
Deploy 发布单结构体
func (*Deploy) BeforeCreate ¶
BeforeCreate CreatedAt赋值
type Environment ¶
type Environment struct { gorm.Model CreatedBy string `json:"created_by"` UpdatedBy string `json:"updated_by"` Deleted uint `json:"deteled"` State uint `json:"state"` Name string `json:"name"` Description string `json:"description"` }
Environment 环境列表
func (*Environment) BeforeCreate ¶
func (environment *Environment) BeforeCreate(scope *gorm.Scope) error
BeforeCreate CreatedAt赋值
func (*Environment) BeforeUpdate ¶
func (environment *Environment) BeforeUpdate(scope *gorm.Scope) error
BeforeUpdate UpdateAt赋值
type K8s ¶
type K8s struct { gorm.Model CreatedBy string `json:"created_by"` UpdatedBy string `json:"updated_by"` Deleted uint `json:"deteled"` State uint `json:"state"` Name string `json:"name"` EnvironmentID uint `json:"environment_id"` Conf string `json:"conf" gorm:"type:text"` Terminal string `json:"terminal"` UserID uint `json:"user_id"` Environment Environment `gorm:"save_associations:false"` User User `gorm:"save_associations:false"` }
K8s K8s集群结构体
func (*K8s) BeforeCreate ¶
BeforeCreate CreatedAt赋值
type Pod ¶
type Pod struct { gorm.Model CreatedBy string `json:"created_by"` UpdatedBy string `json:"updated_by"` Deleted uint `json:"deteled"` State uint `json:"state"` PodName string `json:"podname"` NameSpace string `json:"namespace"` Container string `json:"container"` Image string `json:"image"` Version string `json:"version"` EnvironmentID uint `json:"environment_id"` K8sID uint `json:"k8s_id"` UserID uint `json:"user_id"` ApplicationID uint `json:"application_id"` User User `gorm:"save_associations:false"` Application Application `gorm:"save_associations:false"` Environment Environment `gorm:"save_associations:false"` K8s K8s `gorm:"save_associations:false"` }
Pod Pod在线列表
func (*Pod) BeforeCreate ¶
BeforeCreate CreatedAt赋值
type Project ¶
type Project struct { gorm.Model CreatedBy string `json:"created_by"` UpdatedBy string `json:"updated_by"` Deleted uint `json:"deteled"` State uint `json:"state"` Name string `json:"name"` CnName string `json:"cn_name"` Description string `json:"description"` UserID uint `json:"user_id"` }
Project 项目结构体
func (*Project) BeforeCreate ¶
BeforeCreate CreatedOn赋值
type Release ¶
type Release struct { gorm.Model CreatedBy string `json:"created_by"` UpdatedBy string `json:"updated_by"` Deleted uint `json:"deteled"` State uint `json:"state" gorm:"default:1"` Name string `json:"name"` Description string `json:"description"` Branch string `json:"branch"` Yaml string `json:"yaml" gorm:"type:text"` UserID uint `json:"user_id"` ProjectID uint `json:"project_id"` User User `gorm:"save_associations:false"` Project Project `gorm:"save_associations:false"` }
Release 版本单结构体
func (*Release) BeforeCreate ¶
BeforeCreate CreatedAt赋值
type User ¶
type User struct { gorm.Model CreatedBy string `json:"created_by"` UpdatedBy string `json:"updated_by"` Deleted uint `json:"deteled"` State uint `json:"state" gorm:"default:1"` Username string `json:"username"` Password string `json:"password"` UserType uint `json:"user_type"` Application *[]Application }
User 用户授权信息
func (*User) BeforeCreate ¶
BeforeCreate CreatedAt赋值
type Yaml ¶
type Yaml struct { gorm.Model CreatedBy string `json:"created_by"` UpdatedBy string `json:"updated_by"` Deleted uint `json:"deteled"` State uint `json:"state"` Name string `json:"name"` Description string `json:"description"` Yaml string `json:"yaml" gorm:"type:text"` K8sID uint `json:"k8s_id"` ApplicationID uint `json:"application_id"` UserID uint `json:"user_id"` K8s K8s `gorm:"save_associations:false"` Application Application `gorm:"save_associations:false"` User User `gorm:"save_associations:false"` }
Yaml Yaml结构体
func (*Yaml) BeforeCreate ¶
BeforeCreate CreatedAt赋值
Click to show internal directories.
Click to hide internal directories.