Documentation ¶
Index ¶
- type CertMappingRepository
- func (_m *CertMappingRepository) Create(ctx context.Context, item *model.CertSubjectMapping) error
- func (_m *CertMappingRepository) Delete(ctx context.Context, id string) error
- func (_m *CertMappingRepository) DeleteByConsumerID(ctx context.Context, consumerID string) error
- func (_m *CertMappingRepository) Exists(ctx context.Context, id string) (bool, error)
- func (_m *CertMappingRepository) Get(ctx context.Context, id string) (*model.CertSubjectMapping, error)
- func (_m *CertMappingRepository) List(ctx context.Context, pageSize int, cursor string) (*model.CertSubjectMappingPage, error)
- func (_m *CertMappingRepository) ListAll(ctx context.Context) ([]*model.CertSubjectMapping, error)
- func (_m *CertMappingRepository) Update(ctx context.Context, _a1 *model.CertSubjectMapping) error
- type CertSubjectMappingService
- func (_m *CertSubjectMappingService) Create(ctx context.Context, in *model.CertSubjectMapping) (string, error)
- func (_m *CertSubjectMappingService) Delete(ctx context.Context, id string) error
- func (_m *CertSubjectMappingService) Exists(ctx context.Context, id string) (bool, error)
- func (_m *CertSubjectMappingService) Get(ctx context.Context, id string) (*model.CertSubjectMapping, error)
- func (_m *CertSubjectMappingService) List(ctx context.Context, pageSize int, cursor string) (*model.CertSubjectMappingPage, error)
- func (_m *CertSubjectMappingService) Update(ctx context.Context, in *model.CertSubjectMapping) error
- type Converter
- func (_m *Converter) FromGraphql(id string, in graphql.CertificateSubjectMappingInput) *model.CertSubjectMapping
- func (_m *Converter) MultipleToGraphQL(in []*model.CertSubjectMapping) []*graphql.CertificateSubjectMapping
- func (_m *Converter) ToGraphQL(in *model.CertSubjectMapping) *graphql.CertificateSubjectMapping
- type EntityConverter
- type UIDService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CertMappingRepository ¶
CertMappingRepository is an autogenerated mock type for the CertMappingRepository type
func NewCertMappingRepository ¶
func NewCertMappingRepository(t interface { mock.TestingT Cleanup(func()) }) *CertMappingRepository
NewCertMappingRepository creates a new instance of CertMappingRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*CertMappingRepository) Create ¶
func (_m *CertMappingRepository) Create(ctx context.Context, item *model.CertSubjectMapping) error
Create provides a mock function with given fields: ctx, item
func (*CertMappingRepository) Delete ¶
func (_m *CertMappingRepository) Delete(ctx context.Context, id string) error
Delete provides a mock function with given fields: ctx, id
func (*CertMappingRepository) DeleteByConsumerID ¶
func (_m *CertMappingRepository) DeleteByConsumerID(ctx context.Context, consumerID string) error
DeleteByConsumerID provides a mock function with given fields: ctx, consumerID
func (*CertMappingRepository) Get ¶
func (_m *CertMappingRepository) Get(ctx context.Context, id string) (*model.CertSubjectMapping, error)
Get provides a mock function with given fields: ctx, id
func (*CertMappingRepository) List ¶
func (_m *CertMappingRepository) List(ctx context.Context, pageSize int, cursor string) (*model.CertSubjectMappingPage, error)
List provides a mock function with given fields: ctx, pageSize, cursor
func (*CertMappingRepository) ListAll ¶
func (_m *CertMappingRepository) ListAll(ctx context.Context) ([]*model.CertSubjectMapping, error)
ListAll provides a mock function with given fields: ctx
func (*CertMappingRepository) Update ¶
func (_m *CertMappingRepository) Update(ctx context.Context, _a1 *model.CertSubjectMapping) error
Update provides a mock function with given fields: ctx, _a1
type CertSubjectMappingService ¶
CertSubjectMappingService is an autogenerated mock type for the CertSubjectMappingService type
func NewCertSubjectMappingService ¶
func NewCertSubjectMappingService(t interface { mock.TestingT Cleanup(func()) }) *CertSubjectMappingService
NewCertSubjectMappingService creates a new instance of CertSubjectMappingService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*CertSubjectMappingService) Create ¶
func (_m *CertSubjectMappingService) Create(ctx context.Context, in *model.CertSubjectMapping) (string, error)
Create provides a mock function with given fields: ctx, in
func (*CertSubjectMappingService) Delete ¶
func (_m *CertSubjectMappingService) Delete(ctx context.Context, id string) error
Delete provides a mock function with given fields: ctx, id
func (*CertSubjectMappingService) Exists ¶
Exists provides a mock function with given fields: ctx, id
func (*CertSubjectMappingService) Get ¶
func (_m *CertSubjectMappingService) Get(ctx context.Context, id string) (*model.CertSubjectMapping, error)
Get provides a mock function with given fields: ctx, id
func (*CertSubjectMappingService) List ¶
func (_m *CertSubjectMappingService) List(ctx context.Context, pageSize int, cursor string) (*model.CertSubjectMappingPage, error)
List provides a mock function with given fields: ctx, pageSize, cursor
func (*CertSubjectMappingService) Update ¶
func (_m *CertSubjectMappingService) Update(ctx context.Context, in *model.CertSubjectMapping) error
Update provides a mock function with given fields: ctx, in
type Converter ¶
Converter is an autogenerated mock type for the Converter type
func NewConverter ¶
NewConverter creates a new instance of Converter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Converter) FromGraphql ¶
func (_m *Converter) FromGraphql(id string, in graphql.CertificateSubjectMappingInput) *model.CertSubjectMapping
FromGraphql provides a mock function with given fields: id, in
func (*Converter) MultipleToGraphQL ¶
func (_m *Converter) MultipleToGraphQL(in []*model.CertSubjectMapping) []*graphql.CertificateSubjectMapping
MultipleToGraphQL provides a mock function with given fields: in
func (*Converter) ToGraphQL ¶
func (_m *Converter) ToGraphQL(in *model.CertSubjectMapping) *graphql.CertificateSubjectMapping
ToGraphQL provides a mock function with given fields: in
type EntityConverter ¶
EntityConverter is an autogenerated mock type for the entityConverter type
func NewEntityConverter ¶
func NewEntityConverter(t interface { mock.TestingT Cleanup(func()) }) *EntityConverter
NewEntityConverter creates a new instance of EntityConverter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*EntityConverter) FromEntity ¶
func (_m *EntityConverter) FromEntity(entity *certsubjectmapping.Entity) (*model.CertSubjectMapping, error)
FromEntity provides a mock function with given fields: entity
func (*EntityConverter) ToEntity ¶
func (_m *EntityConverter) ToEntity(in *model.CertSubjectMapping) (*certsubjectmapping.Entity, error)
ToEntity provides a mock function with given fields: in
type UIDService ¶
UIDService is an autogenerated mock type for the UIDService type
func NewUIDService ¶
func NewUIDService(t interface { mock.TestingT Cleanup(func()) }) *UIDService
NewUIDService creates a new instance of UIDService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*UIDService) Generate ¶
func (_m *UIDService) Generate() string
Generate provides a mock function with given fields: