Documentation ¶
Overview ¶
Package catalog is a generated GoMock package.
Index ¶
- type Handler
- func (h *Handler) CreateCatalogEntity(c *gin.Context)
- func (h *Handler) DeleteCatalogEntity(c *gin.Context)
- func (h *Handler) GetCatalogEntities(c *gin.Context)
- func (h *Handler) GetCatalogEntity(c *gin.Context)
- func (h *Handler) GetCatalogEntityKeys(c *gin.Context)
- func (h *Handler) GetCatalogEntityLabels(c *gin.Context)
- func (h *Handler) GetCatalogEntityParentKeys(c *gin.Context)
- func (h *Handler) GetCatalogEntityParentValues(c *gin.Context)
- func (h *Handler) GetCatalogEntityValues(c *gin.Context)
- func (h *Handler) GetCatalogGroup(c *gin.Context)
- func (h *Handler) GetCatalogGroups(c *gin.Context)
- func (h *Handler) GetCatalogUser(c *gin.Context)
- func (h *Handler) GetCatalogUsers(c *gin.Context)
- func (h *Handler) UpdateCatalogEntity(c *gin.Context)
- type MockService
- func (m *MockService) CreateCatalogEntity(ctx context.Context, catalogEntity estafette_ci_contracts.CatalogEntity) (*estafette_ci_contracts.CatalogEntity, error)
- func (m *MockService) DeleteCatalogEntity(ctx context.Context, id string) error
- func (m *MockService) EXPECT() *MockServiceMockRecorder
- func (m *MockService) UpdateCatalogEntity(ctx context.Context, catalogEntity estafette_ci_contracts.CatalogEntity) error
- type MockServiceMockRecorder
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
NewHandler returns a new rbac.Handler
func (*Handler) CreateCatalogEntity ¶
func (*Handler) DeleteCatalogEntity ¶
func (*Handler) GetCatalogEntities ¶
func (*Handler) GetCatalogEntity ¶
func (*Handler) GetCatalogEntityKeys ¶
func (*Handler) GetCatalogEntityLabels ¶
func (*Handler) GetCatalogEntityParentKeys ¶
func (*Handler) GetCatalogEntityParentValues ¶
func (*Handler) GetCatalogEntityValues ¶
func (*Handler) GetCatalogGroup ¶
func (*Handler) GetCatalogGroups ¶
func (*Handler) GetCatalogUser ¶
func (*Handler) GetCatalogUsers ¶
func (*Handler) UpdateCatalogEntity ¶
type MockService ¶
type MockService struct {
// contains filtered or unexported fields
}
MockService is a mock of Service interface
func NewMockService ¶
func NewMockService(ctrl *gomock.Controller) *MockService
NewMockService creates a new mock instance
func (*MockService) CreateCatalogEntity ¶
func (m *MockService) CreateCatalogEntity(ctx context.Context, catalogEntity estafette_ci_contracts.CatalogEntity) (*estafette_ci_contracts.CatalogEntity, error)
CreateCatalogEntity mocks base method
func (*MockService) DeleteCatalogEntity ¶
func (m *MockService) DeleteCatalogEntity(ctx context.Context, id string) error
DeleteCatalogEntity mocks base method
func (*MockService) EXPECT ¶
func (m *MockService) EXPECT() *MockServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockService) UpdateCatalogEntity ¶
func (m *MockService) UpdateCatalogEntity(ctx context.Context, catalogEntity estafette_ci_contracts.CatalogEntity) error
UpdateCatalogEntity mocks base method
type MockServiceMockRecorder ¶
type MockServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockServiceMockRecorder is the mock recorder for MockService
func (*MockServiceMockRecorder) CreateCatalogEntity ¶
func (mr *MockServiceMockRecorder) CreateCatalogEntity(ctx, catalogEntity interface{}) *gomock.Call
CreateCatalogEntity indicates an expected call of CreateCatalogEntity
func (*MockServiceMockRecorder) DeleteCatalogEntity ¶
func (mr *MockServiceMockRecorder) DeleteCatalogEntity(ctx, id interface{}) *gomock.Call
DeleteCatalogEntity indicates an expected call of DeleteCatalogEntity
func (*MockServiceMockRecorder) UpdateCatalogEntity ¶
func (mr *MockServiceMockRecorder) UpdateCatalogEntity(ctx, catalogEntity interface{}) *gomock.Call
UpdateCatalogEntity indicates an expected call of UpdateCatalogEntity
type Service ¶
type Service interface { CreateCatalogEntity(ctx context.Context, catalogEntity contracts.CatalogEntity) (insertedCatalogEntity *contracts.CatalogEntity, err error) UpdateCatalogEntity(ctx context.Context, catalogEntity contracts.CatalogEntity) (err error) DeleteCatalogEntity(ctx context.Context, id string) (err error) }
Service handles http requests for role-based-access-control
func NewLoggingService ¶
NewLoggingService returns a new instance of a logging Service.
func NewMetricsService ¶
func NewMetricsService(s Service, requestCount metrics.Counter, requestLatency metrics.Histogram) Service
NewMetricsService returns a new instance of a metrics Service.
func NewService ¶
NewService returns a github.Service to handle incoming webhook events
func NewTracingService ¶
NewTracingService returns a new instance of a tracing Service.