gitprovider

package
v0.25.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 14, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetGitContext

func GetGitContext(ctx *gin.Context)

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

func GetGitProviderForUrl(ctx *gin.Context)

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

func GetGitProviderIdForUrl(ctx *gin.Context)

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

func GetGitUser(ctx *gin.Context)

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

func GetNamespaces(ctx *gin.Context)

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

func GetRepoBranches(ctx *gin.Context)

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

func GetRepoPRs(ctx *gin.Context)

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

func GetRepositories(ctx *gin.Context)

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

func GetUrlFromRepository(ctx *gin.Context)

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

func ListGitProviders(ctx *gin.Context)

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

func RemoveGitProvider(ctx *gin.Context)

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

func SetGitProvider(ctx *gin.Context)

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL