factory

package
v0.0.0-...-2d73068 Latest Latest
Warning

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

Go to latest
Published: May 13, 2020 License: Apache-2.0 Imports: 25 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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

Jump to

Keyboard shortcuts

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