Documentation
¶
Index ¶
- func DeleteGitProvider(ctx *gin.Context)
- func FindGitProvider(ctx *gin.Context)
- func FindGitProviderIdForUrl(ctx *gin.Context)
- func GetGitContext(ctx *gin.Context)
- func GetGitUser(ctx *gin.Context)
- func GetNamespaces(ctx *gin.Context)
- func GetRepoBranches(ctx *gin.Context)
- func GetRepoPRs(ctx *gin.Context)
- func GetRepositories(ctx *gin.Context)
- func GetUrlFromRepository(ctx *gin.Context)
- func ListGitProviders(ctx *gin.Context)
- func ListGitProvidersForUrl(ctx *gin.Context)
- func SaveGitProvider(ctx *gin.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteGitProvider ¶ added in v0.52.0
DeleteGitProvider godoc
@Tags gitProvider @Summary Delete Git provider @Description Delete Git provider @Param gitProviderId path string true "Git provider" @Produce json @Success 200 @Router /gitprovider/{gitProviderId} [delete] @id DeleteGitProvider
func FindGitProvider ¶ added in v0.52.0
FindGitProvider godoc
@Tags gitProvider @Summary Find Git provider @Description Find Git provider @Produce plain @Param gitProviderId path string true "ID" @Success 200 {object} models.GitProviderConfig @Router /gitprovider/{gitProviderId} [get] @id FindGitProvider
func FindGitProviderIdForUrl ¶ added in v0.52.0
FindGitProviderIdForUrl godoc
@Tags gitProvider @Summary Find Git provider ID @Description Find Git provider ID @Produce plain @Param url path string true "Url" @Success 200 {string} providerId @Router /gitprovider/id-for-url/{url} [get] @id FindGitProviderIdForUrl
func GetGitContext ¶
GetGitContext godoc
@Tags gitProvider @Summary Get Git context @Description Get Git context @Produce json @Param repository body GetRepositoryContext true "Get repository context" @Success 200 {object} GitRepository @Router /gitprovider/context [post] @id GetGitContext
func GetGitUser ¶
GetGitUser godoc
@Tags gitProvider @Summary Get Git context @Description Get Git context @Produce json @Param gitProviderId path string true "Git Provider Id" @Success 200 {object} GitUser @Router /gitprovider/{gitProviderId}/user [get] @id GetGitUser
func GetNamespaces ¶
GetNamespaces godoc
@Tags gitProvider @Summary Get Git namespaces @Description Get Git namespaces @Param gitProviderId path string true "Git provider" @Param page query int false "Page number" @Param per_page query int false "Number of items per page" @Produce json @Success 200 {array} GitNamespace @Router /gitprovider/{gitProviderId}/namespaces [get] @id GetNamespaces
func GetRepoBranches ¶
GetRepoBranches godoc
@Tags gitProvider @Summary Get Git repository branches @Description Get Git repository branches @Param gitProviderId path string true "Git provider" @Param namespaceId path string true "Namespace" @Param repositoryId path string true "Repository" @Param page query int false "Page number" @Param per_page query int false "Number of items per page" @Produce json @Success 200 {array} GitBranch @Router /gitprovider/{gitProviderId}/{namespaceId}/{repositoryId}/branches [get] @id GetRepoBranches
func GetRepoPRs ¶
GetRepoPRs godoc
@Tags gitProvider @Summary Get Git repository PRs @Description Get Git repository PRs @Param gitProviderId path string true "Git provider" @Param namespaceId path string true "Namespace" @Param repositoryId path string true "Repository" @Param page query int false "Page number" @Param per_page query int false "Number of items per page" @Produce json @Success 200 {array} GitPullRequest @Router /gitprovider/{gitProviderId}/{namespaceId}/{repositoryId}/pull-requests [get] @id GetRepoPRs
func GetRepositories ¶
GetRepositories godoc
@Tags gitProvider @Summary Get Git repositories @Description Get Git repositories @Param gitProviderId path string true "Git provider" @Param namespaceId path string true "Namespace" @Param page query int false "Page number" @Param per_page query int false "Number of items per page" @Produce json @Success 200 {array} GitRepository @Router /gitprovider/{gitProviderId}/{namespaceId}/repositories [get] @id GetRepositories
func GetUrlFromRepository ¶ added in v0.24.0
GetUrlFromRepository godoc
@Tags gitProvider @Summary Get URL from Git repository @Description Get URL from Git repository @Produce json @Param repository body GitRepository true "Git repository" @Success 200 {object} RepositoryUrl @Router /gitprovider/context/url [post] @id GetUrlFromRepository
func ListGitProviders ¶
ListGitProviders godoc
@Tags gitProvider @Summary List Git providers @Description List Git providers @Produce json @Success 200 {array} models.GitProviderConfig @Router /gitprovider [get] @id ListGitProviders
func ListGitProvidersForUrl ¶ added in v0.38.0
ListGitProvidersForUrl godoc
@Tags gitProvider @Summary List Git providers for url @Description List Git providers for url @Produce json @Param url path string true "Url" @Success 200 {array} models.GitProviderConfig @Router /gitprovider/for-url/{url} [get] @id ListGitProvidersForUrl
func SaveGitProvider ¶ added in v0.52.0
SaveGitProvider godoc
@Tags gitProvider @Summary Save Git provider @Description Save Git provider @Param gitProviderConfig body SetGitProviderConfig true "Git provider" @Produce json @Success 200 @Router /gitprovider [put] @id SaveGitProvider
Types ¶
This section is empty.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.