DKube v1.0

This commit is contained in:
DingQz
2022-10-12 10:34:43 +08:00
parent 7f9aae166e
commit 10abbb0fb3
46 changed files with 3154 additions and 153 deletions

22
model/workflow.go Normal file
View File

@ -0,0 +1,22 @@
package model
import "time"
type Workflow struct {
ID uint `json:"id" gorm:"primaryKey"`
CreatedAt *time.Time `json:"created_at"`
UpdatedAt *time.Time `json:"updated_at"`
DeletedAt *time.Time `json:"deleted_at"`
Name string `json:"name"`
Namespace string `json:"namespace"`
Replicas int32 `json:"replicas"`
Deployment string `json:"deployment"`
Service string `json:"service"`
Ingress string `json:"ingress"`
Type string `json:"type" gorm:"column:type"`
}
func (*Workflow) TableName() string {
return "workflow"
}