Documentation ¶
Index ¶
- type CirculationRsp
- type CreateOperationLogReq
- type PublishAddApps
- type PublishInfoApp
- type PublishInfoResp
- type PublishManager
- func (pm *PublishManager) AddPublishApps(publishID int64, req *PublishAddApps) error
- func (pm *PublishManager) ClosePublish(publishID int64) error
- func (pm *PublishManager) CreatePublish(user string, projectID int64, p *PublishReq) error
- func (pm *PublishManager) DeletePublish(publishID int64) error
- func (pm *PublishManager) DeletePublishApp(publishAppID int64) error
- func (pm *PublishManager) GetBackTo(projectID, publishID, stageID int64) ([]*CirculationRsp, error)
- func (pm *PublishManager) GetCanAddedApps(publishID int64) ([]*models.ProjectApp, error)
- func (pm *PublishManager) GetNextStage(projectID, publishID, envID int64) ([]*CirculationRsp, error)
- func (pm *PublishManager) GetPublishInfo(publishID int64) (*PublishInfoResp, error)
- func (pm *PublishManager) GetPublishOperationLog(publishID int64, filter *query.FilterQuery) (*query.QueryResult, error)
- func (pm *PublishManager) PublishList(projectID int64, filter *models.ProejctReleaseFilterQuery) (*query.QueryResult, error)
- func (pm *PublishManager) TriggerBackTo(projectID, publishID, stageID int64, req *TriggerBackToReq, currentUser string) error
- func (pm *PublishManager) TriggerNextStage(projectID, publishID, envID int64, req *TriggerBackToReq, currentUser string) error
- func (pm *PublishManager) UpdatePublish(publishID, stageID, status, runID int64, creator, message, jobName string) error
- func (pm *PublishManager) UpdatePublishBaseInfo(publishID int64, req *PublishUpdate) error
- type PublishReq
- type PublishReqFilterQuery
- type PublishStep
- type PublishUpdate
- type PubllishReqApp
- type TriggerBackToReq
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CirculationRsp ¶
CirculationRsp back-to/next-stage
type CreateOperationLogReq ¶
type CreateOperationLogReq struct { Creator string `json:"creator"` StageName string `json:"stage_name"` StepName string `json:"step_name"` Message string `json:"message"` JobName string `json:"job_name"` Type string `json:"type"` PipelineInstanceID int64 `json:"pipeline_instance_id"` StageInstanceID int64 `json:"stage_instance_id"` StepIndex int `json:"step_index"` PublishID int64 `json:"publish_id"` StageID int64 `json:"stage_id"` Status int64 `json:"status"` RunID int64 `json:"run_id"` }
CreateOperationLogReq ..
type PublishAddApps ¶
type PublishAddApps struct {
Apps []*PubllishReqApp `json:"apps"`
}
PublishAddApps ..
type PublishInfoApp ¶
type PublishInfoApp struct { *models.PublishApp Name string `json:"name"` Language string `json:"language"` Type string `json:"type"` }
PublishInfoApp ..
type PublishInfoResp ¶
type PublishInfoResp struct { *models.Publish PipelineName string `json:"pipeline_name"` Apps []*PublishInfoApp `json:"apps"` Operations *models.PublishOperation `json:"operations"` Steps []*PublishStep `json:"steps"` }
PublishInfoResp ...
type PublishManager ¶
type PublishManager struct {
// contains filtered or unexported fields
}
PublishManager ...
func (*PublishManager) AddPublishApps ¶
func (pm *PublishManager) AddPublishApps(publishID int64, req *PublishAddApps) error
AddPublishApps ..
func (*PublishManager) ClosePublish ¶
func (pm *PublishManager) ClosePublish(publishID int64) error
ClosePublish ..
func (*PublishManager) CreatePublish ¶
func (pm *PublishManager) CreatePublish(user string, projectID int64, p *PublishReq) error
CreatePublish ...
func (*PublishManager) DeletePublish ¶
func (pm *PublishManager) DeletePublish(publishID int64) error
DeletePublish ...
func (*PublishManager) DeletePublishApp ¶
func (pm *PublishManager) DeletePublishApp(publishAppID int64) error
DeletePublishApp ..
func (*PublishManager) GetBackTo ¶
func (pm *PublishManager) GetBackTo(projectID, publishID, stageID int64) ([]*CirculationRsp, error)
GetBackTo ...
func (*PublishManager) GetCanAddedApps ¶
func (pm *PublishManager) GetCanAddedApps(publishID int64) ([]*models.ProjectApp, error)
GetCanAddedApps ...
func (*PublishManager) GetNextStage ¶
func (pm *PublishManager) GetNextStage(projectID, publishID, envID int64) ([]*CirculationRsp, error)
GetNextStage ...
func (*PublishManager) GetPublishInfo ¶
func (pm *PublishManager) GetPublishInfo(publishID int64) (*PublishInfoResp, error)
GetPublishInfo ...
func (*PublishManager) GetPublishOperationLog ¶
func (pm *PublishManager) GetPublishOperationLog(publishID int64, filter *query.FilterQuery) (*query.QueryResult, error)
GetPublishOperationLog ..
func (*PublishManager) PublishList ¶
func (pm *PublishManager) PublishList(projectID int64, filter *models.ProejctReleaseFilterQuery) (*query.QueryResult, error)
PublishList ...
func (*PublishManager) TriggerBackTo ¶
func (pm *PublishManager) TriggerBackTo(projectID, publishID, stageID int64, req *TriggerBackToReq, currentUser string) error
TriggerBackTo ..
func (*PublishManager) TriggerNextStage ¶
func (pm *PublishManager) TriggerNextStage(projectID, publishID, envID int64, req *TriggerBackToReq, currentUser string) error
TriggerNextStage ..
func (*PublishManager) UpdatePublish ¶
func (pm *PublishManager) UpdatePublish(publishID, stageID, status, runID int64, creator, message, jobName string) error
UpdatePublish ..
func (*PublishManager) UpdatePublishBaseInfo ¶
func (pm *PublishManager) UpdatePublishBaseInfo(publishID int64, req *PublishUpdate) error
UpdatePublishBaseInfo ..
type PublishReq ¶
type PublishReq struct { Apps []*PubllishReqApp `json:"apps"` Name string `json:"name"` BindPipelineID int64 `json:"bind_pipeline_id"` VersionNo string `json:"version_no"` }
PublishReq create publish-order request body
type PublishReqFilterQuery ¶
type PublishReqFilterQuery struct { query.FilterQuery Status int64 `json:"status"` Deleted bool `json:"deleted"` }
PublishReqFilterQuery ...
type PublishStep ¶
type PublishStep struct { Type string `json:"type"` Name string `json:"name"` Status int64 `json:"status"` Index int `json:"index"` }
PublishStep ..
type PublishUpdate ¶
PublishUpdate ..
type PubllishReqApp ¶
type PubllishReqApp struct { AppID int64 `json:"app_id"` BranchName string `json:"branch_name"` CompileCommand string `json:"compile_command"` }
PubllishReqApp ..
type TriggerBackToReq ¶
TriggerBackToReq trigger publish order back to request body
Click to show internal directories.
Click to hide internal directories.