Documentation ¶
Index ¶
- func All() []migration.Script
- type Blueprint0903Temp
- type Blueprint20220616
- type BlueprintOldVersion
- type BoardRepo0913
- type CICDPipeline
- type CICDPipeline0829
- type CICDPipeline0905
- type CICDPipelineRelationship0905
- type CICDPipelineRepo
- type CICDPipelineRepo0905
- type CICDTask
- type CICDTask0905
- type CiCDPipelineRepo0915
- type CiCDPipelineRepoOld
- type CommitFile
- type CommitFileAddLength
- type CommitFileAddLengthBak
- type CommitFileComponent
- type CommitFileComponentBak
- type CommitLineChange
- type Component
- type Issue0829
- type Pipeline0904Temp
- type PipelineOldVersion
- type PullRequest0829
- type PullRequest0913
- type Subtask20220711
- type Task20220601
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Blueprint0903Temp ¶ added in v0.14.0
type Blueprint0903Temp struct { Name string `json:"name" validate:"required"` Mode string `json:"mode" gorm:"varchar(20)" validate:"required,oneof=NORMAL ADVANCED"` Enable bool `json:"enable"` //please check this https://crontab.guru/ for detail CronConfig string `json:"cronConfig" format:"* * * * *" example:"0 0 * * 1"` IsManual bool `json:"isManual"` archived.Model `swaggerignore:"true"` Plan string `json:"plan"` Settings string `json:"settings"` }
func (Blueprint0903Temp) TableName ¶ added in v0.14.0
func (Blueprint0903Temp) TableName() string
type Blueprint20220616 ¶ added in v0.12.0
type Blueprint20220616 struct { Mode string `json:"mode" gorm:"varchar(20)" validate:"required,oneof=NORMAL ADVANCED"` IsManual bool `json:"isManual"` }
func (Blueprint20220616) TableName ¶ added in v0.12.0
func (Blueprint20220616) TableName() string
type BlueprintOldVersion ¶ added in v0.14.0
type BlueprintOldVersion struct { Name string `json:"name" validate:"required"` Mode string `json:"mode" gorm:"varchar(20)" validate:"required,oneof=NORMAL ADVANCED"` Plan json.RawMessage `json:"plan"` Enable bool `json:"enable"` //please check this https://crontab.guru/ for detail CronConfig string `json:"cronConfig" format:"* * * * *" example:"0 0 * * 1"` IsManual bool `json:"isManual"` Settings json.RawMessage `json:"settings" swaggertype:"array,string" example:"please check api: /blueprints/<PLUGIN_NAME>/blueprint-setting"` archived.Model `swaggerignore:"true"` }
func (BlueprintOldVersion) TableName ¶ added in v0.14.0
func (BlueprintOldVersion) TableName() string
type BoardRepo0913 ¶ added in v0.14.0
func (BoardRepo0913) TableName ¶ added in v0.14.0
func (BoardRepo0913) TableName() string
type CICDPipeline ¶ added in v0.13.0
type CICDPipeline struct { archived.DomainEntity Name string `gorm:"type:varchar(255)"` CommitSha string `gorm:"type:varchar(255);index"` Branch string `gorm:"type:varchar(255);index"` Repo string `gorm:"type:varchar(255);index"` Result string `gorm:"type:varchar(100)"` Status string `gorm:"type:varchar(100)"` Type string `gorm:"type:varchar(100);comment: to indicate this is CI or CD"` DurationSec uint64 CreatedDate time.Time FinishedDate *time.Time }
func (CICDPipeline) TableName ¶ added in v0.13.0
func (CICDPipeline) TableName() string
type CICDPipeline0829 ¶ added in v0.14.0
type CICDPipeline0829 struct {
Environment string `gorm:"type:varchar(255)"`
}
func (CICDPipeline0829) TableName ¶ added in v0.14.0
func (CICDPipeline0829) TableName() string
type CICDPipeline0905 ¶ added in v0.14.0
type CICDPipeline0905 struct { CommitSha string `gorm:"type:varchar(255);index"` Branch string `gorm:"type:varchar(255);index"` Repo string `gorm:"type:varchar(255);index"` }
func (CICDPipeline0905) TableName ¶ added in v0.14.0
func (CICDPipeline0905) TableName() string
type CICDPipelineRelationship0905 ¶ added in v0.14.0
type CICDPipelineRelationship0905 struct { ParentPipelineId string `gorm:"primaryKey;type:varchar(255)"` ChildPipelineId string `gorm:"primaryKey;type:varchar(255)"` archived.NoPKModel }
func (CICDPipelineRelationship0905) TableName ¶ added in v0.14.0
func (CICDPipelineRelationship0905) TableName() string
type CICDPipelineRepo ¶ added in v0.13.0
type CICDPipelineRepo struct { archived.DomainEntity CommitSha string `gorm:"primaryKey;type:varchar(255)"` Branch string `gorm:"type:varchar(255)"` RepoUrl string `gorm:"type:varchar(255)"` }
func (CICDPipelineRepo) TableName ¶ added in v0.13.0
func (CICDPipelineRepo) TableName() string
type CICDPipelineRepo0905 ¶ added in v0.14.0
type CICDPipelineRepo0905 struct {
RepoUrl string `gorm:"type:varchar(255)"`
}
func (CICDPipelineRepo0905) TableName ¶ added in v0.14.0
func (CICDPipelineRepo0905) TableName() string
type CICDTask ¶ added in v0.13.0
type CICDTask struct { archived.DomainEntity Name string `gorm:"type:varchar(255)"` PipelineId string `gorm:"index;type:varchar(255)"` Result string `gorm:"type:varchar(100)"` Status string `gorm:"type:varchar(100)"` Type string `gorm:"type:varchar(100);comment: to indicate this is CI or CD"` DurationSec uint64 StartedDate time.Time FinishedDate *time.Time }
type CICDTask0905 ¶ added in v0.14.0
type CICDTask0905 struct {
Environment string `gorm:"type:varchar(255)"`
}
func (CICDTask0905) TableName ¶ added in v0.14.0
func (CICDTask0905) TableName() string
type CiCDPipelineRepo0915 ¶ added in v0.14.0
type CiCDPipelineRepo0915 struct { archived.NoPKModel PipelineId string `gorm:"primaryKey;type:varchar(255)"` CommitSha string `gorm:"primaryKey;type:varchar(255)"` Branch string `gorm:"type:varchar(255)"` RepoId string `gorm:"index;type:varchar(255)"` RepoUrl string }
func (CiCDPipelineRepo0915) TableName ¶ added in v0.14.0
func (CiCDPipelineRepo0915) TableName() string
type CiCDPipelineRepoOld ¶ added in v0.14.0
type CiCDPipelineRepoOld struct { archived.DomainEntity CommitSha string `gorm:"primaryKey;type:varchar(255)"` Branch string `gorm:"type:varchar(255)"` Repo string `gorm:"type:varchar(255)"` }
func (CiCDPipelineRepoOld) TableName ¶ added in v0.14.0
func (CiCDPipelineRepoOld) TableName() string
type CommitFile ¶ added in v0.12.0
type CommitFile struct { archived.DomainEntity CommitSha string `gorm:"type:varchar(40)"` FilePath string `gorm:"type:varchar(255)"` Additions int Deletions int }
func (CommitFile) TableName ¶ added in v0.12.0
func (CommitFile) TableName() string
type CommitFileAddLength ¶ added in v0.14.0
type CommitFileAddLength struct { archived.DomainEntity CommitSha string `gorm:"type:varchar(40)"` FilePath string `gorm:"type:text"` Additions int Deletions int }
func (CommitFileAddLength) TableName ¶ added in v0.14.0
func (CommitFileAddLength) TableName() string
type CommitFileAddLengthBak ¶ added in v0.14.0
type CommitFileAddLengthBak struct { archived.DomainEntity CommitSha string `gorm:"type:varchar(40)"` FilePath string `gorm:"type:varchar(255)"` Additions int Deletions int }
func (CommitFileAddLengthBak) TableName ¶ added in v0.14.0
func (CommitFileAddLengthBak) TableName() string
type CommitFileComponent ¶ added in v0.12.0
type CommitFileComponent struct { archived.NoPKModel CommitFileId string `gorm:"primaryKey;type:varchar(255)"` ComponentName string `gorm:"type:varchar(255)"` }
func (CommitFileComponent) TableName ¶ added in v0.12.0
func (CommitFileComponent) TableName() string
type CommitFileComponentBak ¶ added in v0.14.0
type CommitFileComponentBak struct { archived.NoPKModel CommitFileId string `gorm:"primaryKey;type:varchar(255)"` ComponentName string `gorm:"type:varchar(255)"` }
func (CommitFileComponentBak) TableName ¶ added in v0.14.0
func (CommitFileComponentBak) TableName() string
type CommitLineChange ¶ added in v0.14.0
type CommitLineChange struct { domainlayer.DomainEntity Id string `gorm:"type:varchar(255);primaryKey"` CommitSha string `gorm:"type:varchar(40);"` NewFilePath string `gorm:"type:varchar(255);"` LineNoNew int `gorm:"type:int"` LineNoOld int `gorm:"type:int"` OldFilePath string `gorm:"type:varchar(255)"` HunkNum int `gorm:"type:int"` ChangedType string `gorm:"type:varchar(255)"` PrevCommit string `gorm:"type:varchar(255)"` }
func (CommitLineChange) TableName ¶ added in v0.14.0
func (CommitLineChange) TableName() string
type Component ¶ added in v0.12.0
type Issue0829 ¶ added in v0.14.0
type Issue0829 struct {
DeploymentId string `gorm:"type:varchar(255)"`
}
type Pipeline0904Temp ¶ added in v0.14.0
type Pipeline0904Temp struct { common.Model Name string `json:"name" gorm:"index"` BlueprintId uint64 `json:"blueprintId"` Plan string `json:"plan" encrypt:"yes"` TotalTasks int `json:"totalTasks"` FinishedTasks int `json:"finishedTasks"` BeganAt *time.Time `json:"beganAt"` FinishedAt *time.Time `json:"finishedAt" gorm:"index"` Status string `json:"status"` Message string `json:"message"` SpentSeconds int `json:"spentSeconds"` Stage int `json:"stage"` }
func (Pipeline0904Temp) TableName ¶ added in v0.14.0
func (Pipeline0904Temp) TableName() string
type PipelineOldVersion ¶ added in v0.14.0
type PipelineOldVersion struct { archived.Model Name string `json:"name" gorm:"index"` BlueprintId uint64 `json:"blueprintId"` Plan datatypes.JSON `json:"plan"` TotalTasks int `json:"totalTasks"` FinishedTasks int `json:"finishedTasks"` BeganAt *time.Time `json:"beganAt"` FinishedAt *time.Time `json:"finishedAt" gorm:"index"` Status string `json:"status"` Message string `json:"message"` SpentSeconds int `json:"spentSeconds"` Stage int `json:"stage"` }
func (PipelineOldVersion) TableName ¶ added in v0.14.0
func (PipelineOldVersion) TableName() string
type PullRequest0829 ¶ added in v0.14.0
type PullRequest0829 struct { CodingTimespan int64 ReviewLag int64 ReviewTimespan int64 DeployTimespan int64 ChangeTimespan int64 }
func (PullRequest0829) TableName ¶ added in v0.14.0
func (PullRequest0829) TableName() string
type PullRequest0913 ¶ added in v0.14.0
type PullRequest0913 struct { OrigCodingTimespan int64 OrigReviewLag int64 OrigReviewTimespan int64 OrigDeployTimespan int64 }
func (PullRequest0913) TableName ¶ added in v0.14.0
func (PullRequest0913) TableName() string
type Subtask20220711 ¶ added in v0.13.0
type Subtask20220711 struct { commonArchived.Model TaskID uint64 `json:"task_id" gorm:"index"` SubtaskName string `json:"name" gorm:"column:name;index"` Number int `json:"number"` BeganAt *time.Time `json:"beganAt"` FinishedAt *time.Time `json:"finishedAt" gorm:"index"` SpentSeconds int64 `json:"spentSeconds"` }
Subtask20220711 DB snapshot model of models.Subtask
func (Subtask20220711) TableName ¶ added in v0.13.0
func (s Subtask20220711) TableName() string
type Task20220601 ¶ added in v0.12.0
type Task20220601 struct { archived.Model Plugin string `json:"plugin" gorm:"index"` Subtasks datatypes.JSON `json:"subtasks"` Options datatypes.JSON `json:"options"` Status string `json:"status"` Message string `json:"message"` Progress float32 `json:"progress"` FailedSubTask string `json:"failedSubTask"` PipelineId uint64 `json:"pipelineId" gorm:"index"` PipelineRow int `json:"pipelineRow"` PipelineCol int `json:"pipelineCol"` BeganAt *time.Time `json:"beganAt"` FinishedAt *time.Time `json:"finishedAt" gorm:"index"` SpentSeconds int `json:"spentSeconds"` }
func (Task20220601) TableName ¶ added in v0.12.0
func (Task20220601) TableName() string
Source Files ¶
- 20220406_add_frame_tables.go
- 20220505_rename_step_to_stage.go
- 20220601_add_subtasks_field.go
- 20220616_update_blueprint_mode.go
- 20220622_rename_tasks_to_plan.go
- 20220707_add_domain_tables.go
- 20220711_add_subtasks_table.go
- 20220722_commitfile_component.go
- 20220725_add_project_mapping_table.go
- 20220727_remove_notes.go
- 20220729_rename_columns_of_pull_request_issues.go
- 20220801_add_NoPKModel_to_CommitParent.go
- 20220818_add_cicd.go
- 20220826_rename_columns_of_pr_comment_issue_comment.go
- 20220829_modify_tables_for_dora.go
- 20220830_add_type_field_in_board.go
- 20220903_encrypt_blueprint.go
- 20220904_encrypt_pipeline.go
- 20220905_modfiy_cicd_pipeline.go
- 20220908_modfiy_cicd_tasks.go
- 20220913_add_origin_value_for_pr.go
- 20220913_commitfile_add_length.go
- 20220913_modfiy_board_repos.go
- 20220915_rename_pipeline_commits.go
- 20220918_commit_line_change.go
- 20220929_modify_lead_time_minutes.go
- register.go
Click to show internal directories.
Click to hide internal directories.