service

package
v15.11.13 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2023 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateRepository added in v15.6.0

func ValidateRepository(repository *gitalypb.Repository) error

ValidateRepository checks where the Repository is provided and all the required fields are set.

Types

type Dependencies

type Dependencies struct {
	Cfg                           config.Cfg
	GitalyHookManager             gitalyhook.Manager
	TransactionManager            transaction.Manager
	StorageLocator                storage.Locator
	ClientPool                    *client.Pool
	GitCmdFactory                 git.CommandFactory
	BackchannelRegistry           *backchannel.Registry
	GitlabClient                  gitlab.Client
	CatfileCache                  catfile.Cache
	DiskCache                     cache.Cache
	PackObjectsCache              streamcache.Cache
	PackObjectsConcurrencyTracker *gitalyhook.ConcurrencyTracker
	PackObjectsLimiter            limithandler.Limiter
	LimitHandler                  *limithandler.LimiterMiddleware
	Git2goExecutor                *git2go.Executor
	UpdaterWithHooks              *updateref.UpdaterWithHooks
	HousekeepingManager           housekeeping.Manager
}

Dependencies assembles set of components required by different kinds of services.

func (*Dependencies) GetBackchannelRegistry

func (dc *Dependencies) GetBackchannelRegistry() *backchannel.Registry

GetBackchannelRegistry returns a registry of the backchannels.

func (*Dependencies) GetCatfileCache

func (dc *Dependencies) GetCatfileCache() catfile.Cache

GetCatfileCache returns catfile cache.

func (*Dependencies) GetCfg

func (dc *Dependencies) GetCfg() config.Cfg

GetCfg returns service configuration.

func (*Dependencies) GetConnsPool

func (dc *Dependencies) GetConnsPool() *client.Pool

GetConnsPool returns gRPC connection pool.

func (*Dependencies) GetDiskCache

func (dc *Dependencies) GetDiskCache() cache.Cache

GetDiskCache returns the disk cache.

func (*Dependencies) GetGit2goExecutor

func (dc *Dependencies) GetGit2goExecutor() *git2go.Executor

GetGit2goExecutor returns the git2go executor.

func (*Dependencies) GetGitCmdFactory

func (dc *Dependencies) GetGitCmdFactory() git.CommandFactory

GetGitCmdFactory returns git commands factory.

func (*Dependencies) GetGitlabClient

func (dc *Dependencies) GetGitlabClient() gitlab.Client

GetGitlabClient returns client to access GitLab API.

func (*Dependencies) GetHookManager

func (dc *Dependencies) GetHookManager() gitalyhook.Manager

GetHookManager returns hook manager.

func (*Dependencies) GetHousekeepingManager

func (dc *Dependencies) GetHousekeepingManager() housekeeping.Manager

GetHousekeepingManager returns the housekeeping manager.

func (*Dependencies) GetLimitHandler

func (dc *Dependencies) GetLimitHandler() *limithandler.LimiterMiddleware

GetLimitHandler returns the RPC limit handler.

func (*Dependencies) GetLocator

func (dc *Dependencies) GetLocator() storage.Locator

GetLocator returns storage locator.

func (*Dependencies) GetPackObjectsCache

func (dc *Dependencies) GetPackObjectsCache() streamcache.Cache

GetPackObjectsCache returns the pack-objects cache.

func (*Dependencies) GetPackObjectsConcurrencyTracker added in v15.2.0

func (dc *Dependencies) GetPackObjectsConcurrencyTracker() *gitalyhook.ConcurrencyTracker

GetPackObjectsConcurrencyTracker returns the pack-objects cache.

func (*Dependencies) GetPackObjectsLimiter added in v15.6.0

func (dc *Dependencies) GetPackObjectsLimiter() limithandler.Limiter

GetPackObjectsLimiter returns the pack-objects limiter.

func (*Dependencies) GetTxManager

func (dc *Dependencies) GetTxManager() transaction.Manager

GetTxManager returns transaction manager.

func (*Dependencies) GetUpdaterWithHooks

func (dc *Dependencies) GetUpdaterWithHooks() *updateref.UpdaterWithHooks

GetUpdaterWithHooks returns the updater with hooks executor.

Jump to

Keyboard shortcuts

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