Documentation ¶
Index ¶
- func GetGitContext(ctx *gin.Context)
- func GetGitProviderForUrl(ctx *gin.Context)
- func GetGitProviderIdForUrl(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 RemoveGitProvider(ctx *gin.Context)
- func SetGitProvider(ctx *gin.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetGitContext ¶
GetGitContext godoc
@Tags gitProvider @Summary Get Git context @Description Get Git context @Produce json @Param gitUrl path string true "Git URL" @Success 200 {object} GitRepository @Router /gitprovider/context/{gitUrl} [get] @id GetGitContext
func GetGitProviderForUrl ¶
GetGitProviderForUrl godoc
@Tags gitProvider @Summary Get Git provider @Description Get Git provider @Produce json @Param url path string true "Url" @Success 200 {object} gitprovider.GitProviderConfig @Router /gitprovider/for-url/{url} [get] @id GetGitProviderForUrl
func GetGitProviderIdForUrl ¶ added in v0.24.0
GetGitProviderIdForUrl godoc
@Tags gitProvider @Summary Get Git provider ID @Description Get Git provider ID @Produce plain @Param url path string true "Url" @Success 200 {string} providerId @Router /gitprovider/id-for-url/{url} [get] @id GetGitProviderIdForUrl
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" @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" @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" @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" @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} gitprovider.GitProviderConfig @Router /gitprovider [get] @id ListGitProviders
func RemoveGitProvider ¶
RemoveGitProvider godoc
@Tags gitProvider @Summary Remove Git provider @Description Remove Git provider @Param gitProviderId path string true "Git provider" @Produce json @Success 200 @Router /gitprovider/{gitProviderId} [delete] @id RemoveGitProvider
func SetGitProvider ¶
SetGitProvider godoc
@Tags gitProvider @Summary Set Git provider @Description Set Git provider @Param gitProviderConfig body SetGitProviderConfig true "Git provider" @Produce json @Success 200 @Router /gitprovider [put] @id SetGitProvider
Types ¶
This section is empty.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.