Documentation ¶
Index ¶
- func CodeHubClientBuilder() *http_client.HcHttpClientBuilder
- func GenReqDefForAddDeployKey() *def.HttpRequestDef
- func GenReqDefForAddDeployKeyV2() *def.HttpRequestDef
- func GenReqDefForAddHooks() *def.HttpRequestDef
- func GenReqDefForAddRepoMembers() *def.HttpRequestDef
- func GenReqDefForAddSshKey() *def.HttpRequestDef
- func GenReqDefForCreateCommit() *def.HttpRequestDef
- func GenReqDefForCreateProjectAndRepositories() *def.HttpRequestDef
- func GenReqDefForCreateProjectAndforkRepositories() *def.HttpRequestDef
- func GenReqDefForCreateRepository() *def.HttpRequestDef
- func GenReqDefForDeleteDeployKey() *def.HttpRequestDef
- func GenReqDefForDeleteDeployKeyV2() *def.HttpRequestDef
- func GenReqDefForDeleteHooks() *def.HttpRequestDef
- func GenReqDefForDeleteRepoMember() *def.HttpRequestDef
- func GenReqDefForDeleteRepository() *def.HttpRequestDef
- func GenReqDefForDeleteSShkey() *def.HttpRequestDef
- func GenReqDefForGetAllRepositoryByProjectId() *def.HttpRequestDef
- func GenReqDefForGetProductTemplates() *def.HttpRequestDef
- func GenReqDefForGetRepositoryByProjectId() *def.HttpRequestDef
- func GenReqDefForGetTemplates() *def.HttpRequestDef
- func GenReqDefForListCommitStatistics() *def.HttpRequestDef
- func GenReqDefForListCommits() *def.HttpRequestDef
- func GenReqDefForListFiles() *def.HttpRequestDef
- func GenReqDefForListHooks() *def.HttpRequestDef
- func GenReqDefForListProductTwoTemplates() *def.HttpRequestDef
- func GenReqDefForListRepoMembers() *def.HttpRequestDef
- func GenReqDefForListRepositoryStatus() *def.HttpRequestDef
- func GenReqDefForListSshKeys() *def.HttpRequestDef
- func GenReqDefForListSubfiles() *def.HttpRequestDef
- func GenReqDefForListTemplatesTwo() *def.HttpRequestDef
- func GenReqDefForListTwoTemplates() *def.HttpRequestDef
- func GenReqDefForListUserAllRepositories() *def.HttpRequestDef
- func GenReqDefForSetRepoRole() *def.HttpRequestDef
- func GenReqDefForShareTemplates() *def.HttpRequestDef
- func GenReqDefForShowAllRepositoryByTwoProjectId() *def.HttpRequestDef
- func GenReqDefForShowBranchesByRepositoryId() *def.HttpRequestDef
- func GenReqDefForShowBranchesByTwoRepositoryId() *def.HttpRequestDef
- func GenReqDefForShowCommitsByBranch() *def.HttpRequestDef
- func GenReqDefForShowCommitsByRepoId() *def.HttpRequestDef
- func GenReqDefForShowDiffCommit() *def.HttpRequestDef
- func GenReqDefForShowFile() *def.HttpRequestDef
- func GenReqDefForShowHasPipeline() *def.HttpRequestDef
- func GenReqDefForShowImageBlob() *def.HttpRequestDef
- func GenReqDefForShowMaster() *def.HttpRequestDef
- func GenReqDefForShowPrivateKeyVerify() *def.HttpRequestDef
- func GenReqDefForShowRepoId() *def.HttpRequestDef
- func GenReqDefForShowRepositoryArchive() *def.HttpRequestDef
- func GenReqDefForShowRepositoryByUuid() *def.HttpRequestDef
- func GenReqDefForShowRepositoryNameExist() *def.HttpRequestDef
- func GenReqDefForShowRepositoryStatistics() *def.HttpRequestDef
- func GenReqDefForShowSingleCommit() *def.HttpRequestDef
- func GenReqDefForShowStatisticCommit() *def.HttpRequestDef
- func GenReqDefForShowStatisticCommitV3() *def.HttpRequestDef
- func GenReqDefForShowStatisticalData() *def.HttpRequestDef
- func GenReqDefForValidateHttpsInfo() *def.HttpRequestDef
- func GenReqDefForValidateHttpsInfoV2() *def.HttpRequestDef
- type CodeHubClient
- func (c *CodeHubClient) AddDeployKey(request *model.AddDeployKeyRequest) (*model.AddDeployKeyResponse, error)
- func (c *CodeHubClient) AddDeployKeyV2(request *model.AddDeployKeyV2Request) (*model.AddDeployKeyV2Response, error)
- func (c *CodeHubClient) AddHooks(request *model.AddHooksRequest) (*model.AddHooksResponse, error)
- func (c *CodeHubClient) AddRepoMembers(request *model.AddRepoMembersRequest) (*model.AddRepoMembersResponse, error)
- func (c *CodeHubClient) AddSshKey(request *model.AddSshKeyRequest) (*model.AddSshKeyResponse, error)
- func (c *CodeHubClient) CreateCommit(request *model.CreateCommitRequest) (*model.CreateCommitResponse, error)
- func (c *CodeHubClient) CreateProjectAndRepositories(request *model.CreateProjectAndRepositoriesRequest) (*model.CreateProjectAndRepositoriesResponse, error)
- func (c *CodeHubClient) CreateProjectAndforkRepositories(request *model.CreateProjectAndforkRepositoriesRequest) (*model.CreateProjectAndforkRepositoriesResponse, error)
- func (c *CodeHubClient) CreateRepository(request *model.CreateRepositoryRequest) (*model.CreateRepositoryResponse, error)
- func (c *CodeHubClient) DeleteDeployKey(request *model.DeleteDeployKeyRequest) (*model.DeleteDeployKeyResponse, error)
- func (c *CodeHubClient) DeleteDeployKeyV2(request *model.DeleteDeployKeyV2Request) (*model.DeleteDeployKeyV2Response, error)
- func (c *CodeHubClient) DeleteHooks(request *model.DeleteHooksRequest) (*model.DeleteHooksResponse, error)
- func (c *CodeHubClient) DeleteRepoMember(request *model.DeleteRepoMemberRequest) (*model.DeleteRepoMemberResponse, error)
- func (c *CodeHubClient) DeleteRepository(request *model.DeleteRepositoryRequest) (*model.DeleteRepositoryResponse, error)
- func (c *CodeHubClient) DeleteSShkey(request *model.DeleteSShkeyRequest) (*model.DeleteSShkeyResponse, error)
- func (c *CodeHubClient) GetAllRepositoryByProjectId(request *model.GetAllRepositoryByProjectIdRequest) (*model.GetAllRepositoryByProjectIdResponse, error)
- func (c *CodeHubClient) GetProductTemplates(request *model.GetProductTemplatesRequest) (*model.GetProductTemplatesResponse, error)
- func (c *CodeHubClient) GetRepositoryByProjectId(request *model.GetRepositoryByProjectIdRequest) (*model.GetRepositoryByProjectIdResponse, error)
- func (c *CodeHubClient) GetTemplates(request *model.GetTemplatesRequest) (*model.GetTemplatesResponse, error)
- func (c *CodeHubClient) ListCommitStatistics(request *model.ListCommitStatisticsRequest) (*model.ListCommitStatisticsResponse, error)
- func (c *CodeHubClient) ListCommits(request *model.ListCommitsRequest) (*model.ListCommitsResponse, error)
- func (c *CodeHubClient) ListFiles(request *model.ListFilesRequest) (*model.ListFilesResponse, error)
- func (c *CodeHubClient) ListHooks(request *model.ListHooksRequest) (*model.ListHooksResponse, error)
- func (c *CodeHubClient) ListProductTwoTemplates(request *model.ListProductTwoTemplatesRequest) (*model.ListProductTwoTemplatesResponse, error)
- func (c *CodeHubClient) ListRepoMembers(request *model.ListRepoMembersRequest) (*model.ListRepoMembersResponse, error)
- func (c *CodeHubClient) ListRepositoryStatus(request *model.ListRepositoryStatusRequest) (*model.ListRepositoryStatusResponse, error)
- func (c *CodeHubClient) ListSshKeys(request *model.ListSshKeysRequest) (*model.ListSshKeysResponse, error)
- func (c *CodeHubClient) ListSubfiles(request *model.ListSubfilesRequest) (*model.ListSubfilesResponse, error)
- func (c *CodeHubClient) ListTemplatesTwo(request *model.ListTemplatesTwoRequest) (*model.ListTemplatesTwoResponse, error)
- func (c *CodeHubClient) ListTwoTemplates(request *model.ListTwoTemplatesRequest) (*model.ListTwoTemplatesResponse, error)
- func (c *CodeHubClient) ListUserAllRepositories(request *model.ListUserAllRepositoriesRequest) (*model.ListUserAllRepositoriesResponse, error)
- func (c *CodeHubClient) SetRepoRole(request *model.SetRepoRoleRequest) (*model.SetRepoRoleResponse, error)
- func (c *CodeHubClient) ShareTemplates(request *model.ShareTemplatesRequest) (*model.ShareTemplatesResponse, error)
- func (c *CodeHubClient) ShowAllRepositoryByTwoProjectId(request *model.ShowAllRepositoryByTwoProjectIdRequest) (*model.ShowAllRepositoryByTwoProjectIdResponse, error)
- func (c *CodeHubClient) ShowBranchesByRepositoryId(request *model.ShowBranchesByRepositoryIdRequest) (*model.ShowBranchesByRepositoryIdResponse, error)
- func (c *CodeHubClient) ShowBranchesByTwoRepositoryId(request *model.ShowBranchesByTwoRepositoryIdRequest) (*model.ShowBranchesByTwoRepositoryIdResponse, error)
- func (c *CodeHubClient) ShowCommitsByBranch(request *model.ShowCommitsByBranchRequest) (*model.ShowCommitsByBranchResponse, error)
- func (c *CodeHubClient) ShowCommitsByRepoId(request *model.ShowCommitsByRepoIdRequest) (*model.ShowCommitsByRepoIdResponse, error)
- func (c *CodeHubClient) ShowDiffCommit(request *model.ShowDiffCommitRequest) (*model.ShowDiffCommitResponse, error)
- func (c *CodeHubClient) ShowFile(request *model.ShowFileRequest) (*model.ShowFileResponse, error)
- func (c *CodeHubClient) ShowHasPipeline(request *model.ShowHasPipelineRequest) (*model.ShowHasPipelineResponse, error)
- func (c *CodeHubClient) ShowImageBlob(request *model.ShowImageBlobRequest) (*model.ShowImageBlobResponse, error)
- func (c *CodeHubClient) ShowMaster(request *model.ShowMasterRequest) (*model.ShowMasterResponse, error)
- func (c *CodeHubClient) ShowPrivateKeyVerify(request *model.ShowPrivateKeyVerifyRequest) (*model.ShowPrivateKeyVerifyResponse, error)
- func (c *CodeHubClient) ShowRepoId(request *model.ShowRepoIdRequest) (*model.ShowRepoIdResponse, error)
- func (c *CodeHubClient) ShowRepositoryArchive(request *model.ShowRepositoryArchiveRequest) (*model.ShowRepositoryArchiveResponse, error)
- func (c *CodeHubClient) ShowRepositoryByUuid(request *model.ShowRepositoryByUuidRequest) (*model.ShowRepositoryByUuidResponse, error)
- func (c *CodeHubClient) ShowRepositoryNameExist(request *model.ShowRepositoryNameExistRequest) (*model.ShowRepositoryNameExistResponse, error)
- func (c *CodeHubClient) ShowRepositoryStatistics(request *model.ShowRepositoryStatisticsRequest) (*model.ShowRepositoryStatisticsResponse, error)
- func (c *CodeHubClient) ShowSingleCommit(request *model.ShowSingleCommitRequest) (*model.ShowSingleCommitResponse, error)
- func (c *CodeHubClient) ShowStatisticCommit(request *model.ShowStatisticCommitRequest) (*model.ShowStatisticCommitResponse, error)
- func (c *CodeHubClient) ShowStatisticCommitV3(request *model.ShowStatisticCommitV3Request) (*model.ShowStatisticCommitV3Response, error)
- func (c *CodeHubClient) ShowStatisticalData(request *model.ShowStatisticalDataRequest) (*model.ShowStatisticalDataResponse, error)
- func (c *CodeHubClient) ValidateHttpsInfo(request *model.ValidateHttpsInfoRequest) (*model.ValidateHttpsInfoResponse, error)
- func (c *CodeHubClient) ValidateHttpsInfoV2(request *model.ValidateHttpsInfoV2Request) (*model.ValidateHttpsInfoV2Response, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CodeHubClientBuilder ¶
func CodeHubClientBuilder() *http_client.HcHttpClientBuilder
func GenReqDefForAddDeployKey ¶
func GenReqDefForAddDeployKey() *def.HttpRequestDef
func GenReqDefForAddDeployKeyV2 ¶
func GenReqDefForAddDeployKeyV2() *def.HttpRequestDef
func GenReqDefForAddHooks ¶
func GenReqDefForAddHooks() *def.HttpRequestDef
func GenReqDefForAddRepoMembers ¶
func GenReqDefForAddRepoMembers() *def.HttpRequestDef
func GenReqDefForAddSshKey ¶
func GenReqDefForAddSshKey() *def.HttpRequestDef
func GenReqDefForCreateCommit ¶
func GenReqDefForCreateCommit() *def.HttpRequestDef
func GenReqDefForCreateProjectAndRepositories ¶
func GenReqDefForCreateProjectAndRepositories() *def.HttpRequestDef
func GenReqDefForCreateProjectAndforkRepositories ¶
func GenReqDefForCreateProjectAndforkRepositories() *def.HttpRequestDef
func GenReqDefForCreateRepository ¶
func GenReqDefForCreateRepository() *def.HttpRequestDef
func GenReqDefForDeleteDeployKey ¶
func GenReqDefForDeleteDeployKey() *def.HttpRequestDef
func GenReqDefForDeleteDeployKeyV2 ¶
func GenReqDefForDeleteDeployKeyV2() *def.HttpRequestDef
func GenReqDefForDeleteHooks ¶
func GenReqDefForDeleteHooks() *def.HttpRequestDef
func GenReqDefForDeleteRepoMember ¶
func GenReqDefForDeleteRepoMember() *def.HttpRequestDef
func GenReqDefForDeleteRepository ¶
func GenReqDefForDeleteRepository() *def.HttpRequestDef
func GenReqDefForDeleteSShkey ¶
func GenReqDefForDeleteSShkey() *def.HttpRequestDef
func GenReqDefForGetAllRepositoryByProjectId ¶
func GenReqDefForGetAllRepositoryByProjectId() *def.HttpRequestDef
func GenReqDefForGetProductTemplates ¶
func GenReqDefForGetProductTemplates() *def.HttpRequestDef
func GenReqDefForGetRepositoryByProjectId ¶
func GenReqDefForGetRepositoryByProjectId() *def.HttpRequestDef
func GenReqDefForGetTemplates ¶
func GenReqDefForGetTemplates() *def.HttpRequestDef
func GenReqDefForListCommitStatistics ¶
func GenReqDefForListCommitStatistics() *def.HttpRequestDef
func GenReqDefForListCommits ¶
func GenReqDefForListCommits() *def.HttpRequestDef
func GenReqDefForListFiles ¶
func GenReqDefForListFiles() *def.HttpRequestDef
func GenReqDefForListHooks ¶
func GenReqDefForListHooks() *def.HttpRequestDef
func GenReqDefForListProductTwoTemplates ¶
func GenReqDefForListProductTwoTemplates() *def.HttpRequestDef
func GenReqDefForListRepoMembers ¶
func GenReqDefForListRepoMembers() *def.HttpRequestDef
func GenReqDefForListRepositoryStatus ¶
func GenReqDefForListRepositoryStatus() *def.HttpRequestDef
func GenReqDefForListSshKeys ¶
func GenReqDefForListSshKeys() *def.HttpRequestDef
func GenReqDefForListSubfiles ¶
func GenReqDefForListSubfiles() *def.HttpRequestDef
func GenReqDefForListTemplatesTwo ¶
func GenReqDefForListTemplatesTwo() *def.HttpRequestDef
func GenReqDefForListTwoTemplates ¶
func GenReqDefForListTwoTemplates() *def.HttpRequestDef
func GenReqDefForListUserAllRepositories ¶
func GenReqDefForListUserAllRepositories() *def.HttpRequestDef
func GenReqDefForSetRepoRole ¶
func GenReqDefForSetRepoRole() *def.HttpRequestDef
func GenReqDefForShareTemplates ¶
func GenReqDefForShareTemplates() *def.HttpRequestDef
func GenReqDefForShowAllRepositoryByTwoProjectId ¶
func GenReqDefForShowAllRepositoryByTwoProjectId() *def.HttpRequestDef
func GenReqDefForShowBranchesByRepositoryId ¶
func GenReqDefForShowBranchesByRepositoryId() *def.HttpRequestDef
func GenReqDefForShowBranchesByTwoRepositoryId ¶
func GenReqDefForShowBranchesByTwoRepositoryId() *def.HttpRequestDef
func GenReqDefForShowCommitsByBranch ¶
func GenReqDefForShowCommitsByBranch() *def.HttpRequestDef
func GenReqDefForShowCommitsByRepoId ¶
func GenReqDefForShowCommitsByRepoId() *def.HttpRequestDef
func GenReqDefForShowDiffCommit ¶
func GenReqDefForShowDiffCommit() *def.HttpRequestDef
func GenReqDefForShowFile ¶
func GenReqDefForShowFile() *def.HttpRequestDef
func GenReqDefForShowHasPipeline ¶
func GenReqDefForShowHasPipeline() *def.HttpRequestDef
func GenReqDefForShowImageBlob ¶
func GenReqDefForShowImageBlob() *def.HttpRequestDef
func GenReqDefForShowMaster ¶
func GenReqDefForShowMaster() *def.HttpRequestDef
func GenReqDefForShowPrivateKeyVerify ¶
func GenReqDefForShowPrivateKeyVerify() *def.HttpRequestDef
func GenReqDefForShowRepoId ¶
func GenReqDefForShowRepoId() *def.HttpRequestDef
func GenReqDefForShowRepositoryArchive ¶
func GenReqDefForShowRepositoryArchive() *def.HttpRequestDef
func GenReqDefForShowRepositoryByUuid ¶
func GenReqDefForShowRepositoryByUuid() *def.HttpRequestDef
func GenReqDefForShowRepositoryNameExist ¶
func GenReqDefForShowRepositoryNameExist() *def.HttpRequestDef
func GenReqDefForShowRepositoryStatistics ¶
func GenReqDefForShowRepositoryStatistics() *def.HttpRequestDef
func GenReqDefForShowSingleCommit ¶
func GenReqDefForShowSingleCommit() *def.HttpRequestDef
func GenReqDefForShowStatisticCommit ¶
func GenReqDefForShowStatisticCommit() *def.HttpRequestDef
func GenReqDefForShowStatisticCommitV3 ¶ added in v0.0.78
func GenReqDefForShowStatisticCommitV3() *def.HttpRequestDef
func GenReqDefForShowStatisticalData ¶
func GenReqDefForShowStatisticalData() *def.HttpRequestDef
func GenReqDefForValidateHttpsInfo ¶
func GenReqDefForValidateHttpsInfo() *def.HttpRequestDef
func GenReqDefForValidateHttpsInfoV2 ¶
func GenReqDefForValidateHttpsInfoV2() *def.HttpRequestDef
Types ¶
type CodeHubClient ¶
type CodeHubClient struct {
HcClient *http_client.HcHttpClient
}
func NewCodeHubClient ¶
func NewCodeHubClient(hcClient *http_client.HcHttpClient) *CodeHubClient
func (*CodeHubClient) AddDeployKey ¶
func (c *CodeHubClient) AddDeployKey(request *model.AddDeployKeyRequest) (*model.AddDeployKeyResponse, error)
添加部署密钥
func (*CodeHubClient) AddDeployKeyV2 ¶
func (c *CodeHubClient) AddDeployKeyV2(request *model.AddDeployKeyV2Request) (*model.AddDeployKeyV2Response, error)
添加部署密钥
func (*CodeHubClient) AddHooks ¶
func (c *CodeHubClient) AddHooks(request *model.AddHooksRequest) (*model.AddHooksResponse, error)
提交代码自动触发编译构建,添加仓库钩子
func (*CodeHubClient) AddRepoMembers ¶
func (c *CodeHubClient) AddRepoMembers(request *model.AddRepoMembersRequest) (*model.AddRepoMembersResponse, error)
调用方codehubportal,添加仓库成员。
func (*CodeHubClient) AddSshKey ¶
func (c *CodeHubClient) AddSshKey(request *model.AddSshKeyRequest) (*model.AddSshKeyResponse, error)
添加ssh key
func (*CodeHubClient) CreateCommit ¶
func (c *CodeHubClient) CreateCommit(request *model.CreateCommitRequest) (*model.CreateCommitResponse, error)
能够一次提交位于不同目录的多个文件,目录不存在时,能自动创建目录。支持强制覆盖选项,当选择强制覆盖标志为true时,忽略冲突,强制提交。
func (*CodeHubClient) CreateProjectAndRepositories ¶
func (c *CodeHubClient) CreateProjectAndRepositories(request *model.CreateProjectAndRepositoriesRequest) (*model.CreateProjectAndRepositoriesResponse, error)
创建项目后,创建仓库组由后台生成方式 传入参数:仓库名、模板id、是否导入项目成员、归属项目
func (*CodeHubClient) CreateProjectAndforkRepositories ¶
func (c *CodeHubClient) CreateProjectAndforkRepositories(request *model.CreateProjectAndforkRepositoriesRequest) (*model.CreateProjectAndforkRepositoriesResponse, error)
创建仓库后fork仓库 传入参数:仓库名、是否导入项目成员、归属项目
func (*CodeHubClient) CreateRepository ¶
func (c *CodeHubClient) CreateRepository(request *model.CreateRepositoryRequest) (*model.CreateRepositoryResponse, error)
用指定的名称在指定项目上创建仓库。传入参数:仓库名、模板id、是否导入项目成员、归属项目
func (*CodeHubClient) DeleteDeployKey ¶
func (c *CodeHubClient) DeleteDeployKey(request *model.DeleteDeployKeyRequest) (*model.DeleteDeployKeyResponse, error)
删除仓库部署密钥
func (*CodeHubClient) DeleteDeployKeyV2 ¶
func (c *CodeHubClient) DeleteDeployKeyV2(request *model.DeleteDeployKeyV2Request) (*model.DeleteDeployKeyV2Response, error)
删除仓库部署密钥
func (*CodeHubClient) DeleteHooks ¶
func (c *CodeHubClient) DeleteHooks(request *model.DeleteHooksRequest) (*model.DeleteHooksResponse, error)
提交代码自动触发编译构建,删除仓库钩子
func (*CodeHubClient) DeleteRepoMember ¶
func (c *CodeHubClient) DeleteRepoMember(request *model.DeleteRepoMemberRequest) (*model.DeleteRepoMemberResponse, error)
删除仓库成员
func (*CodeHubClient) DeleteRepository ¶
func (c *CodeHubClient) DeleteRepository(request *model.DeleteRepositoryRequest) (*model.DeleteRepositoryResponse, error)
根据仓库32位uuid删除指定的仓库
func (*CodeHubClient) DeleteSShkey ¶
func (c *CodeHubClient) DeleteSShkey(request *model.DeleteSShkeyRequest) (*model.DeleteSShkeyResponse, error)
调用gitlab原生接口删除用户公钥。
func (*CodeHubClient) GetAllRepositoryByProjectId ¶
func (c *CodeHubClient) GetAllRepositoryByProjectId(request *model.GetAllRepositoryByProjectIdRequest) (*model.GetAllRepositoryByProjectIdResponse, error)
获取仓库列表 模糊查询支持范围,如果未传入project_id,则支持按仓库名或项目名模糊查询,否则,只按仓库名模糊匹配。
func (*CodeHubClient) GetProductTemplates ¶
func (c *CodeHubClient) GetProductTemplates(request *model.GetProductTemplatesRequest) (*model.GetProductTemplatesResponse, error)
获取一个项目下可以设置为公开状态的仓库列表
func (*CodeHubClient) GetRepositoryByProjectId ¶
func (c *CodeHubClient) GetRepositoryByProjectId(request *model.GetRepositoryByProjectIdRequest) (*model.GetRepositoryByProjectIdResponse, error)
不建议再使用,建议使用/{repository_uuid}/status
func (*CodeHubClient) GetTemplates ¶
func (c *CodeHubClient) GetTemplates(request *model.GetTemplatesRequest) (*model.GetTemplatesResponse, error)
获取公开示例模板列表
func (*CodeHubClient) ListCommitStatistics ¶
func (c *CodeHubClient) ListCommitStatistics(request *model.ListCommitStatisticsRequest) (*model.ListCommitStatisticsResponse, error)
获取仓库上一次的提交统计信息
func (*CodeHubClient) ListCommits ¶
func (c *CodeHubClient) ListCommits(request *model.ListCommitsRequest) (*model.ListCommitsResponse, error)
根据仓库短ID获取提交信息,支持根据文件路径,查询这个路径下所有的commits列表。
func (*CodeHubClient) ListFiles ¶
func (c *CodeHubClient) ListFiles(request *model.ListFilesRequest) (*model.ListFilesResponse, error)
获取一个仓库下特定分支指定文件内容
func (*CodeHubClient) ListHooks ¶
func (c *CodeHubClient) ListHooks(request *model.ListHooksRequest) (*model.ListHooksResponse, error)
获取仓库webhook
func (*CodeHubClient) ListProductTwoTemplates ¶
func (c *CodeHubClient) ListProductTwoTemplates(request *model.ListProductTwoTemplatesRequest) (*model.ListProductTwoTemplatesResponse, error)
获取一个项目下可以设置为公开状态的仓库列表
func (*CodeHubClient) ListRepoMembers ¶
func (c *CodeHubClient) ListRepoMembers(request *model.ListRepoMembersRequest) (*model.ListRepoMembersResponse, error)
获取仓库成员列表,可通过关键字搜索某成员。
func (*CodeHubClient) ListRepositoryStatus ¶
func (c *CodeHubClient) ListRepositoryStatus(request *model.ListRepositoryStatusRequest) (*model.ListRepositoryStatusResponse, error)
获取仓库状态。
func (*CodeHubClient) ListSshKeys ¶
func (c *CodeHubClient) ListSshKeys(request *model.ListSshKeysRequest) (*model.ListSshKeysResponse, error)
获取ssh key列表。
func (*CodeHubClient) ListSubfiles ¶
func (c *CodeHubClient) ListSubfiles(request *model.ListSubfilesRequest) (*model.ListSubfilesResponse, error)
获取分支目录下的文件
func (*CodeHubClient) ListTemplatesTwo ¶
func (c *CodeHubClient) ListTemplatesTwo(request *model.ListTemplatesTwoRequest) (*model.ListTemplatesTwoResponse, error)
设置仓库是公开状态还是私有状态
func (*CodeHubClient) ListTwoTemplates ¶
func (c *CodeHubClient) ListTwoTemplates(request *model.ListTwoTemplatesRequest) (*model.ListTwoTemplatesResponse, error)
获取公开示例模板列表
func (*CodeHubClient) ListUserAllRepositories ¶
func (c *CodeHubClient) ListUserAllRepositories(request *model.ListUserAllRepositoriesRequest) (*model.ListUserAllRepositoriesResponse, error)
获取用户的所有仓库信息
func (*CodeHubClient) SetRepoRole ¶
func (c *CodeHubClient) SetRepoRole(request *model.SetRepoRoleRequest) (*model.SetRepoRoleResponse, error)
给仓库中成员设置仓库的操作权限,
func (*CodeHubClient) ShareTemplates ¶
func (c *CodeHubClient) ShareTemplates(request *model.ShareTemplatesRequest) (*model.ShareTemplatesResponse, error)
设置仓库是公开状态还是私有状态
func (*CodeHubClient) ShowAllRepositoryByTwoProjectId ¶
func (c *CodeHubClient) ShowAllRepositoryByTwoProjectId(request *model.ShowAllRepositoryByTwoProjectIdRequest) (*model.ShowAllRepositoryByTwoProjectIdResponse, error)
获取仓库列表,模糊查询支持范围,如果未传入project uuid,则支持按仓库名或项目名模糊查询,否则,只按仓库名模糊匹配
func (*CodeHubClient) ShowBranchesByRepositoryId ¶
func (c *CodeHubClient) ShowBranchesByRepositoryId(request *model.ShowBranchesByRepositoryIdRequest) (*model.ShowBranchesByRepositoryIdResponse, error)
根据仓库id获取指定仓库的分支列表.
func (*CodeHubClient) ShowBranchesByTwoRepositoryId ¶
func (c *CodeHubClient) ShowBranchesByTwoRepositoryId(request *model.ShowBranchesByTwoRepositoryIdRequest) (*model.ShowBranchesByTwoRepositoryIdResponse, error)
查询指定仓库对应的分支。
func (*CodeHubClient) ShowCommitsByBranch ¶
func (c *CodeHubClient) ShowCommitsByBranch(request *model.ShowCommitsByBranchRequest) (*model.ShowCommitsByBranchResponse, error)
根据仓库组名、仓库名和分支获取提交列表。
func (*CodeHubClient) ShowCommitsByRepoId ¶
func (c *CodeHubClient) ShowCommitsByRepoId(request *model.ShowCommitsByRepoIdRequest) (*model.ShowCommitsByRepoIdResponse, error)
根据仓库id查询仓库某分支对应的提交.
func (*CodeHubClient) ShowDiffCommit ¶
func (c *CodeHubClient) ShowDiffCommit(request *model.ShowDiffCommitRequest) (*model.ShowDiffCommitResponse, error)
根据commit id查询提交差异信息。
func (*CodeHubClient) ShowFile ¶
func (c *CodeHubClient) ShowFile(request *model.ShowFileRequest) (*model.ShowFileResponse, error)
获取仓库中文件的信息,如名称、大小、内容。请注意,文件内容是Base64编码的。
func (*CodeHubClient) ShowHasPipeline ¶
func (c *CodeHubClient) ShowHasPipeline(request *model.ShowHasPipelineRequest) (*model.ShowHasPipelineResponse, error)
修改被流水线引用的仓库状态
func (*CodeHubClient) ShowImageBlob ¶
func (c *CodeHubClient) ShowImageBlob(request *model.ShowImageBlobRequest) (*model.ShowImageBlobResponse, error)
获取一个仓库下特定分支的图片文件
func (*CodeHubClient) ShowMaster ¶
func (c *CodeHubClient) ShowMaster(request *model.ShowMasterRequest) (*model.ShowMasterResponse, error)
判断用户是否有仓库的管理员权限
func (*CodeHubClient) ShowPrivateKeyVerify ¶
func (c *CodeHubClient) ShowPrivateKeyVerify(request *model.ShowPrivateKeyVerifyRequest) (*model.ShowPrivateKeyVerifyResponse, error)
检验私钥是否有拉取代码的权限
func (*CodeHubClient) ShowRepoId ¶
func (c *CodeHubClient) ShowRepoId(request *model.ShowRepoIdRequest) (*model.ShowRepoIdResponse, error)
获取仓库短id,用于获取仓库详情页面url
func (*CodeHubClient) ShowRepositoryArchive ¶
func (c *CodeHubClient) ShowRepositoryArchive(request *model.ShowRepositoryArchiveRequest) (*model.ShowRepositoryArchiveResponse, error)
按照指定格式下载仓库
func (*CodeHubClient) ShowRepositoryByUuid ¶
func (c *CodeHubClient) ShowRepositoryByUuid(request *model.ShowRepositoryByUuidRequest) (*model.ShowRepositoryByUuidResponse, error)
根据仓库UUID获取仓库信息仓库信息。返回 包含id,name,组名,仓库访问URL。
func (*CodeHubClient) ShowRepositoryNameExist ¶
func (c *CodeHubClient) ShowRepositoryNameExist(request *model.ShowRepositoryNameExistRequest) (*model.ShowRepositoryNameExistResponse, error)
一般创建仓库时调用。通过传入项目uuid,仓库名,调用CoudeHubAdapter接口,查询数据库来判断仓库是否重名。
func (*CodeHubClient) ShowRepositoryStatistics ¶
func (c *CodeHubClient) ShowRepositoryStatistics(request *model.ShowRepositoryStatisticsRequest) (*model.ShowRepositoryStatisticsResponse, error)
根据仓库短id,查询仓库的代码提交记录统计
func (*CodeHubClient) ShowSingleCommit ¶
func (c *CodeHubClient) ShowSingleCommit(request *model.ShowSingleCommitRequest) (*model.ShowSingleCommitResponse, error)
获取由commit id或分支或标记的名称标识的特定提交。
func (*CodeHubClient) ShowStatisticCommit ¶
func (c *CodeHubClient) ShowStatisticCommit(request *model.ShowStatisticCommitRequest) (*model.ShowStatisticCommitResponse, error)
获取指定日期内代码仓指定分支的代码提交行数
func (*CodeHubClient) ShowStatisticCommitV3 ¶ added in v0.0.78
func (c *CodeHubClient) ShowStatisticCommitV3(request *model.ShowStatisticCommitV3Request) (*model.ShowStatisticCommitV3Response, error)
获取指定日期内代码仓指定分支的代码提交行数
func (*CodeHubClient) ShowStatisticalData ¶
func (c *CodeHubClient) ShowStatisticalData(request *model.ShowStatisticalDataRequest) (*model.ShowStatisticalDataResponse, error)
获取仓库统计数据
func (*CodeHubClient) ValidateHttpsInfo ¶
func (c *CodeHubClient) ValidateHttpsInfo(request *model.ValidateHttpsInfoRequest) (*model.ValidateHttpsInfoResponse, error)
调用 gitlab 接口判断用户使用 https 上传/下载代码时输入的用户名和密码是否合法。
func (*CodeHubClient) ValidateHttpsInfoV2 ¶
func (c *CodeHubClient) ValidateHttpsInfoV2(request *model.ValidateHttpsInfoV2Request) (*model.ValidateHttpsInfoV2Response, error)
调用 gitlab 接口判断用户使用 https 上传/下载代码时输入的用户名和密码是否合法。