Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDirective ¶
func NewDirective(transact persistence.Transactioner, tenantService BusinessTenantMappingService, appService ApplicationService) *directive
NewDirective creates a directive object
Types ¶
type ApplicationService ¶
type ApplicationService interface {
ListAll(ctx context.Context) ([]*model.Application, error)
}
ApplicationService is responsible for the service-layer application operations.
type BusinessTenantMappingService ¶
type BusinessTenantMappingService interface { CreateTenantAccessForResource(ctx context.Context, tenantAccess *model.TenantAccess) error ListByParentAndType(ctx context.Context, parentID string, tenantType tenantpkg.Type) ([]*model.BusinessTenantMapping, error) ListByIDs(ctx context.Context, ids []string) ([]*model.BusinessTenantMapping, error) GetParentsRecursivelyByExternalTenant(ctx context.Context, externalTenant string) ([]*model.BusinessTenantMapping, error) GetTenantByID(ctx context.Context, id string) (*model.BusinessTenantMapping, error) }
BusinessTenantMappingService is responsible for the service-layer tenant operations.
Click to show internal directories.
Click to hide internal directories.