Documentation ¶
Index ¶
- func NewServiceContext(repos repository.Repositories, tm transaction.TransactionManager, ...) servicecontext.ServiceContext
- type Option
- func WithAdminConsoleService(s service.AdminConsoleService) Option
- func WithAuthenticationProviderService(s service.AuthenticationProviderService) Option
- func WithClusterService(s service.ClusterService) Option
- func WithNotificationService(s service.NotificationService) Option
- func WithTenantService(s service.TenantService) Option
- func WithUserService(s service.UserService) Option
- type ServiceFactory
- func (f *ServiceFactory) AdminConsoleService() service.AdminConsoleService
- func (f *ServiceFactory) AuthenticationProviderService() service.AuthenticationProviderService
- func (f *ServiceFactory) CheService() service.CheService
- func (f *ServiceFactory) ClusterService() service.ClusterService
- func (f *ServiceFactory) InvitationService() service.InvitationService
- func (f *ServiceFactory) LinkService() service.LinkService
- func (f *ServiceFactory) LogoutService() service.LogoutService
- func (f *ServiceFactory) NotificationService() service.NotificationService
- func (f *ServiceFactory) OSOSubscriptionService() service.OSOSubscriptionService
- func (f *ServiceFactory) OrganizationService() service.OrganizationService
- func (f *ServiceFactory) PermissionService() service.PermissionService
- func (f *ServiceFactory) PrivilegeCacheService() service.PrivilegeCacheService
- func (f *ServiceFactory) ResourceService() service.ResourceService
- func (f *ServiceFactory) RoleManagementService() service.RoleManagementService
- func (f *ServiceFactory) SpaceService() service.SpaceService
- func (f *ServiceFactory) TeamService() service.TeamService
- func (f *ServiceFactory) TenantService() service.TenantService
- func (f *ServiceFactory) TokenService() service.TokenService
- func (f *ServiceFactory) UserProfileService() service.UserProfileService
- func (f *ServiceFactory) UserService() service.UserService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewServiceContext ¶
func NewServiceContext(repos repository.Repositories, tm transaction.TransactionManager, config *configuration.ConfigurationData, wrappers factorymanager.FactoryWrappers, options ...Option) servicecontext.ServiceContext
Types ¶
type Option ¶
type Option func(f *ServiceFactory)
Option an option to configure the Service Factory
func WithAdminConsoleService ¶
func WithAdminConsoleService(s service.AdminConsoleService) Option
func WithAuthenticationProviderService ¶
func WithAuthenticationProviderService(s service.AuthenticationProviderService) Option
WithAuthenticationProviderService overrides the default function that returns the AuthenticationProviderService, so that instead, a mock implementation can be used
func WithClusterService ¶
func WithClusterService(s service.ClusterService) Option
func WithNotificationService ¶
func WithNotificationService(s service.NotificationService) Option
func WithTenantService ¶
func WithTenantService(s service.TenantService) Option
func WithUserService ¶
func WithUserService(s service.UserService) Option
WithUserService overrides the default function that returns the UserService, so that instead, a mock implementation can be used
type ServiceFactory ¶
type ServiceFactory struct {
// contains filtered or unexported fields
}
func NewServiceFactory ¶
func NewServiceFactory(producer servicecontext.ServiceContextProducer, config *configuration.ConfigurationData, options ...Option) *ServiceFactory
NewServiceFactory returns a new ServiceFactory which can be configured with the options to replace the default implementations of some services
func (*ServiceFactory) AdminConsoleService ¶
func (f *ServiceFactory) AdminConsoleService() service.AdminConsoleService
func (*ServiceFactory) AuthenticationProviderService ¶
func (f *ServiceFactory) AuthenticationProviderService() service.AuthenticationProviderService
func (*ServiceFactory) CheService ¶
func (f *ServiceFactory) CheService() service.CheService
func (*ServiceFactory) ClusterService ¶
func (f *ServiceFactory) ClusterService() service.ClusterService
func (*ServiceFactory) InvitationService ¶
func (f *ServiceFactory) InvitationService() service.InvitationService
func (*ServiceFactory) LinkService ¶
func (f *ServiceFactory) LinkService() service.LinkService
func (*ServiceFactory) LogoutService ¶
func (f *ServiceFactory) LogoutService() service.LogoutService
func (*ServiceFactory) NotificationService ¶
func (f *ServiceFactory) NotificationService() service.NotificationService
func (*ServiceFactory) OSOSubscriptionService ¶
func (f *ServiceFactory) OSOSubscriptionService() service.OSOSubscriptionService
func (*ServiceFactory) OrganizationService ¶
func (f *ServiceFactory) OrganizationService() service.OrganizationService
func (*ServiceFactory) PermissionService ¶
func (f *ServiceFactory) PermissionService() service.PermissionService
func (*ServiceFactory) PrivilegeCacheService ¶
func (f *ServiceFactory) PrivilegeCacheService() service.PrivilegeCacheService
func (*ServiceFactory) ResourceService ¶
func (f *ServiceFactory) ResourceService() service.ResourceService
func (*ServiceFactory) RoleManagementService ¶
func (f *ServiceFactory) RoleManagementService() service.RoleManagementService
func (*ServiceFactory) SpaceService ¶
func (f *ServiceFactory) SpaceService() service.SpaceService
func (*ServiceFactory) TeamService ¶
func (f *ServiceFactory) TeamService() service.TeamService
func (*ServiceFactory) TenantService ¶
func (f *ServiceFactory) TenantService() service.TenantService
func (*ServiceFactory) TokenService ¶
func (f *ServiceFactory) TokenService() service.TokenService
func (*ServiceFactory) UserProfileService ¶
func (f *ServiceFactory) UserProfileService() service.UserProfileService
func (*ServiceFactory) UserService ¶
func (f *ServiceFactory) UserService() service.UserService
Click to show internal directories.
Click to hide internal directories.