Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseModel ¶
type BaseModel struct {
ID int64 `json:"id" gorm:"primary_key"`
CreatedAt time.Time `json:"createdAt" gorm:"created_at"`
UpdatedAt time.Time `json:"updatedAt" gorm:"updated_at"`
}
BaseModel contains base fields for all models
type ErdaProject ¶
type ErdaProject struct {
BaseModel
Name string
DisplayName string
Logo string
Desc string
// Cluster configuration eg: {"DEV":"terminus-y","TEST":"terminus-y","STAGING":"terminus-y","PROD":"terminus-y"}
ClusterConfig string
CpuQuota float64
MemQuota float64
Creator string
OrgID int64
Version string
// DingTalk Hook
DDHook string `gorm:"column:dd_hook"`
Email string
Functions string
ActiveTime time.Time
// Rollback configuration: {"DEV": 1,"TEST": 2,"STAGING": 3,"PROD": 4}
RollbackConfig string
// Whether to open the project-level namespace
EnableNS bool `gorm:"column:enable_ns"`
// Is it a public project
IsPublic bool
// project type
Type string
SoftDeletedAt uint
}
ErdaProject is the model erda_project
func (ErdaProject) TableName ¶
func (ErdaProject) TableName() string
Click to show internal directories.
Click to hide internal directories.