repo

package
v0.0.0-...-9c90d3e Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleBadgeData

func HandleBadgeData(
	repoStore core.RepoStore,
	logger lumber.Logger) gin.HandlerFunc

HandleBadgeData returns the badge data of a repository

func HandleBadgeFlakyTests

func HandleBadgeFlakyTests(
	repoStore core.RepoStore,
	logger lumber.Logger) gin.HandlerFunc

HandleBadgeFlakyTests finds the flaky tests in latestBuildID.

func HandleBadgeTimeSaved

func HandleBadgeTimeSaved(
	buildStore core.BuildStore,
	testExecutionStore core.TestExecutionStore,
	repoStore core.RepoStore,
	logger lumber.Logger) gin.HandlerFunc

HandleBadgeTimeSaved finds the time saved in latestBuildID.

func HandleCreate

func HandleCreate(
	repoStore core.RepoStore,
	userStore core.GitUserStore,
	hookService core.HookService,
	repoService core.RepositoryService,
	tokenHandler core.GitTokenHandler,
	emailNotificationManager core.EmailNotificationManager,
	postMergeConfigStore core.PostMergeConfigStore,
	logger lumber.Logger) gin.HandlerFunc

HandleCreate creates a new repository

func HandleCreateRepoSettings

func HandleCreateRepoSettings(
	userStore core.GitUserStore,
	repoStore core.RepoStore,
	logger lumber.Logger) gin.HandlerFunc

HandleCreateRepoSettings is the handler for creating repo settings.

func HandleList

func HandleList(
	repoService core.RepositoryService,
	userStore core.GitUserStore,
	tokenHandler core.GitTokenHandler,
	logger lumber.Logger,
) gin.HandlerFunc

HandleList lists the user repositories

func HandleListActive

func HandleListActive(
	userStore core.GitUserStore,
	repoStore core.RepoStore,
	logger lumber.Logger) gin.HandlerFunc

HandleListActive return active repos for a user (Handling graph data also)

func HandleListBranch

func HandleListBranch(
	branchStore core.BranchStore,
	logger lumber.Logger) gin.HandlerFunc

HandleListBranch lists the branches of a repository

func HandleListBranches

func HandleListBranches(
	repoService core.RepositoryService,
	userStore core.GitUserStore,
	tokenHandler core.GitTokenHandler,
	logger lumber.Logger,
) gin.HandlerFunc

HandleListBranches lists the branches of a repositories

func HandleListRepoSettings

func HandleListRepoSettings(
	userStore core.GitUserStore,
	repoStore core.RepoStore,
	logger lumber.Logger) gin.HandlerFunc

HandleListRepoSettings is the handler for listing repo settings.

func HandleRemoveRepo

func HandleRemoveRepo(
	hookService core.HookService,
	userStore core.GitUserStore,
	repoStore core.RepoStore,
	tokenHandler core.GitTokenHandler,
	logger lumber.Logger) gin.HandlerFunc

HandleRemoveRepo is the handler for deactivating repo.

Types

type RepoInput

type RepoInput struct {
	Name        string       `json:"name"`
	Link        string       `json:"link"`
	TasFileName string       `json:"tas_file_name"`
	Namespace   string       `json:"namespace,omitempty"`
	JobView     core.JobView `json:"job_view,omitempty"`
}

RepoInput is request body when creating a new repository.

Jump to

Keyboard shortcuts

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