@@ -37,15 +37,23 @@ type PageableDevOpsProject struct {
|
||||
}
|
||||
|
||||
type DevOpsProject struct {
|
||||
ProjectId string `json:"project_id" db:"project_id"`
|
||||
Name string `json:"name"`
|
||||
Description string `json:"description,omitempty"`
|
||||
Creator string `json:"creator"`
|
||||
CreateTime time.Time `json:"create_time"`
|
||||
Status string `json:"status"`
|
||||
Visibility string `json:"visibility,omitempty"`
|
||||
Extra string `json:"extra,omitempty"`
|
||||
Workspace string `json:"workspace"`
|
||||
ProjectId string `json:"project_id" db:"project_id" description:"ProjectId must be unique within a namespace, it is generated by kubesphere."`
|
||||
|
||||
Name string `json:"name" description:"DevOps Projects's Name'"`
|
||||
|
||||
Description string `json:"description,omitempty" description:"DevOps Projets's Description, used to describe the DevOps Project'"`
|
||||
|
||||
Creator string `json:"creator" description:"Creator's username'"`
|
||||
|
||||
CreateTime time.Time `json:"create_time" description:"DevOps Project's Creation time'"`
|
||||
|
||||
Status string `json:"status" description:"DevOps project's status"`
|
||||
|
||||
Visibility string `json:"visibility,omitempty" description:"Desperated Field"`
|
||||
|
||||
Extra string `json:"extra,omitempty" description:"Internal Use"`
|
||||
|
||||
Workspace string `json:"workspace" description:"The workspace to which the devops project belongs"`
|
||||
}
|
||||
|
||||
func NewDevOpsProject(name, description, creator, extra, workspace string) *DevOpsProject {
|
||||
|
||||
Reference in New Issue
Block a user