Versions in this module Expand all Collapse all v1 v1.0.1 Aug 15, 2024 Changes in this version + func BuildCheckLoop(ctx *command.Context, pipelineID uint64) error + func ConstructURL(ctx *command.Context, entity ErdaEntity, params url.Values) (string, error) + func CreateApplication(ctx *command.Context, orgID, projectID uint64, ...) (apistructs.ApplicationDTO, error) + func CreateIssueComment(ctx *command.Context, orgID uint64, ...) error + func CreateMSPProject(ctx *command.Context, projectID uint64, name string) (*pb.Project, error) + func CreateMr(ctx *command.Context, orgID uint64, project, application string, ...) (*apistructs.MergeRequestInfo, error) + func CreateProject(ctx *command.Context, orgID uint64, name, desc string, ...) (uint64, error) + func DelelteProjectWorkspaceConfigs(ctx *command.Context, org, project, workspace string) error + func DeleteApplication(ctx *command.Context, applicationID uint64) error + func GetApplicationDetail(ctx *command.Context, orgID, projectID, applicationID uint64) (apistructs.ApplicationDTO, error) + func GetApplicationID(ctx *command.Context, orgID, projectID uint64, application string) (string, uint64, error) + func GetApplicationIdByName(ctx *command.Context, orgID, projectID uint64, application string) (uint64, error) + func GetApplications(ctx *command.Context, orgID, projectID uint64) ([]apistructs.ApplicationDTO, error) + func GetIssue(ctx *command.Context, orgID, projectID, issueID uint64) (*apistructs.Issue, error) + func GetMergeState() + func GetMyApplications(ctx *command.Context, orgID, projectID uint64) ([]apistructs.ApplicationDTO, error) + func GetOrgDetail(ctx *command.Context, orgIDorName string) (apistructs.OrgDTO, error) + func GetOrgID(ctx *command.Context, org string) (string, uint64, error) + func GetPagingApplications(ctx *command.Context, orgID, projectID uint64, pageNo, pageSize int) (apistructs.ApplicationListResponseData, error) + func GetPagingMyApplications(ctx *command.Context, orgID, projectID uint64, pageNo, pageSize int) (apistructs.ApplicationListResponseData, error) + func GetPagingProjects(ctx *command.Context, orgId uint64, pageNo, pageSize int) (apistructs.PagingProjectDTO, error) + func GetPipeline(ctx *command.Context, pipelineID uint64) (pipelinepb.PipelineDetailDTO, error) + func GetProjectByName(ctx *command.Context, orgId uint64, project string) (apistructs.ProjectDTO, error) + func GetProjectDetail(ctx *command.Context, orgID, projectID uint64) (apistructs.ProjectDTO, error) + func GetProjectID(ctx *command.Context, orgID uint64, project string) (string, uint64, error) + func GetProjectIDByName(ctx *command.Context, orgId uint64, project string) (uint64, error) + func GetProjectWorkspaceConfigs(ctx *command.Context, org, project, workspace string) error + func GetProjects(ctx *command.Context, orgId uint64) ([]apistructs.ProjectDTO, error) + func GetRecord(ctx *command.Context, orgID, id uint64) (apistructs.TestFileRecord, error) + func GetRepoStats(ctx *command.Context, orgID uint64, project, application string) (apistructs.GittarStatsData, error) + func GetTodoStateIds(states []apistructs.IssueStateRelation) ([]int64, error) + func ImportPackage(ctx *command.Context, orgID, projectID uint64, pkg string) (uint64, error) + func ListMyIssue(ctx *command.Context, req *apistructs.IssuePagingRequest) (*apistructs.IssuePagingResponseData, error) + func ListMyProjectInOrg(ctx *command.Context, orgId string, projectName string) ([]apistructs.ProjectDTO, error) + func ListState(ctx *command.Context, orgID uint64, ...) ([]apistructs.IssueStateRelation, error) + func Open(ctx *command.Context, entity ErdaEntity, params url.Values) error + func ParseProjectWorkspaceConfigs(featureList string) (string, error) + func PushApplication(dir, repo string, force bool) error + func SetProjectWorkspaceConfigs(ctx *command.Context, feature, orgName, projectName, workspace string) error + func UpdateIssue(ctx *command.Context, orgID uint64, request *apistructs.IssueUpdateRequest) error + func UpdateProjectWorkspaceConfigs(ctx *command.Context, feature, org, project, workspace string) error + type EntityType string + var AppEntity EntityType = "app" + var GittarBranch EntityType = "gittar-branch" + var IssueEntity EntityType = "issue" + var MrCompaireEntity EntityType = "mr-compare" + var MrEntity EntityType = "mr" + var OrgEntity EntityType = "org" + var ProjectEntity EntityType = "project" + var ReleaseEntity EntityType = "release" + type ErdaEntity struct + ApplicationID uint64 + GittarBranch string + IssueID uint64 + MergeRequestID uint64 + Org string + OrgID uint64 + ProjectID uint64 + Type EntityType + type UserOrgProj struct + OrgId string + ProjectId string + UserId string + func GetUserOrgProjID(ctx *command.Context, orgName, projectName string) (UserOrgProj, error)