Documentation ¶
Index ¶
- Constants
- type Apply
- func (a *Apply) CheckHaveDeploying() (bool, error)
- func (a *Apply) Create() error
- func (a *Apply) Detail() error
- func (a *Apply) DropStatus() error
- func (a *Apply) List(keyword string, spaceIds []int, offset, limit int) ([]Apply, error)
- func (a *Apply) RollbackList() ([]Apply, error)
- func (a *Apply) Total(keyword string, spaceIds []int) (int, error)
- func (a *Apply) Update() error
- func (a *Apply) UpdateAuditStatus() error
- func (a *Apply) UpdateRollback() error
- func (a *Apply) UpdateStatus() error
- type Build
- type Deploy
Constants ¶
View Source
const ( AUDIT_STATUS_PENDING = 1 AUDIT_STATUS_OK = 2 AUDIT_STATUS_REFUSE = 3 )
View Source
const ( APPLY_STATUS_NONE = 1 APPLY_STATUS_ING = 2 APPLY_STATUS_SUCCESS = 3 APPLY_STATUS_FAILED = 4 APPLY_STATUS_DROP = 5 APPLY_STATUS_ROLLBACK = 6 )
View Source
const ( BUILD_STATUS_NONE = 0 BUILD_STATUS_START = 1 BUILD_STATUS_SUCCESS = 2 BUILD_STATUS_FAILED = 3 )
View Source
const ( DEPLOY_STATUS_NONE = 0 DEPLOY_STATUS_START = 1 DEPLOY_STATUS_SUCCESS = 2 DEPLOY_STATUS_FAILED = 3 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Apply ¶
type Apply struct { ID int `json:"id"` SpaceId int `json:"space_id"` ProjectId int `json:"project_id"` Name string `json:"name"` Description string `json:"description"` BranchName string `json:"branch_name"` CommitVersion string `json:"commit_version"` AuditStatus int `json:"audit_status"` AuditRefusalReasion string `json:"audit_refusal_reasion"` RollbackId int `json:"rollback_id"` RollbackApplyId int `json:"rollback_apply_id"` IsRollbackApply int `json:"is_rollback_apply"` Status int `json:"status"` UserId int `json:"user_id"` Username string `json:"username"` Email string `json:"email"` RollbackStatus int `json:"rollback_status"` Ctime int `json:"ctime"` }
func (*Apply) CheckHaveDeploying ¶
func (*Apply) DropStatus ¶
func (*Apply) RollbackList ¶
func (*Apply) UpdateAuditStatus ¶
func (*Apply) UpdateRollback ¶
func (*Apply) UpdateStatus ¶
type Build ¶
type Build struct { ID int `json:"id"` ApplyId int `json:"apply_id"` StartTime int `json:"start_time"` FinishTime int `json:"finish_time"` Status int `json:"status"` Tar string `json:"tar"` Output string `json:"Output"` Errmsg string `json:"errmsg"` Ctime int `json:"ctime"` }
func (*Build) CreateFull ¶
type Deploy ¶
type Deploy struct { ID int `json:"id"` ApplyId int `json:"apply_id"` GroupId int `json:"group_id"` Status int `json:"status"` Content string `json:"content"` Ctime int `json:"ctime"` }
func (*Deploy) DeleteByApplyId ¶
func (*Deploy) UpdateResult ¶
func (*Deploy) UpdateStatus ¶
Click to show internal directories.
Click to hide internal directories.