MCPcopy
hub / github.com/argoproj/argo-cd / NewService

Function NewService

commitserver/commit/commit.go:32–37  ·  view source on GitHub ↗

NewService returns a new instance of the commit service.

(gitCredsStore git.CredsStore, metricsServer *metrics.Server)

Source from the content-addressed store, hash-verified

30
31// NewService returns a new instance of the commit service.
32func NewService(gitCredsStore git.CredsStore, metricsServer *metrics.Server) *Service {
33 return &Service{
34 metricsServer: metricsServer,
35 repoClientFactory: NewRepoClientFactory(gitCredsStore, metricsServer),
36 }
37}
38
39type hydratorMetadataFile struct {
40 RepoURL string `json:"repoURL,omitempty"`

Callers 2

NewServerFunction · 0.92
newServiceWithMocksFunction · 0.70

Calls 1

NewRepoClientFactoryFunction · 0.70

Tested by 1

newServiceWithMocksFunction · 0.56