catalog

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package catalog is a generated GoMock package.

Index

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

func NewHandler(config *api.APIConfig, service Service, cockroachdbClient cockroachdb.Client) Handler

NewHandler returns a new rbac.Handler

func (*Handler) CreateCatalogEntity

func (h *Handler) CreateCatalogEntity(c *gin.Context)

func (*Handler) DeleteCatalogEntity

func (h *Handler) DeleteCatalogEntity(c *gin.Context)

func (*Handler) GetCatalogEntities

func (h *Handler) GetCatalogEntities(c *gin.Context)

func (*Handler) GetCatalogEntity

func (h *Handler) GetCatalogEntity(c *gin.Context)

func (*Handler) GetCatalogEntityKeys

func (h *Handler) GetCatalogEntityKeys(c *gin.Context)

func (*Handler) GetCatalogEntityLabels

func (h *Handler) GetCatalogEntityLabels(c *gin.Context)

func (*Handler) GetCatalogEntityParentKeys

func (h *Handler) GetCatalogEntityParentKeys(c *gin.Context)

func (*Handler) GetCatalogEntityParentValues

func (h *Handler) GetCatalogEntityParentValues(c *gin.Context)

func (*Handler) GetCatalogEntityValues

func (h *Handler) GetCatalogEntityValues(c *gin.Context)

func (*Handler) GetCatalogGroup

func (h *Handler) GetCatalogGroup(c *gin.Context)

func (*Handler) GetCatalogGroups

func (h *Handler) GetCatalogGroups(c *gin.Context)

func (*Handler) GetCatalogUser

func (h *Handler) GetCatalogUser(c *gin.Context)

func (*Handler) GetCatalogUsers

func (h *Handler) GetCatalogUsers(c *gin.Context)

func (*Handler) UpdateCatalogEntity

func (h *Handler) UpdateCatalogEntity(c *gin.Context)

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

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

func NewLoggingService(s Service) Service

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

func NewService(config *api.APIConfig, cockroachdbClient cockroachdb.Client) Service

NewService returns a github.Service to handle incoming webhook events

func NewTracingService

func NewTracingService(s Service) Service

NewTracingService returns a new instance of a tracing Service.

Jump to

Keyboard shortcuts

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