Documentation ¶
Index ¶
- type BusinessTenantMappingConverter
- func (_m *BusinessTenantMappingConverter) InputFromGraphQL(ctx context.Context, tnt graphql.BusinessTenantMappingInput, ...) (model.BusinessTenantMappingInput, error)
- func (_m *BusinessTenantMappingConverter) MultipleInputFromGraphQL(ctx context.Context, in []*graphql.BusinessTenantMappingInput, ...) ([]model.BusinessTenantMappingInput, error)
- func (_m *BusinessTenantMappingConverter) MultipleToGraphQL(in []*model.BusinessTenantMapping) []*graphql.Tenant
- func (_m *BusinessTenantMappingConverter) TenantAccessFromEntity(in *repo.TenantAccess) *model.TenantAccess
- func (_m *BusinessTenantMappingConverter) TenantAccessInputFromGraphQL(in graphql.TenantAccessInput) (*model.TenantAccess, error)
- func (_m *BusinessTenantMappingConverter) TenantAccessToEntity(in *model.TenantAccess) *repo.TenantAccess
- func (_m *BusinessTenantMappingConverter) TenantAccessToGraphQL(in *model.TenantAccess) (*graphql.TenantAccess, error)
- func (_m *BusinessTenantMappingConverter) ToGraphQL(in *model.BusinessTenantMapping) *graphql.Tenant
- type BusinessTenantMappingService
- func (_m *BusinessTenantMappingService) CreateTenantAccessForResourceRecursively(ctx context.Context, tenantAccess *model.TenantAccess) error
- func (_m *BusinessTenantMappingService) DeleteMany(ctx context.Context, externalTenantIDs []string) error
- func (_m *BusinessTenantMappingService) DeleteTenantAccessForResourceRecursively(ctx context.Context, tenantAccess *model.TenantAccess) error
- func (_m *BusinessTenantMappingService) GetInternalTenant(ctx context.Context, externalTenant string) (string, error)
- func (_m *BusinessTenantMappingService) GetLowestOwnerForResource(ctx context.Context, resourceType resource.Type, objectID string) (string, error)
- func (_m *BusinessTenantMappingService) GetParentsRecursivelyByExternalTenant(ctx context.Context, externalTenant string) ([]*model.BusinessTenantMapping, error)
- func (_m *BusinessTenantMappingService) GetTenantAccessForResource(ctx context.Context, tenantID string, resourceID string, ...) (*model.TenantAccess, error)
- func (_m *BusinessTenantMappingService) GetTenantByExternalID(ctx context.Context, externalID string) (*model.BusinessTenantMapping, error)
- func (_m *BusinessTenantMappingService) GetTenantByID(ctx context.Context, id string) (*model.BusinessTenantMapping, error)
- func (_m *BusinessTenantMappingService) List(ctx context.Context) ([]*model.BusinessTenantMapping, error)
- func (_m *BusinessTenantMappingService) ListLabels(ctx context.Context, tenantID string) (map[string]*model.Label, error)
- func (_m *BusinessTenantMappingService) ListPageBySearchTerm(ctx context.Context, searchTerm string, pageSize int, cursor string) (*model.BusinessTenantMappingPage, error)
- func (_m *BusinessTenantMappingService) Update(ctx context.Context, id string, tenantInput model.BusinessTenantMappingInput) error
- func (_m *BusinessTenantMappingService) UpsertLabel(ctx context.Context, tenantID string, key string, value interface{}) error
- func (_m *BusinessTenantMappingService) UpsertMany(ctx context.Context, tenantInputs ...model.BusinessTenantMappingInput) (map[string]pkgtenant.Type, error)
- func (_m *BusinessTenantMappingService) UpsertSingle(ctx context.Context, tenantInput model.BusinessTenantMappingInput) (string, error)
- type Client
- type Converter
- type Fetcher
- type LabelRepository
- type LabelUpsertService
- type TenantMappingRepository
- func (_m *TenantMappingRepository) DeleteByExternalTenant(ctx context.Context, externalTenant string) error
- func (_m *TenantMappingRepository) Exists(ctx context.Context, id string) (bool, error)
- func (_m *TenantMappingRepository) ExistsByExternalTenant(ctx context.Context, externalTenant string) (bool, error)
- func (_m *TenantMappingRepository) Get(ctx context.Context, id string) (*model.BusinessTenantMapping, error)
- func (_m *TenantMappingRepository) GetByExternalTenant(ctx context.Context, externalTenant string) (*model.BusinessTenantMapping, error)
- func (_m *TenantMappingRepository) GetLowestOwnerForResource(ctx context.Context, resourceType resource.Type, objectID string) (string, error)
- func (_m *TenantMappingRepository) GetParentsRecursivelyByExternalTenant(ctx context.Context, externalTenant string) ([]*model.BusinessTenantMapping, error)
- func (_m *TenantMappingRepository) List(ctx context.Context) ([]*model.BusinessTenantMapping, error)
- func (_m *TenantMappingRepository) ListByExternalTenants(ctx context.Context, externalTenant []string) ([]*model.BusinessTenantMapping, error)
- func (_m *TenantMappingRepository) ListByIds(ctx context.Context, ids []string) ([]*model.BusinessTenantMapping, error)
- func (_m *TenantMappingRepository) ListByIdsAndType(ctx context.Context, ids []string, tenantType pkgtenant.Type) ([]*model.BusinessTenantMapping, error)
- func (_m *TenantMappingRepository) ListByParentAndType(ctx context.Context, parentID string, tenantType pkgtenant.Type) ([]*model.BusinessTenantMapping, error)
- func (_m *TenantMappingRepository) ListByType(ctx context.Context, tenantType pkgtenant.Type) ([]*model.BusinessTenantMapping, error)
- func (_m *TenantMappingRepository) ListPageBySearchTerm(ctx context.Context, searchTerm string, pageSize int, cursor string) (*model.BusinessTenantMappingPage, error)
- func (_m *TenantMappingRepository) UnsafeCreate(ctx context.Context, item model.BusinessTenantMapping) (string, error)
- func (_m *TenantMappingRepository) Update(ctx context.Context, _a1 *model.BusinessTenantMapping) error
- func (_m *TenantMappingRepository) Upsert(ctx context.Context, item model.BusinessTenantMapping) (string, error)
- type UIDService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BusinessTenantMappingConverter ¶
BusinessTenantMappingConverter is an autogenerated mock type for the BusinessTenantMappingConverter type
func NewBusinessTenantMappingConverter ¶
func NewBusinessTenantMappingConverter(t interface { mock.TestingT Cleanup(func()) }) *BusinessTenantMappingConverter
NewBusinessTenantMappingConverter creates a new instance of BusinessTenantMappingConverter. 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 (*BusinessTenantMappingConverter) InputFromGraphQL ¶
func (_m *BusinessTenantMappingConverter) InputFromGraphQL(ctx context.Context, tnt graphql.BusinessTenantMappingInput, externalTenantToType map[string]string, retrieveTenantTypeFn func(context.Context, string) (string, error)) (model.BusinessTenantMappingInput, error)
InputFromGraphQL provides a mock function with given fields: ctx, tnt, externalTenantToType, retrieveTenantTypeFn
func (*BusinessTenantMappingConverter) MultipleInputFromGraphQL ¶
func (_m *BusinessTenantMappingConverter) MultipleInputFromGraphQL(ctx context.Context, in []*graphql.BusinessTenantMappingInput, retrieveTenantTypeFn func(context.Context, string) (string, error)) ([]model.BusinessTenantMappingInput, error)
MultipleInputFromGraphQL provides a mock function with given fields: ctx, in, retrieveTenantTypeFn
func (*BusinessTenantMappingConverter) MultipleToGraphQL ¶
func (_m *BusinessTenantMappingConverter) MultipleToGraphQL(in []*model.BusinessTenantMapping) []*graphql.Tenant
MultipleToGraphQL provides a mock function with given fields: in
func (*BusinessTenantMappingConverter) TenantAccessFromEntity ¶
func (_m *BusinessTenantMappingConverter) TenantAccessFromEntity(in *repo.TenantAccess) *model.TenantAccess
TenantAccessFromEntity provides a mock function with given fields: in
func (*BusinessTenantMappingConverter) TenantAccessInputFromGraphQL ¶
func (_m *BusinessTenantMappingConverter) TenantAccessInputFromGraphQL(in graphql.TenantAccessInput) (*model.TenantAccess, error)
TenantAccessInputFromGraphQL provides a mock function with given fields: in
func (*BusinessTenantMappingConverter) TenantAccessToEntity ¶
func (_m *BusinessTenantMappingConverter) TenantAccessToEntity(in *model.TenantAccess) *repo.TenantAccess
TenantAccessToEntity provides a mock function with given fields: in
func (*BusinessTenantMappingConverter) TenantAccessToGraphQL ¶
func (_m *BusinessTenantMappingConverter) TenantAccessToGraphQL(in *model.TenantAccess) (*graphql.TenantAccess, error)
TenantAccessToGraphQL provides a mock function with given fields: in
func (*BusinessTenantMappingConverter) ToGraphQL ¶
func (_m *BusinessTenantMappingConverter) ToGraphQL(in *model.BusinessTenantMapping) *graphql.Tenant
ToGraphQL provides a mock function with given fields: in
type BusinessTenantMappingService ¶
BusinessTenantMappingService is an autogenerated mock type for the BusinessTenantMappingService type
func NewBusinessTenantMappingService ¶
func NewBusinessTenantMappingService(t interface { mock.TestingT Cleanup(func()) }) *BusinessTenantMappingService
NewBusinessTenantMappingService creates a new instance of BusinessTenantMappingService. 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 (*BusinessTenantMappingService) CreateTenantAccessForResourceRecursively ¶
func (_m *BusinessTenantMappingService) CreateTenantAccessForResourceRecursively(ctx context.Context, tenantAccess *model.TenantAccess) error
CreateTenantAccessForResourceRecursively provides a mock function with given fields: ctx, tenantAccess
func (*BusinessTenantMappingService) DeleteMany ¶
func (_m *BusinessTenantMappingService) DeleteMany(ctx context.Context, externalTenantIDs []string) error
DeleteMany provides a mock function with given fields: ctx, externalTenantIDs
func (*BusinessTenantMappingService) DeleteTenantAccessForResourceRecursively ¶
func (_m *BusinessTenantMappingService) DeleteTenantAccessForResourceRecursively(ctx context.Context, tenantAccess *model.TenantAccess) error
DeleteTenantAccessForResourceRecursively provides a mock function with given fields: ctx, tenantAccess
func (*BusinessTenantMappingService) GetInternalTenant ¶
func (_m *BusinessTenantMappingService) GetInternalTenant(ctx context.Context, externalTenant string) (string, error)
GetInternalTenant provides a mock function with given fields: ctx, externalTenant
func (*BusinessTenantMappingService) GetLowestOwnerForResource ¶
func (_m *BusinessTenantMappingService) GetLowestOwnerForResource(ctx context.Context, resourceType resource.Type, objectID string) (string, error)
GetLowestOwnerForResource provides a mock function with given fields: ctx, resourceType, objectID
func (*BusinessTenantMappingService) GetParentsRecursivelyByExternalTenant ¶
func (_m *BusinessTenantMappingService) GetParentsRecursivelyByExternalTenant(ctx context.Context, externalTenant string) ([]*model.BusinessTenantMapping, error)
GetParentsRecursivelyByExternalTenant provides a mock function with given fields: ctx, externalTenant
func (*BusinessTenantMappingService) GetTenantAccessForResource ¶
func (_m *BusinessTenantMappingService) GetTenantAccessForResource(ctx context.Context, tenantID string, resourceID string, resourceType resource.Type) (*model.TenantAccess, error)
GetTenantAccessForResource provides a mock function with given fields: ctx, tenantID, resourceID, resourceType
func (*BusinessTenantMappingService) GetTenantByExternalID ¶
func (_m *BusinessTenantMappingService) GetTenantByExternalID(ctx context.Context, externalID string) (*model.BusinessTenantMapping, error)
GetTenantByExternalID provides a mock function with given fields: ctx, externalID
func (*BusinessTenantMappingService) GetTenantByID ¶
func (_m *BusinessTenantMappingService) GetTenantByID(ctx context.Context, id string) (*model.BusinessTenantMapping, error)
GetTenantByID provides a mock function with given fields: ctx, id
func (*BusinessTenantMappingService) List ¶
func (_m *BusinessTenantMappingService) List(ctx context.Context) ([]*model.BusinessTenantMapping, error)
List provides a mock function with given fields: ctx
func (*BusinessTenantMappingService) ListLabels ¶
func (_m *BusinessTenantMappingService) ListLabels(ctx context.Context, tenantID string) (map[string]*model.Label, error)
ListLabels provides a mock function with given fields: ctx, tenantID
func (*BusinessTenantMappingService) ListPageBySearchTerm ¶
func (_m *BusinessTenantMappingService) ListPageBySearchTerm(ctx context.Context, searchTerm string, pageSize int, cursor string) (*model.BusinessTenantMappingPage, error)
ListPageBySearchTerm provides a mock function with given fields: ctx, searchTerm, pageSize, cursor
func (*BusinessTenantMappingService) Update ¶
func (_m *BusinessTenantMappingService) Update(ctx context.Context, id string, tenantInput model.BusinessTenantMappingInput) error
Update provides a mock function with given fields: ctx, id, tenantInput
func (*BusinessTenantMappingService) UpsertLabel ¶
func (_m *BusinessTenantMappingService) UpsertLabel(ctx context.Context, tenantID string, key string, value interface{}) error
UpsertLabel provides a mock function with given fields: ctx, tenantID, key, value
func (*BusinessTenantMappingService) UpsertMany ¶
func (_m *BusinessTenantMappingService) UpsertMany(ctx context.Context, tenantInputs ...model.BusinessTenantMappingInput) (map[string]pkgtenant.Type, error)
UpsertMany provides a mock function with given fields: ctx, tenantInputs
func (*BusinessTenantMappingService) UpsertSingle ¶
func (_m *BusinessTenantMappingService) UpsertSingle(ctx context.Context, tenantInput model.BusinessTenantMappingInput) (string, error)
UpsertSingle provides a mock function with given fields: ctx, tenantInput
type Client ¶
Client is an autogenerated mock type for the Client type
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) FromEntity ¶
func (_m *Converter) FromEntity(in *tenant.Entity) *model.BusinessTenantMapping
FromEntity provides a mock function with given fields: in
type Fetcher ¶
Fetcher is an autogenerated mock type for the Fetcher type
func NewFetcher ¶
NewFetcher creates a new instance of Fetcher. 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.
type LabelRepository ¶
LabelRepository is an autogenerated mock type for the LabelRepository type
func NewLabelRepository ¶
func NewLabelRepository(t interface { mock.TestingT Cleanup(func()) }) *LabelRepository
NewLabelRepository creates a new instance of LabelRepository. 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 (*LabelRepository) ListForObject ¶
func (_m *LabelRepository) ListForObject(ctx context.Context, _a1 string, objectType model.LabelableObject, objectID string) (map[string]*model.Label, error)
ListForObject provides a mock function with given fields: ctx, _a1, objectType, objectID
type LabelUpsertService ¶
LabelUpsertService is an autogenerated mock type for the LabelUpsertService type
func NewLabelUpsertService ¶
func NewLabelUpsertService(t interface { mock.TestingT Cleanup(func()) }) *LabelUpsertService
NewLabelUpsertService creates a new instance of LabelUpsertService. 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 (*LabelUpsertService) UpsertLabel ¶
func (_m *LabelUpsertService) UpsertLabel(ctx context.Context, _a1 string, labelInput *model.LabelInput) error
UpsertLabel provides a mock function with given fields: ctx, _a1, labelInput
type TenantMappingRepository ¶
TenantMappingRepository is an autogenerated mock type for the TenantMappingRepository type
func NewTenantMappingRepository ¶
func NewTenantMappingRepository(t interface { mock.TestingT Cleanup(func()) }) *TenantMappingRepository
NewTenantMappingRepository creates a new instance of TenantMappingRepository. 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 (*TenantMappingRepository) DeleteByExternalTenant ¶
func (_m *TenantMappingRepository) DeleteByExternalTenant(ctx context.Context, externalTenant string) error
DeleteByExternalTenant provides a mock function with given fields: ctx, externalTenant
func (*TenantMappingRepository) ExistsByExternalTenant ¶
func (_m *TenantMappingRepository) ExistsByExternalTenant(ctx context.Context, externalTenant string) (bool, error)
ExistsByExternalTenant provides a mock function with given fields: ctx, externalTenant
func (*TenantMappingRepository) Get ¶
func (_m *TenantMappingRepository) Get(ctx context.Context, id string) (*model.BusinessTenantMapping, error)
Get provides a mock function with given fields: ctx, id
func (*TenantMappingRepository) GetByExternalTenant ¶
func (_m *TenantMappingRepository) GetByExternalTenant(ctx context.Context, externalTenant string) (*model.BusinessTenantMapping, error)
GetByExternalTenant provides a mock function with given fields: ctx, externalTenant
func (*TenantMappingRepository) GetLowestOwnerForResource ¶
func (_m *TenantMappingRepository) GetLowestOwnerForResource(ctx context.Context, resourceType resource.Type, objectID string) (string, error)
GetLowestOwnerForResource provides a mock function with given fields: ctx, resourceType, objectID
func (*TenantMappingRepository) GetParentsRecursivelyByExternalTenant ¶
func (_m *TenantMappingRepository) GetParentsRecursivelyByExternalTenant(ctx context.Context, externalTenant string) ([]*model.BusinessTenantMapping, error)
GetParentsRecursivelyByExternalTenant provides a mock function with given fields: ctx, externalTenant
func (*TenantMappingRepository) List ¶
func (_m *TenantMappingRepository) List(ctx context.Context) ([]*model.BusinessTenantMapping, error)
List provides a mock function with given fields: ctx
func (*TenantMappingRepository) ListByExternalTenants ¶
func (_m *TenantMappingRepository) ListByExternalTenants(ctx context.Context, externalTenant []string) ([]*model.BusinessTenantMapping, error)
ListByExternalTenants provides a mock function with given fields: ctx, externalTenant
func (*TenantMappingRepository) ListByIds ¶
func (_m *TenantMappingRepository) ListByIds(ctx context.Context, ids []string) ([]*model.BusinessTenantMapping, error)
ListByIds provides a mock function with given fields: ctx, ids
func (*TenantMappingRepository) ListByIdsAndType ¶
func (_m *TenantMappingRepository) ListByIdsAndType(ctx context.Context, ids []string, tenantType pkgtenant.Type) ([]*model.BusinessTenantMapping, error)
ListByIdsAndType provides a mock function with given fields: ctx, ids, tenantType
func (*TenantMappingRepository) ListByParentAndType ¶
func (_m *TenantMappingRepository) ListByParentAndType(ctx context.Context, parentID string, tenantType pkgtenant.Type) ([]*model.BusinessTenantMapping, error)
ListByParentAndType provides a mock function with given fields: ctx, parentID, tenantType
func (*TenantMappingRepository) ListByType ¶
func (_m *TenantMappingRepository) ListByType(ctx context.Context, tenantType pkgtenant.Type) ([]*model.BusinessTenantMapping, error)
ListByType provides a mock function with given fields: ctx, tenantType
func (*TenantMappingRepository) ListPageBySearchTerm ¶
func (_m *TenantMappingRepository) ListPageBySearchTerm(ctx context.Context, searchTerm string, pageSize int, cursor string) (*model.BusinessTenantMappingPage, error)
ListPageBySearchTerm provides a mock function with given fields: ctx, searchTerm, pageSize, cursor
func (*TenantMappingRepository) UnsafeCreate ¶
func (_m *TenantMappingRepository) UnsafeCreate(ctx context.Context, item model.BusinessTenantMapping) (string, error)
UnsafeCreate provides a mock function with given fields: ctx, item
func (*TenantMappingRepository) Update ¶
func (_m *TenantMappingRepository) Update(ctx context.Context, _a1 *model.BusinessTenantMapping) error
Update provides a mock function with given fields: ctx, _a1
func (*TenantMappingRepository) Upsert ¶
func (_m *TenantMappingRepository) Upsert(ctx context.Context, item model.BusinessTenantMapping) (string, error)
Upsert provides a mock function with given fields: ctx, item
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: