Versions in this module Expand all Collapse all v0 v0.0.1 Oct 31, 2024 Changes in this version + var ErrNoManifest = errors.New("The repository has no manifest at the pushed commit") + var ErrNonCloneableEvent = errors.New("The event is not cloneable") + type Handler struct + func NewHandler(pubsubapiClient pubsubapi.Client, service Service) Handler + func (h *Handler) PostPubsubEvent(c *gin.Context) + type MockService struct + func NewMockService(ctrl *gomock.Controller) *MockService + func (m *MockService) CreateJobForCloudSourcePush(ctx context.Context, notification cloudsourceapi.PubSubNotification) error + func (m *MockService) EXPECT() *MockServiceMockRecorder + func (m *MockService) IsAllowedProject(ctx context.Context, notification cloudsourceapi.PubSubNotification) (bool, []*contracts.Organization) + type MockServiceMockRecorder struct + func (mr *MockServiceMockRecorder) CreateJobForCloudSourcePush(ctx, notification interface{}) *gomock.Call + func (mr *MockServiceMockRecorder) IsAllowedProject(ctx, notification interface{}) *gomock.Call + type Service interface + CreateJobForCloudSourcePush func(ctx context.Context, notification cloudsourceapi.PubSubNotification) (err error) + IsAllowedProject func(ctx context.Context, notification cloudsourceapi.PubSubNotification) (isAllowed bool, organizations []*contracts.Organization) + func NewLoggingService(s Service) Service + func NewMetricsService(s Service, requestCount metrics.Counter, requestLatency metrics.Histogram) Service + func NewService(config *api.APIConfig, cloudsourceapiClient cloudsourceapi.Client, ...) Service + func NewTracingService(s Service) Service