Documentation ¶
Index ¶
- type AppUserGroupRepositoryMock
- type AppUserRepositoryMock
- func (m *AppUserRepositoryMock) AddAppUser(ctx context.Context, operator domain.OwnerModel, ...) (domain.AppUserID, error)
- func (m *AppUserRepositoryMock) AddFirstOwner(ctx context.Context, operator domain.SystemOwnerModel, ...) (domain.AppUserID, error)
- func (m *AppUserRepositoryMock) AddSystemOwner(ctx context.Context, operator domain.SystemAdminModel, ...) (domain.AppUserID, error)
- func (m *AppUserRepositoryMock) FindAppUserByID(ctx context.Context, operator domain.AppUserModel, id domain.AppUserID) (service.AppUser, error)
- func (m *AppUserRepositoryMock) FindAppUserByLoginID(ctx context.Context, operator domain.AppUserModel, loginID string) (service.AppUser, error)
- func (m *AppUserRepositoryMock) FindOwnerByLoginID(ctx context.Context, operator domain.SystemOwnerModel, loginID string) (service.Owner, error)
- func (m *AppUserRepositoryMock) FindSystemOwnerByOrganizationID(ctx context.Context, operator domain.SystemAdminModel, ...) (service.SystemOwner, error)
- func (m *AppUserRepositoryMock) FindSystemOwnerByOrganizationName(ctx context.Context, operator domain.SystemAdminModel, organizationName string) (service.SystemOwner, error)
- type GroupUserRepositoryMock
- type OrganizationRepositoryMock
- func (m *OrganizationRepositoryMock) AddOrganization(ctx context.Context, operator domain.SystemAdminModel, ...) (domain.OrganizationID, error)
- func (m *OrganizationRepositoryMock) FindOrganizationByID(ctx context.Context, operator domain.SystemAdminModel, ...) (service.Organization, error)
- func (m *OrganizationRepositoryMock) FindOrganizationByName(ctx context.Context, operator domain.SystemAdminModel, name string) (service.Organization, error)
- func (m *OrganizationRepositoryMock) GetOrganization(ctx context.Context, operator domain.AppUserModel) (service.Organization, error)
- type RBACRepositoryyMock
- func (m *RBACRepositoryyMock) AddNamedGroupingPolicy(subject domain.RBACUser, object domain.RBACRole) error
- func (m *RBACRepositoryyMock) AddNamedPolicy(subject domain.RBACRole, object domain.RBACObject, action domain.RBACAction) error
- func (m *RBACRepositoryyMock) Init() error
- func (m *RBACRepositoryyMock) NewEnforcerWithRolesAndUsers(roles []domain.RBACRole, users []domain.RBACUser) (*casbin.Enforcer, error)
- type RepositoryFactoryMock
- func (m *RepositoryFactoryMock) NewAppUserGroupRepository() service.AppUserGroupRepository
- func (m *RepositoryFactoryMock) NewAppUserRepository() service.AppUserRepository
- func (m *RepositoryFactoryMock) NewGroupUserRepository() service.GroupUserRepository
- func (m *RepositoryFactoryMock) NewOrganizationRepository() service.OrganizationRepository
- func (m *RepositoryFactoryMock) NewRBACRepository() service.RBACRepository
- func (m *RepositoryFactoryMock) NewSpaceRepository() service.SpaceRepository
- func (m *RepositoryFactoryMock) NewUserSpaceRepository() service.UserSpaceRepository
- type SpaceRepositoryMock
- func (m *SpaceRepositoryMock) AddDefaultSpace(ctx context.Context, operator domain.SystemOwnerModel) (uint, error)
- func (m *SpaceRepositoryMock) AddPersonalSpace(ctx context.Context, operator domain.SystemOwnerModel, ...) (domain.SpaceID, error)
- func (m *SpaceRepositoryMock) AddSystemSpace(ctx context.Context, operator domain.SystemOwnerModel) (domain.SpaceID, error)
- func (m *SpaceRepositoryMock) FindDefaultSpace(ctx context.Context, operator domain.AppUserModel) (service.Space, error)
- func (m *SpaceRepositoryMock) FindPersonalSpace(ctx context.Context, operator domain.AppUserModel) (service.Space, error)
- func (m *SpaceRepositoryMock) FindSystemSpace(ctx context.Context, operator domain.AppUserModel) (service.Space, error)
- type UserSpaceRepositoryMock
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppUserGroupRepositoryMock ¶
func (*AppUserGroupRepositoryMock) AddPublicGroup ¶
func (m *AppUserGroupRepositoryMock) AddPublicGroup(ctx context.Context, operator domain.SystemOwnerModel) (domain.AppUserGroupID, error)
func (*AppUserGroupRepositoryMock) FindPublicGroup ¶
func (m *AppUserGroupRepositoryMock) FindPublicGroup(ctx context.Context, operator domain.SystemOwnerModel) (service.AppUserGroup, error)
type AppUserRepositoryMock ¶
func (*AppUserRepositoryMock) AddAppUser ¶
func (m *AppUserRepositoryMock) AddAppUser(ctx context.Context, operator domain.OwnerModel, param service.AppUserAddParameter) (domain.AppUserID, error)
func (*AppUserRepositoryMock) AddFirstOwner ¶
func (m *AppUserRepositoryMock) AddFirstOwner(ctx context.Context, operator domain.SystemOwnerModel, param service.FirstOwnerAddParameter) (domain.AppUserID, error)
func (*AppUserRepositoryMock) AddSystemOwner ¶
func (m *AppUserRepositoryMock) AddSystemOwner(ctx context.Context, operator domain.SystemAdminModel, organizationID domain.OrganizationID) (domain.AppUserID, error)
func (*AppUserRepositoryMock) FindAppUserByID ¶
func (m *AppUserRepositoryMock) FindAppUserByID(ctx context.Context, operator domain.AppUserModel, id domain.AppUserID) (service.AppUser, error)
func (*AppUserRepositoryMock) FindAppUserByLoginID ¶
func (m *AppUserRepositoryMock) FindAppUserByLoginID(ctx context.Context, operator domain.AppUserModel, loginID string) (service.AppUser, error)
func (*AppUserRepositoryMock) FindOwnerByLoginID ¶
func (m *AppUserRepositoryMock) FindOwnerByLoginID(ctx context.Context, operator domain.SystemOwnerModel, loginID string) (service.Owner, error)
func (*AppUserRepositoryMock) FindSystemOwnerByOrganizationID ¶
func (m *AppUserRepositoryMock) FindSystemOwnerByOrganizationID(ctx context.Context, operator domain.SystemAdminModel, organizationID domain.OrganizationID) (service.SystemOwner, error)
func (*AppUserRepositoryMock) FindSystemOwnerByOrganizationName ¶
func (m *AppUserRepositoryMock) FindSystemOwnerByOrganizationName(ctx context.Context, operator domain.SystemAdminModel, organizationName string) (service.SystemOwner, error)
type GroupUserRepositoryMock ¶
func (*GroupUserRepositoryMock) AddGroupUser ¶
func (m *GroupUserRepositoryMock) AddGroupUser(ctx context.Context, operator domain.AppUserModel, appUserGroupID domain.AppUserGroupID, appUserID domain.AppUserID) error
type OrganizationRepositoryMock ¶
func (*OrganizationRepositoryMock) AddOrganization ¶
func (m *OrganizationRepositoryMock) AddOrganization(ctx context.Context, operator domain.SystemAdminModel, param service.OrganizationAddParameter) (domain.OrganizationID, error)
func (*OrganizationRepositoryMock) FindOrganizationByID ¶
func (m *OrganizationRepositoryMock) FindOrganizationByID(ctx context.Context, operator domain.SystemAdminModel, id domain.OrganizationID) (service.Organization, error)
func (*OrganizationRepositoryMock) FindOrganizationByName ¶
func (m *OrganizationRepositoryMock) FindOrganizationByName(ctx context.Context, operator domain.SystemAdminModel, name string) (service.Organization, error)
func (*OrganizationRepositoryMock) GetOrganization ¶
func (m *OrganizationRepositoryMock) GetOrganization(ctx context.Context, operator domain.AppUserModel) (service.Organization, error)
type RBACRepositoryyMock ¶
func (*RBACRepositoryyMock) AddNamedGroupingPolicy ¶
func (*RBACRepositoryyMock) AddNamedPolicy ¶
func (m *RBACRepositoryyMock) AddNamedPolicy(subject domain.RBACRole, object domain.RBACObject, action domain.RBACAction) error
func (*RBACRepositoryyMock) Init ¶
func (m *RBACRepositoryyMock) Init() error
func (*RBACRepositoryyMock) NewEnforcerWithRolesAndUsers ¶
type RepositoryFactoryMock ¶
func (*RepositoryFactoryMock) NewAppUserGroupRepository ¶
func (m *RepositoryFactoryMock) NewAppUserGroupRepository() service.AppUserGroupRepository
func (*RepositoryFactoryMock) NewAppUserRepository ¶
func (m *RepositoryFactoryMock) NewAppUserRepository() service.AppUserRepository
func (*RepositoryFactoryMock) NewGroupUserRepository ¶
func (m *RepositoryFactoryMock) NewGroupUserRepository() service.GroupUserRepository
func (*RepositoryFactoryMock) NewOrganizationRepository ¶
func (m *RepositoryFactoryMock) NewOrganizationRepository() service.OrganizationRepository
func (*RepositoryFactoryMock) NewRBACRepository ¶
func (m *RepositoryFactoryMock) NewRBACRepository() service.RBACRepository
func (*RepositoryFactoryMock) NewSpaceRepository ¶
func (m *RepositoryFactoryMock) NewSpaceRepository() service.SpaceRepository
func (*RepositoryFactoryMock) NewUserSpaceRepository ¶
func (m *RepositoryFactoryMock) NewUserSpaceRepository() service.UserSpaceRepository
type SpaceRepositoryMock ¶
func (*SpaceRepositoryMock) AddDefaultSpace ¶
func (m *SpaceRepositoryMock) AddDefaultSpace(ctx context.Context, operator domain.SystemOwnerModel) (uint, error)
func (*SpaceRepositoryMock) AddPersonalSpace ¶
func (m *SpaceRepositoryMock) AddPersonalSpace(ctx context.Context, operator domain.SystemOwnerModel, appUser domain.AppUserModel) (domain.SpaceID, error)
func (*SpaceRepositoryMock) AddSystemSpace ¶
func (m *SpaceRepositoryMock) AddSystemSpace(ctx context.Context, operator domain.SystemOwnerModel) (domain.SpaceID, error)
func (*SpaceRepositoryMock) FindDefaultSpace ¶
func (m *SpaceRepositoryMock) FindDefaultSpace(ctx context.Context, operator domain.AppUserModel) (service.Space, error)
func (*SpaceRepositoryMock) FindPersonalSpace ¶
func (m *SpaceRepositoryMock) FindPersonalSpace(ctx context.Context, operator domain.AppUserModel) (service.Space, error)
func (*SpaceRepositoryMock) FindSystemSpace ¶
func (m *SpaceRepositoryMock) FindSystemSpace(ctx context.Context, operator domain.AppUserModel) (service.Space, error)
type UserSpaceRepositoryMock ¶
func (*UserSpaceRepositoryMock) Add ¶
func (m *UserSpaceRepositoryMock) Add(ctx context.Context, operator domain.AppUserModel, spaceID domain.SpaceID) error
Click to show internal directories.
Click to hide internal directories.