Documentation
¶
Index ¶
- Constants
- type CreateFlowRequest
- type IssueMock
- func (i IssueMock) AfterIssueAppRelationCreate(issueIDs []int64) error
- func (i IssueMock) AfterIssueInclusionRelationChange(id uint64) error
- func (i IssueMock) AfterIssueUpdate(u *query.IssueUpdated) error
- func (i IssueMock) BatchGetIssue(id []int64, identityInfo *commonpb.IdentityInfo) ([]*issuepb.Issue, error)
- func (i IssueMock) BatchGetIssuePropertyInstances(orgID int64, projectID uint64, issueType string, issueIDs []uint64) (map[uint64]*issuepb.IssueAndPropertyAndValue, error)
- func (i IssueMock) BatchGetProperties(orgID int64, issuesType []string) ([]*issuepb.IssuePropertyIndex, error)
- func (i IssueMock) BatchUpdateIssue(req *issuepb.BatchUpdateIssueRequest) error
- func (i IssueMock) CreatePropertyRelation(req *issuepb.CreateIssuePropertyInstanceRequest) error
- func (i IssueMock) GetAllIssuesByProject(req issuepb.IssueListRequest) ([]dao.IssueItem, error)
- func (i IssueMock) GetBatchProperties(orgID int64, issuesType []string) ([]*issuepb.IssuePropertyIndex, error)
- func (i IssueMock) GetIssue(id int64, identityInfo *commonpb.IdentityInfo) (*issuepb.Issue, error)
- func (i IssueMock) GetIssueChildren(id uint64, req issuepb.PagingIssueRequest) ([]dao.IssueItem, uint64, error)
- func (i IssueMock) GetIssueItem(id uint64) (*dao.IssueItem, error)
- func (i IssueMock) GetIssueLabelsByProjectID(projectID uint64) ([]dao.IssueLabel, error)
- func (i IssueMock) GetIssueParents(issueID uint64, relationType []string) ([]dao.IssueItem, error)
- func (i IssueMock) GetIssuePropertyInstance(req *issuepb.GetIssuePropertyInstanceRequest) (*issuepb.IssueAndPropertyAndValue, error)
- func (i IssueMock) GetIssueRelationsByIssueIDs(issueID uint64, relationType []string) ([]uint64, []uint64, error)
- func (i IssueMock) GetIssueStage(req *issuepb.IssueStageRequest) ([]*issuepb.IssueStage, error)
- func (i IssueMock) GetIssueStateIDs(req *issuepb.GetIssueStatesRequest) ([]int64, error)
- func (i IssueMock) GetIssueStateIDsByTypes(req *apistructs.IssueStatesRequest) ([]int64, error)
- func (i IssueMock) GetIssueStatesBelong(req *issuepb.GetIssueStateRelationRequest) ([]apistructs.IssueStateState, error)
- func (i IssueMock) GetIssueStatesMap(req *issuepb.GetIssueStatesRequest) (map[string][]issuepb.IssueStatus, error)
- func (i IssueMock) GetIssuesByIssueIDs(issueIDs []uint64) ([]*issuepb.Issue, error)
- func (i IssueMock) GetIssuesStatesByProjectID(projectID uint64, issueType string) ([]dao.IssueState, error)
- func (i IssueMock) GetProperties(req *issuepb.GetIssuePropertyRequest) ([]*issuepb.IssuePropertyIndex, error)
- func (i IssueMock) ListStatesTransByProjectID(projectID uint64) ([]dao.IssueStateTransition, error)
- func (i IssueMock) Paging(req issuepb.PagingIssueRequest) ([]*issuepb.Issue, uint64, error)
- func (i IssueMock) SyncIssueChildrenIteration(issue *issuepb.Issue, iterationID int64) error
- func (i IssueMock) SyncLabels(value *syncpb.Value, issueIDs []uint64) error
- func (i IssueMock) UpdateIssue(req *issuepb.UpdateIssueRequest) error
- func (i IssueMock) UpdateLabels(id, projectID uint64, labelNames []string) (err error)
- type Service
- func (s *Service) CreateFlowEvent(req *CreateFlowRequest) error
- func (s *Service) CreateFlowNode(ctx context.Context, req *pb.CreateFlowNodeRequest) (*pb.CreateFlowNodeResponse, error)
- func (s *Service) DeleteFlowNode(ctx context.Context, req *pb.DeleteFlowNodeRequest) (*pb.DeleteFlowNodeResponse, error)
- func (s *Service) FlowCallBack(ctx context.Context, req *pb.FlowCallbackRequest) (*pb.FlowCallbackResponse, error)
- func (s *Service) GetDevFlowInfo(ctx context.Context, req *pb.GetDevFlowInfoRequest) (*pb.GetDevFlowInfoResponse, error)
- func (s *Service) IdempotentCreateBranch(ctx context.Context, repoPath, sourceBranch, newBranch string) error
- func (s *Service) IdempotentDeleteBranch(ctx context.Context, repoPath, branch string) error
- func (s *Service) IsMROpenedOrNotCreated(ctx context.Context, currentBranch, targetBranch string, appID uint64) (bool, error)
- func (s *Service) JoinTempBranch(ctx context.Context, tempBranch, sourceBranch string, ...) error
- func (s *Service) JudgeBranchIsExists(ctx context.Context, repoPath, branch string) (has bool, err error)
- func (s *Service) MergeToTempBranch(ctx context.Context, tempBranch string, appID uint64, devFlow *db.DevFlow) error
- func (s *Service) OperationMerge(ctx context.Context, req *pb.OperationMergeRequest) (*pb.OperationMergeResponse, error)
- func (s *Service) Reconstruction(ctx context.Context, req *pb.ReconstructionRequest) (*pb.ReconstructionResponse, error)
- func (s *Service) RejoinTempBranch(ctx context.Context, tempBranch, sourceBranch, targetBranch string, ...) error
- func (s *Service) UpdateDevFlowAndDoRejoin(ctx context.Context, devFlow *db.DevFlow, app *apistructs.ApplicationDTO) error
- func (p *Service) WithBranchRule(branchRuleSvc *branchrule.BranchRule)
- func (p *Service) WithGittarFileTree(fileTree *filetree.GittarFileTree)
- func (p *Service) WithPermission(permission *permission.Permission)
Constants ¶
View Source
const ( MultiBranchBranchType = "multi_branch" SingleBranchBranchType = "single_branch" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateFlowRequest ¶
type CreateFlowRequest struct {
Data *pb.FlowEventData
ProjectID uint64
AppID uint64
OrgID uint64
}
type IssueMock ¶
type IssueMock struct{}
func (IssueMock) AfterIssueAppRelationCreate ¶
func (IssueMock) AfterIssueInclusionRelationChange ¶
func (IssueMock) AfterIssueUpdate ¶
func (i IssueMock) AfterIssueUpdate(u *query.IssueUpdated) error
func (IssueMock) BatchGetIssue ¶
func (IssueMock) BatchGetIssuePropertyInstances ¶
func (IssueMock) BatchGetProperties ¶
func (IssueMock) BatchUpdateIssue ¶
func (i IssueMock) BatchUpdateIssue(req *issuepb.BatchUpdateIssueRequest) error
func (IssueMock) CreatePropertyRelation ¶
func (i IssueMock) CreatePropertyRelation(req *issuepb.CreateIssuePropertyInstanceRequest) error
func (IssueMock) GetAllIssuesByProject ¶
func (IssueMock) GetBatchProperties ¶
func (IssueMock) GetIssueChildren ¶
func (IssueMock) GetIssueLabelsByProjectID ¶
func (i IssueMock) GetIssueLabelsByProjectID(projectID uint64) ([]dao.IssueLabel, error)
func (IssueMock) GetIssueParents ¶
func (IssueMock) GetIssuePropertyInstance ¶
func (i IssueMock) GetIssuePropertyInstance(req *issuepb.GetIssuePropertyInstanceRequest) (*issuepb.IssueAndPropertyAndValue, error)
func (IssueMock) GetIssueRelationsByIssueIDs ¶
func (IssueMock) GetIssueStage ¶
func (i IssueMock) GetIssueStage(req *issuepb.IssueStageRequest) ([]*issuepb.IssueStage, error)
func (IssueMock) GetIssueStateIDs ¶
func (i IssueMock) GetIssueStateIDs(req *issuepb.GetIssueStatesRequest) ([]int64, error)
func (IssueMock) GetIssueStateIDsByTypes ¶
func (i IssueMock) GetIssueStateIDsByTypes(req *apistructs.IssueStatesRequest) ([]int64, error)
func (IssueMock) GetIssueStatesBelong ¶
func (i IssueMock) GetIssueStatesBelong(req *issuepb.GetIssueStateRelationRequest) ([]apistructs.IssueStateState, error)
func (IssueMock) GetIssueStatesMap ¶
func (i IssueMock) GetIssueStatesMap(req *issuepb.GetIssueStatesRequest) (map[string][]issuepb.IssueStatus, error)
func (IssueMock) GetIssuesByIssueIDs ¶
func (IssueMock) GetIssuesStatesByProjectID ¶
func (IssueMock) GetProperties ¶
func (i IssueMock) GetProperties(req *issuepb.GetIssuePropertyRequest) ([]*issuepb.IssuePropertyIndex, error)
func (IssueMock) ListStatesTransByProjectID ¶
func (i IssueMock) ListStatesTransByProjectID(projectID uint64) ([]dao.IssueStateTransition, error)
func (IssueMock) SyncIssueChildrenIteration ¶
func (IssueMock) SyncLabels ¶
func (IssueMock) UpdateIssue ¶
func (i IssueMock) UpdateIssue(req *issuepb.UpdateIssueRequest) error
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) CreateFlowEvent ¶
func (s *Service) CreateFlowEvent(req *CreateFlowRequest) error
func (*Service) CreateFlowNode ¶
func (s *Service) CreateFlowNode(ctx context.Context, req *pb.CreateFlowNodeRequest) (*pb.CreateFlowNodeResponse, error)
CreateFlowNode currentBranch checkout from sourceBranch
func (*Service) DeleteFlowNode ¶
func (s *Service) DeleteFlowNode(ctx context.Context, req *pb.DeleteFlowNodeRequest) (*pb.DeleteFlowNodeResponse, error)
func (*Service) FlowCallBack ¶
func (s *Service) FlowCallBack(ctx context.Context, req *pb.FlowCallbackRequest) (*pb.FlowCallbackResponse, error)
func (*Service) GetDevFlowInfo ¶
func (s *Service) GetDevFlowInfo(ctx context.Context, req *pb.GetDevFlowInfoRequest) (*pb.GetDevFlowInfoResponse, error)
func (*Service) IdempotentCreateBranch ¶
func (*Service) IdempotentDeleteBranch ¶
func (*Service) IsMROpenedOrNotCreated ¶
func (*Service) JoinTempBranch ¶
func (s *Service) JoinTempBranch(ctx context.Context, tempBranch, sourceBranch string, appDto *apistructs.ApplicationDTO, devFlow *db.DevFlow) error
func (*Service) JudgeBranchIsExists ¶
func (*Service) MergeToTempBranch ¶
func (*Service) OperationMerge ¶
func (s *Service) OperationMerge(ctx context.Context, req *pb.OperationMergeRequest) (*pb.OperationMergeResponse, error)
func (*Service) Reconstruction ¶
func (s *Service) Reconstruction(ctx context.Context, req *pb.ReconstructionRequest) (*pb.ReconstructionResponse, error)
Reconstruction todo impl
func (*Service) RejoinTempBranch ¶
func (s *Service) RejoinTempBranch(ctx context.Context, tempBranch, sourceBranch, targetBranch string, devFlow *db.DevFlow, app *apistructs.ApplicationDTO) error
func (*Service) UpdateDevFlowAndDoRejoin ¶
func (s *Service) UpdateDevFlowAndDoRejoin(ctx context.Context, devFlow *db.DevFlow, app *apistructs.ApplicationDTO) error
func (*Service) WithBranchRule ¶
func (p *Service) WithBranchRule(branchRuleSvc *branchrule.BranchRule)
func (*Service) WithGittarFileTree ¶
func (p *Service) WithGittarFileTree(fileTree *filetree.GittarFileTree)
func (*Service) WithPermission ¶
func (p *Service) WithPermission(permission *permission.Permission)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.