Documentation
¶
Overview ¶
Package mocks contains mocks for testing purposes.
Index ¶
- type GroupsServiceClient
- type GroupsServiceClient_Expecter
- type GroupsServiceClient_RetrieveEntity_Call
- func (_c *GroupsServiceClient_RetrieveEntity_Call) Return(retrieveEntityRes *v1.RetrieveEntityRes, err error) *GroupsServiceClient_RetrieveEntity_Call
- func (_c *GroupsServiceClient_RetrieveEntity_Call) Run(...) *GroupsServiceClient_RetrieveEntity_Call
- func (_c *GroupsServiceClient_RetrieveEntity_Call) RunAndReturn(...) *GroupsServiceClient_RetrieveEntity_Call
- type Repository
- func (_mock *Repository) AddRoles(ctx context.Context, rps []roles.RoleProvision) ([]roles.RoleProvision, error)
- func (_mock *Repository) AssignParentGroup(ctx context.Context, parentGroupID string, groupIDs ...string) error
- func (_mock *Repository) ChangeStatus(ctx context.Context, group groups.Group) (groups.Group, error)
- func (_mock *Repository) Delete(ctx context.Context, groupID string) error
- func (_m *Repository) EXPECT() *Repository_Expecter
- func (_mock *Repository) ListEntityMembers(ctx context.Context, entityID string, pageQuery roles.MembersRolePageQuery) (roles.MembersRolePage, error)
- func (_mock *Repository) RemoveEntityMembers(ctx context.Context, entityID string, members []string) error
- func (_mock *Repository) RemoveMemberFromAllRoles(ctx context.Context, memberID string) error
- func (_mock *Repository) RemoveRoles(ctx context.Context, roleIDs []string) error
- func (_mock *Repository) RetrieveAll(ctx context.Context, pm groups.PageMeta) (groups.Page, error)
- func (_mock *Repository) RetrieveAllParentGroups(ctx context.Context, domainID string, userID string, groupID string, ...) (groups.Page, error)
- func (_mock *Repository) RetrieveAllRoles(ctx context.Context, entityID string, limit uint64, offset uint64) (roles.RolePage, error)
- func (_mock *Repository) RetrieveByID(ctx context.Context, id string) (groups.Group, error)
- func (_mock *Repository) RetrieveByIDAndUser(ctx context.Context, domainID string, userID string, groupID string) (groups.Group, error)
- func (_mock *Repository) RetrieveByIDWithRoles(ctx context.Context, groupID string, memberID string) (groups.Group, error)
- func (_mock *Repository) RetrieveByIDs(ctx context.Context, pm groups.PageMeta, ids ...string) (groups.Page, error)
- func (_mock *Repository) RetrieveChildrenGroups(ctx context.Context, domainID string, userID string, groupID string, ...) (groups.Page, error)
- func (_mock *Repository) RetrieveEntitiesRolesActionsMembers(ctx context.Context, entityIDs []string) ([]roles.EntityActionRole, []roles.EntityMemberRole, error)
- func (_mock *Repository) RetrieveEntityRole(ctx context.Context, entityID string, roleID string) (roles.Role, error)
- func (_mock *Repository) RetrieveHierarchy(ctx context.Context, domainID string, userID string, groupID string, ...) (groups.HierarchyPage, error)
- func (_mock *Repository) RetrieveRole(ctx context.Context, roleID string) (roles.Role, error)
- func (_mock *Repository) RetrieveUserGroups(ctx context.Context, domainID string, userID string, pm groups.PageMeta) (groups.Page, error)
- func (_mock *Repository) RoleAddActions(ctx context.Context, role roles.Role, actions []string) ([]string, error)
- func (_mock *Repository) RoleAddMembers(ctx context.Context, role roles.Role, members []string) ([]string, error)
- func (_mock *Repository) RoleCheckActionsExists(ctx context.Context, roleID string, actions []string) (bool, error)
- func (_mock *Repository) RoleCheckMembersExists(ctx context.Context, roleID string, members []string) (bool, error)
- func (_mock *Repository) RoleListActions(ctx context.Context, roleID string) ([]string, error)
- func (_mock *Repository) RoleListMembers(ctx context.Context, roleID string, limit uint64, offset uint64) (roles.MembersPage, error)
- func (_mock *Repository) RoleRemoveActions(ctx context.Context, role roles.Role, actions []string) error
- func (_mock *Repository) RoleRemoveAllActions(ctx context.Context, role roles.Role) error
- func (_mock *Repository) RoleRemoveAllMembers(ctx context.Context, role roles.Role) error
- func (_mock *Repository) RoleRemoveMembers(ctx context.Context, role roles.Role, members []string) error
- func (_mock *Repository) Save(ctx context.Context, g groups.Group) (groups.Group, error)
- func (_mock *Repository) UnassignAllChildrenGroups(ctx context.Context, id string) error
- func (_mock *Repository) UnassignParentGroup(ctx context.Context, parentGroupID string, groupIDs ...string) error
- func (_mock *Repository) Update(ctx context.Context, g groups.Group) (groups.Group, error)
- func (_mock *Repository) UpdateRole(ctx context.Context, ro roles.Role) (roles.Role, error)
- func (_mock *Repository) UpdateTags(ctx context.Context, g groups.Group) (groups.Group, error)
- type Repository_AddRoles_Call
- func (_c *Repository_AddRoles_Call) Return(roleProvisions []roles.RoleProvision, err error) *Repository_AddRoles_Call
- func (_c *Repository_AddRoles_Call) Run(run func(ctx context.Context, rps []roles.RoleProvision)) *Repository_AddRoles_Call
- func (_c *Repository_AddRoles_Call) RunAndReturn(...) *Repository_AddRoles_Call
- type Repository_AssignParentGroup_Call
- func (_c *Repository_AssignParentGroup_Call) Return(err error) *Repository_AssignParentGroup_Call
- func (_c *Repository_AssignParentGroup_Call) Run(run func(ctx context.Context, parentGroupID string, groupIDs ...string)) *Repository_AssignParentGroup_Call
- func (_c *Repository_AssignParentGroup_Call) RunAndReturn(run func(ctx context.Context, parentGroupID string, groupIDs ...string) error) *Repository_AssignParentGroup_Call
- type Repository_ChangeStatus_Call
- func (_c *Repository_ChangeStatus_Call) Return(group1 groups.Group, err error) *Repository_ChangeStatus_Call
- func (_c *Repository_ChangeStatus_Call) Run(run func(ctx context.Context, group groups.Group)) *Repository_ChangeStatus_Call
- func (_c *Repository_ChangeStatus_Call) RunAndReturn(run func(ctx context.Context, group groups.Group) (groups.Group, error)) *Repository_ChangeStatus_Call
- type Repository_Delete_Call
- func (_c *Repository_Delete_Call) Return(err error) *Repository_Delete_Call
- func (_c *Repository_Delete_Call) Run(run func(ctx context.Context, groupID string)) *Repository_Delete_Call
- func (_c *Repository_Delete_Call) RunAndReturn(run func(ctx context.Context, groupID string) error) *Repository_Delete_Call
- type Repository_Expecter
- func (_e *Repository_Expecter) AddRoles(ctx interface{}, rps interface{}) *Repository_AddRoles_Call
- func (_e *Repository_Expecter) AssignParentGroup(ctx interface{}, parentGroupID interface{}, groupIDs ...interface{}) *Repository_AssignParentGroup_Call
- func (_e *Repository_Expecter) ChangeStatus(ctx interface{}, group interface{}) *Repository_ChangeStatus_Call
- func (_e *Repository_Expecter) Delete(ctx interface{}, groupID interface{}) *Repository_Delete_Call
- func (_e *Repository_Expecter) ListEntityMembers(ctx interface{}, entityID interface{}, pageQuery interface{}) *Repository_ListEntityMembers_Call
- func (_e *Repository_Expecter) RemoveEntityMembers(ctx interface{}, entityID interface{}, members interface{}) *Repository_RemoveEntityMembers_Call
- func (_e *Repository_Expecter) RemoveMemberFromAllRoles(ctx interface{}, memberID interface{}) *Repository_RemoveMemberFromAllRoles_Call
- func (_e *Repository_Expecter) RemoveRoles(ctx interface{}, roleIDs interface{}) *Repository_RemoveRoles_Call
- func (_e *Repository_Expecter) RetrieveAll(ctx interface{}, pm interface{}) *Repository_RetrieveAll_Call
- func (_e *Repository_Expecter) RetrieveAllParentGroups(ctx interface{}, domainID interface{}, userID interface{}, groupID interface{}, ...) *Repository_RetrieveAllParentGroups_Call
- func (_e *Repository_Expecter) RetrieveAllRoles(ctx interface{}, entityID interface{}, limit interface{}, offset interface{}) *Repository_RetrieveAllRoles_Call
- func (_e *Repository_Expecter) RetrieveByID(ctx interface{}, id interface{}) *Repository_RetrieveByID_Call
- func (_e *Repository_Expecter) RetrieveByIDAndUser(ctx interface{}, domainID interface{}, userID interface{}, groupID interface{}) *Repository_RetrieveByIDAndUser_Call
- func (_e *Repository_Expecter) RetrieveByIDWithRoles(ctx interface{}, groupID interface{}, memberID interface{}) *Repository_RetrieveByIDWithRoles_Call
- func (_e *Repository_Expecter) RetrieveByIDs(ctx interface{}, pm interface{}, ids ...interface{}) *Repository_RetrieveByIDs_Call
- func (_e *Repository_Expecter) RetrieveChildrenGroups(ctx interface{}, domainID interface{}, userID interface{}, groupID interface{}, ...) *Repository_RetrieveChildrenGroups_Call
- func (_e *Repository_Expecter) RetrieveEntitiesRolesActionsMembers(ctx interface{}, entityIDs interface{}) *Repository_RetrieveEntitiesRolesActionsMembers_Call
- func (_e *Repository_Expecter) RetrieveEntityRole(ctx interface{}, entityID interface{}, roleID interface{}) *Repository_RetrieveEntityRole_Call
- func (_e *Repository_Expecter) RetrieveHierarchy(ctx interface{}, domainID interface{}, userID interface{}, groupID interface{}, ...) *Repository_RetrieveHierarchy_Call
- func (_e *Repository_Expecter) RetrieveRole(ctx interface{}, roleID interface{}) *Repository_RetrieveRole_Call
- func (_e *Repository_Expecter) RetrieveUserGroups(ctx interface{}, domainID interface{}, userID interface{}, pm interface{}) *Repository_RetrieveUserGroups_Call
- func (_e *Repository_Expecter) RoleAddActions(ctx interface{}, role interface{}, actions interface{}) *Repository_RoleAddActions_Call
- func (_e *Repository_Expecter) RoleAddMembers(ctx interface{}, role interface{}, members interface{}) *Repository_RoleAddMembers_Call
- func (_e *Repository_Expecter) RoleCheckActionsExists(ctx interface{}, roleID interface{}, actions interface{}) *Repository_RoleCheckActionsExists_Call
- func (_e *Repository_Expecter) RoleCheckMembersExists(ctx interface{}, roleID interface{}, members interface{}) *Repository_RoleCheckMembersExists_Call
- func (_e *Repository_Expecter) RoleListActions(ctx interface{}, roleID interface{}) *Repository_RoleListActions_Call
- func (_e *Repository_Expecter) RoleListMembers(ctx interface{}, roleID interface{}, limit interface{}, offset interface{}) *Repository_RoleListMembers_Call
- func (_e *Repository_Expecter) RoleRemoveActions(ctx interface{}, role interface{}, actions interface{}) *Repository_RoleRemoveActions_Call
- func (_e *Repository_Expecter) RoleRemoveAllActions(ctx interface{}, role interface{}) *Repository_RoleRemoveAllActions_Call
- func (_e *Repository_Expecter) RoleRemoveAllMembers(ctx interface{}, role interface{}) *Repository_RoleRemoveAllMembers_Call
- func (_e *Repository_Expecter) RoleRemoveMembers(ctx interface{}, role interface{}, members interface{}) *Repository_RoleRemoveMembers_Call
- func (_e *Repository_Expecter) Save(ctx interface{}, g interface{}) *Repository_Save_Call
- func (_e *Repository_Expecter) UnassignAllChildrenGroups(ctx interface{}, id interface{}) *Repository_UnassignAllChildrenGroups_Call
- func (_e *Repository_Expecter) UnassignParentGroup(ctx interface{}, parentGroupID interface{}, groupIDs ...interface{}) *Repository_UnassignParentGroup_Call
- func (_e *Repository_Expecter) Update(ctx interface{}, g interface{}) *Repository_Update_Call
- func (_e *Repository_Expecter) UpdateRole(ctx interface{}, ro interface{}) *Repository_UpdateRole_Call
- func (_e *Repository_Expecter) UpdateTags(ctx interface{}, g interface{}) *Repository_UpdateTags_Call
- type Repository_ListEntityMembers_Call
- func (_c *Repository_ListEntityMembers_Call) Return(membersRolePage roles.MembersRolePage, err error) *Repository_ListEntityMembers_Call
- func (_c *Repository_ListEntityMembers_Call) Run(...) *Repository_ListEntityMembers_Call
- func (_c *Repository_ListEntityMembers_Call) RunAndReturn(...) *Repository_ListEntityMembers_Call
- type Repository_RemoveEntityMembers_Call
- func (_c *Repository_RemoveEntityMembers_Call) Return(err error) *Repository_RemoveEntityMembers_Call
- func (_c *Repository_RemoveEntityMembers_Call) Run(run func(ctx context.Context, entityID string, members []string)) *Repository_RemoveEntityMembers_Call
- func (_c *Repository_RemoveEntityMembers_Call) RunAndReturn(run func(ctx context.Context, entityID string, members []string) error) *Repository_RemoveEntityMembers_Call
- type Repository_RemoveMemberFromAllRoles_Call
- func (_c *Repository_RemoveMemberFromAllRoles_Call) Return(err error) *Repository_RemoveMemberFromAllRoles_Call
- func (_c *Repository_RemoveMemberFromAllRoles_Call) Run(run func(ctx context.Context, memberID string)) *Repository_RemoveMemberFromAllRoles_Call
- func (_c *Repository_RemoveMemberFromAllRoles_Call) RunAndReturn(run func(ctx context.Context, memberID string) error) *Repository_RemoveMemberFromAllRoles_Call
- type Repository_RemoveRoles_Call
- func (_c *Repository_RemoveRoles_Call) Return(err error) *Repository_RemoveRoles_Call
- func (_c *Repository_RemoveRoles_Call) Run(run func(ctx context.Context, roleIDs []string)) *Repository_RemoveRoles_Call
- func (_c *Repository_RemoveRoles_Call) RunAndReturn(run func(ctx context.Context, roleIDs []string) error) *Repository_RemoveRoles_Call
- type Repository_RetrieveAllParentGroups_Call
- func (_c *Repository_RetrieveAllParentGroups_Call) Return(page groups.Page, err error) *Repository_RetrieveAllParentGroups_Call
- func (_c *Repository_RetrieveAllParentGroups_Call) Run(...) *Repository_RetrieveAllParentGroups_Call
- func (_c *Repository_RetrieveAllParentGroups_Call) RunAndReturn(...) *Repository_RetrieveAllParentGroups_Call
- type Repository_RetrieveAllRoles_Call
- func (_c *Repository_RetrieveAllRoles_Call) Return(rolePage roles.RolePage, err error) *Repository_RetrieveAllRoles_Call
- func (_c *Repository_RetrieveAllRoles_Call) Run(run func(ctx context.Context, entityID string, limit uint64, offset uint64)) *Repository_RetrieveAllRoles_Call
- func (_c *Repository_RetrieveAllRoles_Call) RunAndReturn(...) *Repository_RetrieveAllRoles_Call
- type Repository_RetrieveAll_Call
- func (_c *Repository_RetrieveAll_Call) Return(page groups.Page, err error) *Repository_RetrieveAll_Call
- func (_c *Repository_RetrieveAll_Call) Run(run func(ctx context.Context, pm groups.PageMeta)) *Repository_RetrieveAll_Call
- func (_c *Repository_RetrieveAll_Call) RunAndReturn(run func(ctx context.Context, pm groups.PageMeta) (groups.Page, error)) *Repository_RetrieveAll_Call
- type Repository_RetrieveByIDAndUser_Call
- func (_c *Repository_RetrieveByIDAndUser_Call) Return(group groups.Group, err error) *Repository_RetrieveByIDAndUser_Call
- func (_c *Repository_RetrieveByIDAndUser_Call) Run(run func(ctx context.Context, domainID string, userID string, groupID string)) *Repository_RetrieveByIDAndUser_Call
- func (_c *Repository_RetrieveByIDAndUser_Call) RunAndReturn(...) *Repository_RetrieveByIDAndUser_Call
- type Repository_RetrieveByIDWithRoles_Call
- func (_c *Repository_RetrieveByIDWithRoles_Call) Return(group groups.Group, err error) *Repository_RetrieveByIDWithRoles_Call
- func (_c *Repository_RetrieveByIDWithRoles_Call) Run(run func(ctx context.Context, groupID string, memberID string)) *Repository_RetrieveByIDWithRoles_Call
- func (_c *Repository_RetrieveByIDWithRoles_Call) RunAndReturn(...) *Repository_RetrieveByIDWithRoles_Call
- type Repository_RetrieveByID_Call
- func (_c *Repository_RetrieveByID_Call) Return(group groups.Group, err error) *Repository_RetrieveByID_Call
- func (_c *Repository_RetrieveByID_Call) Run(run func(ctx context.Context, id string)) *Repository_RetrieveByID_Call
- func (_c *Repository_RetrieveByID_Call) RunAndReturn(run func(ctx context.Context, id string) (groups.Group, error)) *Repository_RetrieveByID_Call
- type Repository_RetrieveByIDs_Call
- func (_c *Repository_RetrieveByIDs_Call) Return(page groups.Page, err error) *Repository_RetrieveByIDs_Call
- func (_c *Repository_RetrieveByIDs_Call) Run(run func(ctx context.Context, pm groups.PageMeta, ids ...string)) *Repository_RetrieveByIDs_Call
- func (_c *Repository_RetrieveByIDs_Call) RunAndReturn(...) *Repository_RetrieveByIDs_Call
- type Repository_RetrieveChildrenGroups_Call
- func (_c *Repository_RetrieveChildrenGroups_Call) Return(page groups.Page, err error) *Repository_RetrieveChildrenGroups_Call
- func (_c *Repository_RetrieveChildrenGroups_Call) Run(...) *Repository_RetrieveChildrenGroups_Call
- func (_c *Repository_RetrieveChildrenGroups_Call) RunAndReturn(...) *Repository_RetrieveChildrenGroups_Call
- type Repository_RetrieveEntitiesRolesActionsMembers_Call
- func (_c *Repository_RetrieveEntitiesRolesActionsMembers_Call) Return(entityActionRoles []roles.EntityActionRole, ...) *Repository_RetrieveEntitiesRolesActionsMembers_Call
- func (_c *Repository_RetrieveEntitiesRolesActionsMembers_Call) Run(run func(ctx context.Context, entityIDs []string)) *Repository_RetrieveEntitiesRolesActionsMembers_Call
- func (_c *Repository_RetrieveEntitiesRolesActionsMembers_Call) RunAndReturn(...) *Repository_RetrieveEntitiesRolesActionsMembers_Call
- type Repository_RetrieveEntityRole_Call
- func (_c *Repository_RetrieveEntityRole_Call) Return(role roles.Role, err error) *Repository_RetrieveEntityRole_Call
- func (_c *Repository_RetrieveEntityRole_Call) Run(run func(ctx context.Context, entityID string, roleID string)) *Repository_RetrieveEntityRole_Call
- func (_c *Repository_RetrieveEntityRole_Call) RunAndReturn(...) *Repository_RetrieveEntityRole_Call
- type Repository_RetrieveHierarchy_Call
- func (_c *Repository_RetrieveHierarchy_Call) Return(hierarchyPage groups.HierarchyPage, err error) *Repository_RetrieveHierarchy_Call
- func (_c *Repository_RetrieveHierarchy_Call) Run(...) *Repository_RetrieveHierarchy_Call
- func (_c *Repository_RetrieveHierarchy_Call) RunAndReturn(...) *Repository_RetrieveHierarchy_Call
- type Repository_RetrieveRole_Call
- func (_c *Repository_RetrieveRole_Call) Return(role roles.Role, err error) *Repository_RetrieveRole_Call
- func (_c *Repository_RetrieveRole_Call) Run(run func(ctx context.Context, roleID string)) *Repository_RetrieveRole_Call
- func (_c *Repository_RetrieveRole_Call) RunAndReturn(run func(ctx context.Context, roleID string) (roles.Role, error)) *Repository_RetrieveRole_Call
- type Repository_RetrieveUserGroups_Call
- func (_c *Repository_RetrieveUserGroups_Call) Return(page groups.Page, err error) *Repository_RetrieveUserGroups_Call
- func (_c *Repository_RetrieveUserGroups_Call) Run(...) *Repository_RetrieveUserGroups_Call
- func (_c *Repository_RetrieveUserGroups_Call) RunAndReturn(...) *Repository_RetrieveUserGroups_Call
- type Repository_RoleAddActions_Call
- func (_c *Repository_RoleAddActions_Call) Return(ops []string, err error) *Repository_RoleAddActions_Call
- func (_c *Repository_RoleAddActions_Call) Run(run func(ctx context.Context, role roles.Role, actions []string)) *Repository_RoleAddActions_Call
- func (_c *Repository_RoleAddActions_Call) RunAndReturn(...) *Repository_RoleAddActions_Call
- type Repository_RoleAddMembers_Call
- func (_c *Repository_RoleAddMembers_Call) Return(strings []string, err error) *Repository_RoleAddMembers_Call
- func (_c *Repository_RoleAddMembers_Call) Run(run func(ctx context.Context, role roles.Role, members []string)) *Repository_RoleAddMembers_Call
- func (_c *Repository_RoleAddMembers_Call) RunAndReturn(...) *Repository_RoleAddMembers_Call
- type Repository_RoleCheckActionsExists_Call
- func (_c *Repository_RoleCheckActionsExists_Call) Return(b bool, err error) *Repository_RoleCheckActionsExists_Call
- func (_c *Repository_RoleCheckActionsExists_Call) Run(run func(ctx context.Context, roleID string, actions []string)) *Repository_RoleCheckActionsExists_Call
- func (_c *Repository_RoleCheckActionsExists_Call) RunAndReturn(run func(ctx context.Context, roleID string, actions []string) (bool, error)) *Repository_RoleCheckActionsExists_Call
- type Repository_RoleCheckMembersExists_Call
- func (_c *Repository_RoleCheckMembersExists_Call) Return(b bool, err error) *Repository_RoleCheckMembersExists_Call
- func (_c *Repository_RoleCheckMembersExists_Call) Run(run func(ctx context.Context, roleID string, members []string)) *Repository_RoleCheckMembersExists_Call
- func (_c *Repository_RoleCheckMembersExists_Call) RunAndReturn(run func(ctx context.Context, roleID string, members []string) (bool, error)) *Repository_RoleCheckMembersExists_Call
- type Repository_RoleListActions_Call
- func (_c *Repository_RoleListActions_Call) Return(strings []string, err error) *Repository_RoleListActions_Call
- func (_c *Repository_RoleListActions_Call) Run(run func(ctx context.Context, roleID string)) *Repository_RoleListActions_Call
- func (_c *Repository_RoleListActions_Call) RunAndReturn(run func(ctx context.Context, roleID string) ([]string, error)) *Repository_RoleListActions_Call
- type Repository_RoleListMembers_Call
- func (_c *Repository_RoleListMembers_Call) Return(membersPage roles.MembersPage, err error) *Repository_RoleListMembers_Call
- func (_c *Repository_RoleListMembers_Call) Run(run func(ctx context.Context, roleID string, limit uint64, offset uint64)) *Repository_RoleListMembers_Call
- func (_c *Repository_RoleListMembers_Call) RunAndReturn(...) *Repository_RoleListMembers_Call
- type Repository_RoleRemoveActions_Call
- func (_c *Repository_RoleRemoveActions_Call) Return(err error) *Repository_RoleRemoveActions_Call
- func (_c *Repository_RoleRemoveActions_Call) Run(run func(ctx context.Context, role roles.Role, actions []string)) *Repository_RoleRemoveActions_Call
- func (_c *Repository_RoleRemoveActions_Call) RunAndReturn(run func(ctx context.Context, role roles.Role, actions []string) error) *Repository_RoleRemoveActions_Call
- type Repository_RoleRemoveAllActions_Call
- func (_c *Repository_RoleRemoveAllActions_Call) Return(err error) *Repository_RoleRemoveAllActions_Call
- func (_c *Repository_RoleRemoveAllActions_Call) Run(run func(ctx context.Context, role roles.Role)) *Repository_RoleRemoveAllActions_Call
- func (_c *Repository_RoleRemoveAllActions_Call) RunAndReturn(run func(ctx context.Context, role roles.Role) error) *Repository_RoleRemoveAllActions_Call
- type Repository_RoleRemoveAllMembers_Call
- func (_c *Repository_RoleRemoveAllMembers_Call) Return(err error) *Repository_RoleRemoveAllMembers_Call
- func (_c *Repository_RoleRemoveAllMembers_Call) Run(run func(ctx context.Context, role roles.Role)) *Repository_RoleRemoveAllMembers_Call
- func (_c *Repository_RoleRemoveAllMembers_Call) RunAndReturn(run func(ctx context.Context, role roles.Role) error) *Repository_RoleRemoveAllMembers_Call
- type Repository_RoleRemoveMembers_Call
- func (_c *Repository_RoleRemoveMembers_Call) Return(err error) *Repository_RoleRemoveMembers_Call
- func (_c *Repository_RoleRemoveMembers_Call) Run(run func(ctx context.Context, role roles.Role, members []string)) *Repository_RoleRemoveMembers_Call
- func (_c *Repository_RoleRemoveMembers_Call) RunAndReturn(run func(ctx context.Context, role roles.Role, members []string) error) *Repository_RoleRemoveMembers_Call
- type Repository_Save_Call
- func (_c *Repository_Save_Call) Return(group groups.Group, err error) *Repository_Save_Call
- func (_c *Repository_Save_Call) Run(run func(ctx context.Context, g groups.Group)) *Repository_Save_Call
- func (_c *Repository_Save_Call) RunAndReturn(run func(ctx context.Context, g groups.Group) (groups.Group, error)) *Repository_Save_Call
- type Repository_UnassignAllChildrenGroups_Call
- func (_c *Repository_UnassignAllChildrenGroups_Call) Return(err error) *Repository_UnassignAllChildrenGroups_Call
- func (_c *Repository_UnassignAllChildrenGroups_Call) Run(run func(ctx context.Context, id string)) *Repository_UnassignAllChildrenGroups_Call
- func (_c *Repository_UnassignAllChildrenGroups_Call) RunAndReturn(run func(ctx context.Context, id string) error) *Repository_UnassignAllChildrenGroups_Call
- type Repository_UnassignParentGroup_Call
- func (_c *Repository_UnassignParentGroup_Call) Return(err error) *Repository_UnassignParentGroup_Call
- func (_c *Repository_UnassignParentGroup_Call) Run(run func(ctx context.Context, parentGroupID string, groupIDs ...string)) *Repository_UnassignParentGroup_Call
- func (_c *Repository_UnassignParentGroup_Call) RunAndReturn(run func(ctx context.Context, parentGroupID string, groupIDs ...string) error) *Repository_UnassignParentGroup_Call
- type Repository_UpdateRole_Call
- func (_c *Repository_UpdateRole_Call) Return(role roles.Role, err error) *Repository_UpdateRole_Call
- func (_c *Repository_UpdateRole_Call) Run(run func(ctx context.Context, ro roles.Role)) *Repository_UpdateRole_Call
- func (_c *Repository_UpdateRole_Call) RunAndReturn(run func(ctx context.Context, ro roles.Role) (roles.Role, error)) *Repository_UpdateRole_Call
- type Repository_UpdateTags_Call
- func (_c *Repository_UpdateTags_Call) Return(group groups.Group, err error) *Repository_UpdateTags_Call
- func (_c *Repository_UpdateTags_Call) Run(run func(ctx context.Context, g groups.Group)) *Repository_UpdateTags_Call
- func (_c *Repository_UpdateTags_Call) RunAndReturn(run func(ctx context.Context, g groups.Group) (groups.Group, error)) *Repository_UpdateTags_Call
- type Repository_Update_Call
- func (_c *Repository_Update_Call) Return(group groups.Group, err error) *Repository_Update_Call
- func (_c *Repository_Update_Call) Run(run func(ctx context.Context, g groups.Group)) *Repository_Update_Call
- func (_c *Repository_Update_Call) RunAndReturn(run func(ctx context.Context, g groups.Group) (groups.Group, error)) *Repository_Update_Call
- type Service
- func (_mock *Service) AddChildrenGroups(ctx context.Context, session authn.Session, id string, ...) error
- func (_mock *Service) AddParentGroup(ctx context.Context, session authn.Session, id string, parentID string) error
- func (_mock *Service) AddRole(ctx context.Context, session authn.Session, entityID string, roleName string, ...) (roles.RoleProvision, error)
- func (_mock *Service) CreateGroup(ctx context.Context, session authn.Session, g groups.Group) (groups.Group, []roles.RoleProvision, error)
- func (_mock *Service) DeleteGroup(ctx context.Context, session authn.Session, id string) error
- func (_mock *Service) DisableGroup(ctx context.Context, session authn.Session, id string) (groups.Group, error)
- func (_m *Service) EXPECT() *Service_Expecter
- func (_mock *Service) EnableGroup(ctx context.Context, session authn.Session, id string) (groups.Group, error)
- func (_mock *Service) ListAvailableActions(ctx context.Context, session authn.Session) ([]string, error)
- func (_mock *Service) ListChildrenGroups(ctx context.Context, session authn.Session, id string, startLevel int64, ...) (groups.Page, error)
- func (_mock *Service) ListEntityMembers(ctx context.Context, session authn.Session, entityID string, ...) (roles.MembersRolePage, error)
- func (_mock *Service) ListGroups(ctx context.Context, session authn.Session, pm groups.PageMeta) (groups.Page, error)
- func (_mock *Service) ListUserGroups(ctx context.Context, session authn.Session, userID string, pm groups.PageMeta) (groups.Page, error)
- func (_mock *Service) RemoveAllChildrenGroups(ctx context.Context, session authn.Session, id string) error
- func (_mock *Service) RemoveChildrenGroups(ctx context.Context, session authn.Session, id string, ...) error
- func (_mock *Service) RemoveEntityMembers(ctx context.Context, session authn.Session, entityID string, members []string) error
- func (_mock *Service) RemoveMemberFromAllRoles(ctx context.Context, session authn.Session, memberID string) error
- func (_mock *Service) RemoveParentGroup(ctx context.Context, session authn.Session, id string) error
- func (_mock *Service) RemoveRole(ctx context.Context, session authn.Session, entityID string, roleID string) error
- func (_mock *Service) RetrieveAllRoles(ctx context.Context, session authn.Session, entityID string, limit uint64, ...) (roles.RolePage, error)
- func (_mock *Service) RetrieveGroupHierarchy(ctx context.Context, session authn.Session, id string, ...) (groups.HierarchyPage, error)
- func (_mock *Service) RetrieveRole(ctx context.Context, session authn.Session, entityID string, roleID string) (roles.Role, error)
- func (_mock *Service) RoleAddActions(ctx context.Context, session authn.Session, entityID string, roleID string, ...) ([]string, error)
- func (_mock *Service) RoleAddMembers(ctx context.Context, session authn.Session, entityID string, roleID string, ...) ([]string, error)
- func (_mock *Service) RoleCheckActionsExists(ctx context.Context, session authn.Session, entityID string, roleID string, ...) (bool, error)
- func (_mock *Service) RoleCheckMembersExists(ctx context.Context, session authn.Session, entityID string, roleID string, ...) (bool, error)
- func (_mock *Service) RoleListActions(ctx context.Context, session authn.Session, entityID string, roleID string) ([]string, error)
- func (_mock *Service) RoleListMembers(ctx context.Context, session authn.Session, entityID string, roleID string, ...) (roles.MembersPage, error)
- func (_mock *Service) RoleRemoveActions(ctx context.Context, session authn.Session, entityID string, roleID string, ...) error
- func (_mock *Service) RoleRemoveAllActions(ctx context.Context, session authn.Session, entityID string, roleID string) error
- func (_mock *Service) RoleRemoveAllMembers(ctx context.Context, session authn.Session, entityID string, roleID string) error
- func (_mock *Service) RoleRemoveMembers(ctx context.Context, session authn.Session, entityID string, roleID string, ...) error
- func (_mock *Service) UpdateGroup(ctx context.Context, session authn.Session, g groups.Group) (groups.Group, error)
- func (_mock *Service) UpdateGroupTags(ctx context.Context, session authn.Session, group groups.Group) (groups.Group, error)
- func (_mock *Service) UpdateRoleName(ctx context.Context, session authn.Session, entityID string, roleID string, ...) (roles.Role, error)
- func (_mock *Service) ViewGroup(ctx context.Context, session authn.Session, id string, withRoles bool) (groups.Group, error)
- type Service_AddChildrenGroups_Call
- func (_c *Service_AddChildrenGroups_Call) Return(err error) *Service_AddChildrenGroups_Call
- func (_c *Service_AddChildrenGroups_Call) Run(run func(ctx context.Context, session authn.Session, id string, ...)) *Service_AddChildrenGroups_Call
- func (_c *Service_AddChildrenGroups_Call) RunAndReturn(run func(ctx context.Context, session authn.Session, id string, ...) error) *Service_AddChildrenGroups_Call
- type Service_AddParentGroup_Call
- type Service_AddRole_Call
- type Service_CreateGroup_Call
- func (_c *Service_CreateGroup_Call) Return(group groups.Group, roleProvisions []roles.RoleProvision, err error) *Service_CreateGroup_Call
- func (_c *Service_CreateGroup_Call) Run(run func(ctx context.Context, session authn.Session, g groups.Group)) *Service_CreateGroup_Call
- func (_c *Service_CreateGroup_Call) RunAndReturn(...) *Service_CreateGroup_Call
- type Service_DeleteGroup_Call
- func (_c *Service_DeleteGroup_Call) Return(err error) *Service_DeleteGroup_Call
- func (_c *Service_DeleteGroup_Call) Run(run func(ctx context.Context, session authn.Session, id string)) *Service_DeleteGroup_Call
- func (_c *Service_DeleteGroup_Call) RunAndReturn(run func(ctx context.Context, session authn.Session, id string) error) *Service_DeleteGroup_Call
- type Service_DisableGroup_Call
- func (_c *Service_DisableGroup_Call) Return(group groups.Group, err error) *Service_DisableGroup_Call
- func (_c *Service_DisableGroup_Call) Run(run func(ctx context.Context, session authn.Session, id string)) *Service_DisableGroup_Call
- func (_c *Service_DisableGroup_Call) RunAndReturn(...) *Service_DisableGroup_Call
- type Service_EnableGroup_Call
- func (_c *Service_EnableGroup_Call) Return(group groups.Group, err error) *Service_EnableGroup_Call
- func (_c *Service_EnableGroup_Call) Run(run func(ctx context.Context, session authn.Session, id string)) *Service_EnableGroup_Call
- func (_c *Service_EnableGroup_Call) RunAndReturn(...) *Service_EnableGroup_Call
- type Service_Expecter
- func (_e *Service_Expecter) AddChildrenGroups(ctx interface{}, session interface{}, id interface{}, ...) *Service_AddChildrenGroups_Call
- func (_e *Service_Expecter) AddParentGroup(ctx interface{}, session interface{}, id interface{}, parentID interface{}) *Service_AddParentGroup_Call
- func (_e *Service_Expecter) AddRole(ctx interface{}, session interface{}, entityID interface{}, ...) *Service_AddRole_Call
- func (_e *Service_Expecter) CreateGroup(ctx interface{}, session interface{}, g interface{}) *Service_CreateGroup_Call
- func (_e *Service_Expecter) DeleteGroup(ctx interface{}, session interface{}, id interface{}) *Service_DeleteGroup_Call
- func (_e *Service_Expecter) DisableGroup(ctx interface{}, session interface{}, id interface{}) *Service_DisableGroup_Call
- func (_e *Service_Expecter) EnableGroup(ctx interface{}, session interface{}, id interface{}) *Service_EnableGroup_Call
- func (_e *Service_Expecter) ListAvailableActions(ctx interface{}, session interface{}) *Service_ListAvailableActions_Call
- func (_e *Service_Expecter) ListChildrenGroups(ctx interface{}, session interface{}, id interface{}, startLevel interface{}, ...) *Service_ListChildrenGroups_Call
- func (_e *Service_Expecter) ListEntityMembers(ctx interface{}, session interface{}, entityID interface{}, pq interface{}) *Service_ListEntityMembers_Call
- func (_e *Service_Expecter) ListGroups(ctx interface{}, session interface{}, pm interface{}) *Service_ListGroups_Call
- func (_e *Service_Expecter) ListUserGroups(ctx interface{}, session interface{}, userID interface{}, pm interface{}) *Service_ListUserGroups_Call
- func (_e *Service_Expecter) RemoveAllChildrenGroups(ctx interface{}, session interface{}, id interface{}) *Service_RemoveAllChildrenGroups_Call
- func (_e *Service_Expecter) RemoveChildrenGroups(ctx interface{}, session interface{}, id interface{}, ...) *Service_RemoveChildrenGroups_Call
- func (_e *Service_Expecter) RemoveEntityMembers(ctx interface{}, session interface{}, entityID interface{}, ...) *Service_RemoveEntityMembers_Call
- func (_e *Service_Expecter) RemoveMemberFromAllRoles(ctx interface{}, session interface{}, memberID interface{}) *Service_RemoveMemberFromAllRoles_Call
- func (_e *Service_Expecter) RemoveParentGroup(ctx interface{}, session interface{}, id interface{}) *Service_RemoveParentGroup_Call
- func (_e *Service_Expecter) RemoveRole(ctx interface{}, session interface{}, entityID interface{}, roleID interface{}) *Service_RemoveRole_Call
- func (_e *Service_Expecter) RetrieveAllRoles(ctx interface{}, session interface{}, entityID interface{}, limit interface{}, ...) *Service_RetrieveAllRoles_Call
- func (_e *Service_Expecter) RetrieveGroupHierarchy(ctx interface{}, session interface{}, id interface{}, hm interface{}) *Service_RetrieveGroupHierarchy_Call
- func (_e *Service_Expecter) RetrieveRole(ctx interface{}, session interface{}, entityID interface{}, roleID interface{}) *Service_RetrieveRole_Call
- func (_e *Service_Expecter) RoleAddActions(ctx interface{}, session interface{}, entityID interface{}, roleID interface{}, ...) *Service_RoleAddActions_Call
- func (_e *Service_Expecter) RoleAddMembers(ctx interface{}, session interface{}, entityID interface{}, roleID interface{}, ...) *Service_RoleAddMembers_Call
- func (_e *Service_Expecter) RoleCheckActionsExists(ctx interface{}, session interface{}, entityID interface{}, roleID interface{}, ...) *Service_RoleCheckActionsExists_Call
- func (_e *Service_Expecter) RoleCheckMembersExists(ctx interface{}, session interface{}, entityID interface{}, roleID interface{}, ...) *Service_RoleCheckMembersExists_Call
- func (_e *Service_Expecter) RoleListActions(ctx interface{}, session interface{}, entityID interface{}, roleID interface{}) *Service_RoleListActions_Call
- func (_e *Service_Expecter) RoleListMembers(ctx interface{}, session interface{}, entityID interface{}, roleID interface{}, ...) *Service_RoleListMembers_Call
- func (_e *Service_Expecter) RoleRemoveActions(ctx interface{}, session interface{}, entityID interface{}, roleID interface{}, ...) *Service_RoleRemoveActions_Call
- func (_e *Service_Expecter) RoleRemoveAllActions(ctx interface{}, session interface{}, entityID interface{}, roleID interface{}) *Service_RoleRemoveAllActions_Call
- func (_e *Service_Expecter) RoleRemoveAllMembers(ctx interface{}, session interface{}, entityID interface{}, roleID interface{}) *Service_RoleRemoveAllMembers_Call
- func (_e *Service_Expecter) RoleRemoveMembers(ctx interface{}, session interface{}, entityID interface{}, roleID interface{}, ...) *Service_RoleRemoveMembers_Call
- func (_e *Service_Expecter) UpdateGroup(ctx interface{}, session interface{}, g interface{}) *Service_UpdateGroup_Call
- func (_e *Service_Expecter) UpdateGroupTags(ctx interface{}, session interface{}, group interface{}) *Service_UpdateGroupTags_Call
- func (_e *Service_Expecter) UpdateRoleName(ctx interface{}, session interface{}, entityID interface{}, roleID interface{}, ...) *Service_UpdateRoleName_Call
- func (_e *Service_Expecter) ViewGroup(ctx interface{}, session interface{}, id interface{}, withRoles interface{}) *Service_ViewGroup_Call
- type Service_ListAvailableActions_Call
- func (_c *Service_ListAvailableActions_Call) Return(strings []string, err error) *Service_ListAvailableActions_Call
- func (_c *Service_ListAvailableActions_Call) Run(run func(ctx context.Context, session authn.Session)) *Service_ListAvailableActions_Call
- func (_c *Service_ListAvailableActions_Call) RunAndReturn(run func(ctx context.Context, session authn.Session) ([]string, error)) *Service_ListAvailableActions_Call
- type Service_ListChildrenGroups_Call
- type Service_ListEntityMembers_Call
- func (_c *Service_ListEntityMembers_Call) Return(membersRolePage roles.MembersRolePage, err error) *Service_ListEntityMembers_Call
- func (_c *Service_ListEntityMembers_Call) Run(run func(ctx context.Context, session authn.Session, entityID string, ...)) *Service_ListEntityMembers_Call
- func (_c *Service_ListEntityMembers_Call) RunAndReturn(...) *Service_ListEntityMembers_Call
- type Service_ListGroups_Call
- func (_c *Service_ListGroups_Call) Return(page groups.Page, err error) *Service_ListGroups_Call
- func (_c *Service_ListGroups_Call) Run(run func(ctx context.Context, session authn.Session, pm groups.PageMeta)) *Service_ListGroups_Call
- func (_c *Service_ListGroups_Call) RunAndReturn(...) *Service_ListGroups_Call
- type Service_ListUserGroups_Call
- type Service_RemoveAllChildrenGroups_Call
- func (_c *Service_RemoveAllChildrenGroups_Call) Return(err error) *Service_RemoveAllChildrenGroups_Call
- func (_c *Service_RemoveAllChildrenGroups_Call) Run(run func(ctx context.Context, session authn.Session, id string)) *Service_RemoveAllChildrenGroups_Call
- func (_c *Service_RemoveAllChildrenGroups_Call) RunAndReturn(run func(ctx context.Context, session authn.Session, id string) error) *Service_RemoveAllChildrenGroups_Call
- type Service_RemoveChildrenGroups_Call
- func (_c *Service_RemoveChildrenGroups_Call) Return(err error) *Service_RemoveChildrenGroups_Call
- func (_c *Service_RemoveChildrenGroups_Call) Run(run func(ctx context.Context, session authn.Session, id string, ...)) *Service_RemoveChildrenGroups_Call
- func (_c *Service_RemoveChildrenGroups_Call) RunAndReturn(run func(ctx context.Context, session authn.Session, id string, ...) error) *Service_RemoveChildrenGroups_Call
- type Service_RemoveEntityMembers_Call
- type Service_RemoveMemberFromAllRoles_Call
- func (_c *Service_RemoveMemberFromAllRoles_Call) Return(err error) *Service_RemoveMemberFromAllRoles_Call
- func (_c *Service_RemoveMemberFromAllRoles_Call) Run(run func(ctx context.Context, session authn.Session, memberID string)) *Service_RemoveMemberFromAllRoles_Call
- func (_c *Service_RemoveMemberFromAllRoles_Call) RunAndReturn(run func(ctx context.Context, session authn.Session, memberID string) error) *Service_RemoveMemberFromAllRoles_Call
- type Service_RemoveParentGroup_Call
- func (_c *Service_RemoveParentGroup_Call) Return(err error) *Service_RemoveParentGroup_Call
- func (_c *Service_RemoveParentGroup_Call) Run(run func(ctx context.Context, session authn.Session, id string)) *Service_RemoveParentGroup_Call
- func (_c *Service_RemoveParentGroup_Call) RunAndReturn(run func(ctx context.Context, session authn.Session, id string) error) *Service_RemoveParentGroup_Call
- type Service_RemoveRole_Call
- type Service_RetrieveAllRoles_Call
- type Service_RetrieveGroupHierarchy_Call
- func (_c *Service_RetrieveGroupHierarchy_Call) Return(hierarchyPage groups.HierarchyPage, err error) *Service_RetrieveGroupHierarchy_Call
- func (_c *Service_RetrieveGroupHierarchy_Call) Run(run func(ctx context.Context, session authn.Session, id string, ...)) *Service_RetrieveGroupHierarchy_Call
- func (_c *Service_RetrieveGroupHierarchy_Call) RunAndReturn(...) *Service_RetrieveGroupHierarchy_Call
- type Service_RetrieveRole_Call
- type Service_RoleAddActions_Call
- type Service_RoleAddMembers_Call
- type Service_RoleCheckActionsExists_Call
- func (_c *Service_RoleCheckActionsExists_Call) Return(b bool, err error) *Service_RoleCheckActionsExists_Call
- func (_c *Service_RoleCheckActionsExists_Call) Run(...) *Service_RoleCheckActionsExists_Call
- func (_c *Service_RoleCheckActionsExists_Call) RunAndReturn(...) *Service_RoleCheckActionsExists_Call
- type Service_RoleCheckMembersExists_Call
- func (_c *Service_RoleCheckMembersExists_Call) Return(b bool, err error) *Service_RoleCheckMembersExists_Call
- func (_c *Service_RoleCheckMembersExists_Call) Run(...) *Service_RoleCheckMembersExists_Call
- func (_c *Service_RoleCheckMembersExists_Call) RunAndReturn(...) *Service_RoleCheckMembersExists_Call
- type Service_RoleListActions_Call
- type Service_RoleListMembers_Call
- type Service_RoleRemoveActions_Call
- type Service_RoleRemoveAllActions_Call
- type Service_RoleRemoveAllMembers_Call
- type Service_RoleRemoveMembers_Call
- type Service_UpdateGroupTags_Call
- func (_c *Service_UpdateGroupTags_Call) Return(group1 groups.Group, err error) *Service_UpdateGroupTags_Call
- func (_c *Service_UpdateGroupTags_Call) Run(run func(ctx context.Context, session authn.Session, group groups.Group)) *Service_UpdateGroupTags_Call
- func (_c *Service_UpdateGroupTags_Call) RunAndReturn(...) *Service_UpdateGroupTags_Call
- type Service_UpdateGroup_Call
- func (_c *Service_UpdateGroup_Call) Return(group groups.Group, err error) *Service_UpdateGroup_Call
- func (_c *Service_UpdateGroup_Call) Run(run func(ctx context.Context, session authn.Session, g groups.Group)) *Service_UpdateGroup_Call
- func (_c *Service_UpdateGroup_Call) RunAndReturn(...) *Service_UpdateGroup_Call
- type Service_UpdateRoleName_Call
- type Service_ViewGroup_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GroupsServiceClient ¶
GroupsServiceClient is an autogenerated mock type for the GroupsServiceClient type
func NewGroupsServiceClient ¶
func NewGroupsServiceClient(t interface {
mock.TestingT
Cleanup(func())
}) *GroupsServiceClient
NewGroupsServiceClient creates a new instance of GroupsServiceClient. 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 (*GroupsServiceClient) EXPECT ¶
func (_m *GroupsServiceClient) EXPECT() *GroupsServiceClient_Expecter
func (*GroupsServiceClient) RetrieveEntity ¶
func (_mock *GroupsServiceClient) RetrieveEntity(ctx context.Context, in *v1.RetrieveEntityReq, opts ...grpc.CallOption) (*v1.RetrieveEntityRes, error)
RetrieveEntity provides a mock function for the type GroupsServiceClient
type GroupsServiceClient_Expecter ¶
type GroupsServiceClient_Expecter struct {
// contains filtered or unexported fields
}
func (*GroupsServiceClient_Expecter) RetrieveEntity ¶
func (_e *GroupsServiceClient_Expecter) RetrieveEntity(ctx interface{}, in interface{}, opts ...interface{}) *GroupsServiceClient_RetrieveEntity_Call
RetrieveEntity is a helper method to define mock.On call
- ctx context.Context
- in *v1.RetrieveEntityReq
- opts ...grpc.CallOption
type GroupsServiceClient_RetrieveEntity_Call ¶
GroupsServiceClient_RetrieveEntity_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RetrieveEntity'
func (*GroupsServiceClient_RetrieveEntity_Call) Return ¶
func (_c *GroupsServiceClient_RetrieveEntity_Call) Return(retrieveEntityRes *v1.RetrieveEntityRes, err error) *GroupsServiceClient_RetrieveEntity_Call
func (*GroupsServiceClient_RetrieveEntity_Call) Run ¶
func (_c *GroupsServiceClient_RetrieveEntity_Call) Run(run func(ctx context.Context, in *v1.RetrieveEntityReq, opts ...grpc.CallOption)) *GroupsServiceClient_RetrieveEntity_Call
func (*GroupsServiceClient_RetrieveEntity_Call) RunAndReturn ¶
func (_c *GroupsServiceClient_RetrieveEntity_Call) RunAndReturn(run func(ctx context.Context, in *v1.RetrieveEntityReq, opts ...grpc.CallOption) (*v1.RetrieveEntityRes, error)) *GroupsServiceClient_RetrieveEntity_Call
type Repository ¶
Repository is an autogenerated mock type for the Repository type
func NewRepository ¶
func NewRepository(t interface {
mock.TestingT
Cleanup(func())
}) *Repository
NewRepository creates a new instance of Repository. 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 (*Repository) AddRoles ¶
func (_mock *Repository) AddRoles(ctx context.Context, rps []roles.RoleProvision) ([]roles.RoleProvision, error)
AddRoles provides a mock function for the type Repository
func (*Repository) AssignParentGroup ¶
func (_mock *Repository) AssignParentGroup(ctx context.Context, parentGroupID string, groupIDs ...string) error
AssignParentGroup provides a mock function for the type Repository
func (*Repository) ChangeStatus ¶
func (_mock *Repository) ChangeStatus(ctx context.Context, group groups.Group) (groups.Group, error)
ChangeStatus provides a mock function for the type Repository
func (*Repository) Delete ¶
func (_mock *Repository) Delete(ctx context.Context, groupID string) error
Delete provides a mock function for the type Repository
func (*Repository) EXPECT ¶ added in v0.17.0
func (_m *Repository) EXPECT() *Repository_Expecter
func (*Repository) ListEntityMembers ¶ added in v0.17.0
func (_mock *Repository) ListEntityMembers(ctx context.Context, entityID string, pageQuery roles.MembersRolePageQuery) (roles.MembersRolePage, error)
ListEntityMembers provides a mock function for the type Repository
func (*Repository) RemoveEntityMembers ¶ added in v0.17.0
func (_mock *Repository) RemoveEntityMembers(ctx context.Context, entityID string, members []string) error
RemoveEntityMembers provides a mock function for the type Repository
func (*Repository) RemoveMemberFromAllRoles ¶
func (_mock *Repository) RemoveMemberFromAllRoles(ctx context.Context, memberID string) error
RemoveMemberFromAllRoles provides a mock function for the type Repository
func (*Repository) RemoveRoles ¶
func (_mock *Repository) RemoveRoles(ctx context.Context, roleIDs []string) error
RemoveRoles provides a mock function for the type Repository
func (*Repository) RetrieveAll ¶
RetrieveAll provides a mock function for the type Repository
func (*Repository) RetrieveAllParentGroups ¶
func (_mock *Repository) RetrieveAllParentGroups(ctx context.Context, domainID string, userID string, groupID string, pm groups.PageMeta) (groups.Page, error)
RetrieveAllParentGroups provides a mock function for the type Repository
func (*Repository) RetrieveAllRoles ¶
func (_mock *Repository) RetrieveAllRoles(ctx context.Context, entityID string, limit uint64, offset uint64) (roles.RolePage, error)
RetrieveAllRoles provides a mock function for the type Repository
func (*Repository) RetrieveByID ¶
RetrieveByID provides a mock function for the type Repository
func (*Repository) RetrieveByIDAndUser ¶
func (_mock *Repository) RetrieveByIDAndUser(ctx context.Context, domainID string, userID string, groupID string) (groups.Group, error)
RetrieveByIDAndUser provides a mock function for the type Repository
func (*Repository) RetrieveByIDWithRoles ¶ added in v0.17.0
func (_mock *Repository) RetrieveByIDWithRoles(ctx context.Context, groupID string, memberID string) (groups.Group, error)
RetrieveByIDWithRoles provides a mock function for the type Repository
func (*Repository) RetrieveByIDs ¶
func (_mock *Repository) RetrieveByIDs(ctx context.Context, pm groups.PageMeta, ids ...string) (groups.Page, error)
RetrieveByIDs provides a mock function for the type Repository
func (*Repository) RetrieveChildrenGroups ¶
func (_mock *Repository) RetrieveChildrenGroups(ctx context.Context, domainID string, userID string, groupID string, startLevel int64, endLevel int64, pm groups.PageMeta) (groups.Page, error)
RetrieveChildrenGroups provides a mock function for the type Repository
func (*Repository) RetrieveEntitiesRolesActionsMembers ¶
func (_mock *Repository) RetrieveEntitiesRolesActionsMembers(ctx context.Context, entityIDs []string) ([]roles.EntityActionRole, []roles.EntityMemberRole, error)
RetrieveEntitiesRolesActionsMembers provides a mock function for the type Repository
func (*Repository) RetrieveEntityRole ¶ added in v0.17.0
func (_mock *Repository) RetrieveEntityRole(ctx context.Context, entityID string, roleID string) (roles.Role, error)
RetrieveEntityRole provides a mock function for the type Repository
func (*Repository) RetrieveHierarchy ¶
func (_mock *Repository) RetrieveHierarchy(ctx context.Context, domainID string, userID string, groupID string, hm groups.HierarchyPageMeta) (groups.HierarchyPage, error)
RetrieveHierarchy provides a mock function for the type Repository
func (*Repository) RetrieveRole ¶
RetrieveRole provides a mock function for the type Repository
func (*Repository) RetrieveUserGroups ¶
func (_mock *Repository) RetrieveUserGroups(ctx context.Context, domainID string, userID string, pm groups.PageMeta) (groups.Page, error)
RetrieveUserGroups provides a mock function for the type Repository
func (*Repository) RoleAddActions ¶
func (_mock *Repository) RoleAddActions(ctx context.Context, role roles.Role, actions []string) ([]string, error)
RoleAddActions provides a mock function for the type Repository
func (*Repository) RoleAddMembers ¶
func (_mock *Repository) RoleAddMembers(ctx context.Context, role roles.Role, members []string) ([]string, error)
RoleAddMembers provides a mock function for the type Repository
func (*Repository) RoleCheckActionsExists ¶
func (_mock *Repository) RoleCheckActionsExists(ctx context.Context, roleID string, actions []string) (bool, error)
RoleCheckActionsExists provides a mock function for the type Repository
func (*Repository) RoleCheckMembersExists ¶
func (_mock *Repository) RoleCheckMembersExists(ctx context.Context, roleID string, members []string) (bool, error)
RoleCheckMembersExists provides a mock function for the type Repository
func (*Repository) RoleListActions ¶
RoleListActions provides a mock function for the type Repository
func (*Repository) RoleListMembers ¶
func (_mock *Repository) RoleListMembers(ctx context.Context, roleID string, limit uint64, offset uint64) (roles.MembersPage, error)
RoleListMembers provides a mock function for the type Repository
func (*Repository) RoleRemoveActions ¶
func (_mock *Repository) RoleRemoveActions(ctx context.Context, role roles.Role, actions []string) error
RoleRemoveActions provides a mock function for the type Repository
func (*Repository) RoleRemoveAllActions ¶
RoleRemoveAllActions provides a mock function for the type Repository
func (*Repository) RoleRemoveAllMembers ¶
RoleRemoveAllMembers provides a mock function for the type Repository
func (*Repository) RoleRemoveMembers ¶
func (_mock *Repository) RoleRemoveMembers(ctx context.Context, role roles.Role, members []string) error
RoleRemoveMembers provides a mock function for the type Repository
func (*Repository) UnassignAllChildrenGroups ¶
func (_mock *Repository) UnassignAllChildrenGroups(ctx context.Context, id string) error
UnassignAllChildrenGroups provides a mock function for the type Repository
func (*Repository) UnassignParentGroup ¶
func (_mock *Repository) UnassignParentGroup(ctx context.Context, parentGroupID string, groupIDs ...string) error
UnassignParentGroup provides a mock function for the type Repository
func (*Repository) UpdateRole ¶
UpdateRole provides a mock function for the type Repository
func (*Repository) UpdateTags ¶ added in v0.17.0
UpdateTags provides a mock function for the type Repository
type Repository_AddRoles_Call ¶ added in v0.17.0
Repository_AddRoles_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddRoles'
func (*Repository_AddRoles_Call) Return ¶ added in v0.17.0
func (_c *Repository_AddRoles_Call) Return(roleProvisions []roles.RoleProvision, err error) *Repository_AddRoles_Call
func (*Repository_AddRoles_Call) Run ¶ added in v0.17.0
func (_c *Repository_AddRoles_Call) Run(run func(ctx context.Context, rps []roles.RoleProvision)) *Repository_AddRoles_Call
func (*Repository_AddRoles_Call) RunAndReturn ¶ added in v0.17.0
func (_c *Repository_AddRoles_Call) RunAndReturn(run func(ctx context.Context, rps []roles.RoleProvision) ([]roles.RoleProvision, error)) *Repository_AddRoles_Call
type Repository_AssignParentGroup_Call ¶ added in v0.17.0
Repository_AssignParentGroup_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AssignParentGroup'
func (*Repository_AssignParentGroup_Call) Return ¶ added in v0.17.0
func (_c *Repository_AssignParentGroup_Call) Return(err error) *Repository_AssignParentGroup_Call
func (*Repository_AssignParentGroup_Call) Run ¶ added in v0.17.0
func (_c *Repository_AssignParentGroup_Call) Run(run func(ctx context.Context, parentGroupID string, groupIDs ...string)) *Repository_AssignParentGroup_Call
func (*Repository_AssignParentGroup_Call) RunAndReturn ¶ added in v0.17.0
func (_c *Repository_AssignParentGroup_Call) RunAndReturn(run func(ctx context.Context, parentGroupID string, groupIDs ...string) error) *Repository_AssignParentGroup_Call
type Repository_ChangeStatus_Call ¶ added in v0.17.0
Repository_ChangeStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ChangeStatus'
func (*Repository_ChangeStatus_Call) Return ¶ added in v0.17.0
func (_c *Repository_ChangeStatus_Call) Return(group1 groups.Group, err error) *Repository_ChangeStatus_Call
func (*Repository_ChangeStatus_Call) Run ¶ added in v0.17.0
func (_c *Repository_ChangeStatus_Call) Run(run func(ctx context.Context, group groups.Group)) *Repository_ChangeStatus_Call
func (*Repository_ChangeStatus_Call) RunAndReturn ¶ added in v0.17.0
func (_c *Repository_ChangeStatus_Call) RunAndReturn(run func(ctx context.Context, group groups.Group) (groups.Group, error)) *Repository_ChangeStatus_Call
type Repository_Delete_Call ¶ added in v0.17.0
Repository_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*Repository_Delete_Call) Return ¶ added in v0.17.0
func (_c *Repository_Delete_Call) Return(err error) *Repository_Delete_Call
func (*Repository_Delete_Call) Run ¶ added in v0.17.0
func (_c *Repository_Delete_Call) Run(run func(ctx context.Context, groupID string)) *Repository_Delete_Call
func (*Repository_Delete_Call) RunAndReturn ¶ added in v0.17.0
func (_c *Repository_Delete_Call) RunAndReturn(run func(ctx context.Context, groupID string) error) *Repository_Delete_Call
type Repository_Expecter ¶ added in v0.17.0
type Repository_Expecter struct {
// contains filtered or unexported fields
}
func (*Repository_Expecter) AddRoles ¶ added in v0.17.0
func (_e *Repository_Expecter) AddRoles(ctx interface{}, rps interface{}) *Repository_AddRoles_Call
AddRoles is a helper method to define mock.On call
- ctx context.Context
- rps []roles.RoleProvision
func (*Repository_Expecter) AssignParentGroup ¶ added in v0.17.0
func (_e *Repository_Expecter) AssignParentGroup(ctx interface{}, parentGroupID interface{}, groupIDs ...interface{}) *Repository_AssignParentGroup_Call
AssignParentGroup is a helper method to define mock.On call
- ctx context.Context
- parentGroupID string
- groupIDs ...string
func (*Repository_Expecter) ChangeStatus ¶ added in v0.17.0
func (_e *Repository_Expecter) ChangeStatus(ctx interface{}, group interface{}) *Repository_ChangeStatus_Call
ChangeStatus is a helper method to define mock.On call
- ctx context.Context
- group groups.Group
func (*Repository_Expecter) Delete ¶ added in v0.17.0
func (_e *Repository_Expecter) Delete(ctx interface{}, groupID interface{}) *Repository_Delete_Call
Delete is a helper method to define mock.On call
- ctx context.Context
- groupID string
func (*Repository_Expecter) ListEntityMembers ¶ added in v0.17.0
func (_e *Repository_Expecter) ListEntityMembers(ctx interface{}, entityID interface{}, pageQuery interface{}) *Repository_ListEntityMembers_Call
ListEntityMembers is a helper method to define mock.On call
- ctx context.Context
- entityID string
- pageQuery roles.MembersRolePageQuery
func (*Repository_Expecter) RemoveEntityMembers ¶ added in v0.17.0
func (_e *Repository_Expecter) RemoveEntityMembers(ctx interface{}, entityID interface{}, members interface{}) *Repository_RemoveEntityMembers_Call
RemoveEntityMembers is a helper method to define mock.On call
- ctx context.Context
- entityID string
- members []string
func (*Repository_Expecter) RemoveMemberFromAllRoles ¶ added in v0.17.0
func (_e *Repository_Expecter) RemoveMemberFromAllRoles(ctx interface{}, memberID interface{}) *Repository_RemoveMemberFromAllRoles_Call
RemoveMemberFromAllRoles is a helper method to define mock.On call
- ctx context.Context
- memberID string
func (*Repository_Expecter) RemoveRoles ¶ added in v0.17.0
func (_e *Repository_Expecter) RemoveRoles(ctx interface{}, roleIDs interface{}) *Repository_RemoveRoles_Call
RemoveRoles is a helper method to define mock.On call
- ctx context.Context
- roleIDs []string
func (*Repository_Expecter) RetrieveAll ¶ added in v0.17.0
func (_e *Repository_Expecter) RetrieveAll(ctx interface{}, pm interface{}) *Repository_RetrieveAll_Call
RetrieveAll is a helper method to define mock.On call
- ctx context.Context
- pm groups.PageMeta
func (*Repository_Expecter) RetrieveAllParentGroups ¶ added in v0.17.0
func (_e *Repository_Expecter) RetrieveAllParentGroups(ctx interface{}, domainID interface{}, userID interface{}, groupID interface{}, pm interface{}) *Repository_RetrieveAllParentGroups_Call
RetrieveAllParentGroups is a helper method to define mock.On call
- ctx context.Context
- domainID string
- userID string
- groupID string
- pm groups.PageMeta
func (*Repository_Expecter) RetrieveAllRoles ¶ added in v0.17.0
func (_e *Repository_Expecter) RetrieveAllRoles(ctx interface{}, entityID interface{}, limit interface{}, offset interface{}) *Repository_RetrieveAllRoles_Call
RetrieveAllRoles is a helper method to define mock.On call
- ctx context.Context
- entityID string
- limit uint64
- offset uint64
func (*Repository_Expecter) RetrieveByID ¶ added in v0.17.0
func (_e *Repository_Expecter) RetrieveByID(ctx interface{}, id interface{}) *Repository_RetrieveByID_Call
RetrieveByID is a helper method to define mock.On call
- ctx context.Context
- id string
func (*Repository_Expecter) RetrieveByIDAndUser ¶ added in v0.17.0
func (_e *Repository_Expecter) RetrieveByIDAndUser(ctx interface{}, domainID interface{}, userID interface{}, groupID interface{}) *Repository_RetrieveByIDAndUser_Call
RetrieveByIDAndUser is a helper method to define mock.On call
- ctx context.Context
- domainID string
- userID string
- groupID string
func (*Repository_Expecter) RetrieveByIDWithRoles ¶ added in v0.17.0
func (_e *Repository_Expecter) RetrieveByIDWithRoles(ctx interface{}, groupID interface{}, memberID interface{}) *Repository_RetrieveByIDWithRoles_Call
RetrieveByIDWithRoles is a helper method to define mock.On call
- ctx context.Context
- groupID string
- memberID string
func (*Repository_Expecter) RetrieveByIDs ¶ added in v0.17.0
func (_e *Repository_Expecter) RetrieveByIDs(ctx interface{}, pm interface{}, ids ...interface{}) *Repository_RetrieveByIDs_Call
RetrieveByIDs is a helper method to define mock.On call
- ctx context.Context
- pm groups.PageMeta
- ids ...string
func (*Repository_Expecter) RetrieveChildrenGroups ¶ added in v0.17.0
func (_e *Repository_Expecter) RetrieveChildrenGroups(ctx interface{}, domainID interface{}, userID interface{}, groupID interface{}, startLevel interface{}, endLevel interface{}, pm interface{}) *Repository_RetrieveChildrenGroups_Call
RetrieveChildrenGroups is a helper method to define mock.On call
- ctx context.Context
- domainID string
- userID string
- groupID string
- startLevel int64
- endLevel int64
- pm groups.PageMeta
func (*Repository_Expecter) RetrieveEntitiesRolesActionsMembers ¶ added in v0.17.0
func (_e *Repository_Expecter) RetrieveEntitiesRolesActionsMembers(ctx interface{}, entityIDs interface{}) *Repository_RetrieveEntitiesRolesActionsMembers_Call
RetrieveEntitiesRolesActionsMembers is a helper method to define mock.On call
- ctx context.Context
- entityIDs []string
func (*Repository_Expecter) RetrieveEntityRole ¶ added in v0.17.0
func (_e *Repository_Expecter) RetrieveEntityRole(ctx interface{}, entityID interface{}, roleID interface{}) *Repository_RetrieveEntityRole_Call
RetrieveEntityRole is a helper method to define mock.On call
- ctx context.Context
- entityID string
- roleID string
func (*Repository_Expecter) RetrieveHierarchy ¶ added in v0.17.0
func (_e *Repository_Expecter) RetrieveHierarchy(ctx interface{}, domainID interface{}, userID interface{}, groupID interface{}, hm interface{}) *Repository_RetrieveHierarchy_Call
RetrieveHierarchy is a helper method to define mock.On call
- ctx context.Context
- domainID string
- userID string
- groupID string
- hm groups.HierarchyPageMeta
func (*Repository_Expecter) RetrieveRole ¶ added in v0.17.0
func (_e *Repository_Expecter) RetrieveRole(ctx interface{}, roleID interface{}) *Repository_RetrieveRole_Call
RetrieveRole is a helper method to define mock.On call
- ctx context.Context
- roleID string
func (*Repository_Expecter) RetrieveUserGroups ¶ added in v0.17.0
func (_e *Repository_Expecter) RetrieveUserGroups(ctx interface{}, domainID interface{}, userID interface{}, pm interface{}) *Repository_RetrieveUserGroups_Call
RetrieveUserGroups is a helper method to define mock.On call
- ctx context.Context
- domainID string
- userID string
- pm groups.PageMeta
func (*Repository_Expecter) RoleAddActions ¶ added in v0.17.0
func (_e *Repository_Expecter) RoleAddActions(ctx interface{}, role interface{}, actions interface{}) *Repository_RoleAddActions_Call
RoleAddActions is a helper method to define mock.On call
- ctx context.Context
- role roles.Role
- actions []string
func (*Repository_Expecter) RoleAddMembers ¶ added in v0.17.0
func (_e *Repository_Expecter) RoleAddMembers(ctx interface{}, role interface{}, members interface{}) *Repository_RoleAddMembers_Call
RoleAddMembers is a helper method to define mock.On call
- ctx context.Context
- role roles.Role
- members []string
func (*Repository_Expecter) RoleCheckActionsExists ¶ added in v0.17.0
func (_e *Repository_Expecter) RoleCheckActionsExists(ctx interface{}, roleID interface{}, actions interface{}) *Repository_RoleCheckActionsExists_Call
RoleCheckActionsExists is a helper method to define mock.On call
- ctx context.Context
- roleID string
- actions []string
func (*Repository_Expecter) RoleCheckMembersExists ¶ added in v0.17.0
func (_e *Repository_Expecter) RoleCheckMembersExists(ctx interface{}, roleID interface{}, members interface{}) *Repository_RoleCheckMembersExists_Call
RoleCheckMembersExists is a helper method to define mock.On call
- ctx context.Context
- roleID string
- members []string
func (*Repository_Expecter) RoleListActions ¶ added in v0.17.0
func (_e *Repository_Expecter) RoleListActions(ctx interface{}, roleID interface{}) *Repository_RoleListActions_Call
RoleListActions is a helper method to define mock.On call
- ctx context.Context
- roleID string
func (*Repository_Expecter) RoleListMembers ¶ added in v0.17.0
func (_e *Repository_Expecter) RoleListMembers(ctx interface{}, roleID interface{}, limit interface{}, offset interface{}) *Repository_RoleListMembers_Call
RoleListMembers is a helper method to define mock.On call
- ctx context.Context
- roleID string
- limit uint64
- offset uint64
func (*Repository_Expecter) RoleRemoveActions ¶ added in v0.17.0
func (_e *Repository_Expecter) RoleRemoveActions(ctx interface{}, role interface{}, actions interface{}) *Repository_RoleRemoveActions_Call
RoleRemoveActions is a helper method to define mock.On call
- ctx context.Context
- role roles.Role
- actions []string
func (*Repository_Expecter) RoleRemoveAllActions ¶ added in v0.17.0
func (_e *Repository_Expecter) RoleRemoveAllActions(ctx interface{}, role interface{}) *Repository_RoleRemoveAllActions_Call
RoleRemoveAllActions is a helper method to define mock.On call
- ctx context.Context
- role roles.Role
func (*Repository_Expecter) RoleRemoveAllMembers ¶ added in v0.17.0
func (_e *Repository_Expecter) RoleRemoveAllMembers(ctx interface{}, role interface{}) *Repository_RoleRemoveAllMembers_Call
RoleRemoveAllMembers is a helper method to define mock.On call
- ctx context.Context
- role roles.Role
func (*Repository_Expecter) RoleRemoveMembers ¶ added in v0.17.0
func (_e *Repository_Expecter) RoleRemoveMembers(ctx interface{}, role interface{}, members interface{}) *Repository_RoleRemoveMembers_Call
RoleRemoveMembers is a helper method to define mock.On call
- ctx context.Context
- role roles.Role
- members []string
func (*Repository_Expecter) Save ¶ added in v0.17.0
func (_e *Repository_Expecter) Save(ctx interface{}, g interface{}) *Repository_Save_Call
Save is a helper method to define mock.On call
- ctx context.Context
- g groups.Group
func (*Repository_Expecter) UnassignAllChildrenGroups ¶ added in v0.17.0
func (_e *Repository_Expecter) UnassignAllChildrenGroups(ctx interface{}, id interface{}) *Repository_UnassignAllChildrenGroups_Call
UnassignAllChildrenGroups is a helper method to define mock.On call
- ctx context.Context
- id string
func (*Repository_Expecter) UnassignParentGroup ¶ added in v0.17.0
func (_e *Repository_Expecter) UnassignParentGroup(ctx interface{}, parentGroupID interface{}, groupIDs ...interface{}) *Repository_UnassignParentGroup_Call
UnassignParentGroup is a helper method to define mock.On call
- ctx context.Context
- parentGroupID string
- groupIDs ...string
func (*Repository_Expecter) Update ¶ added in v0.17.0
func (_e *Repository_Expecter) Update(ctx interface{}, g interface{}) *Repository_Update_Call
Update is a helper method to define mock.On call
- ctx context.Context
- g groups.Group
func (*Repository_Expecter) UpdateRole ¶ added in v0.17.0
func (_e *Repository_Expecter) UpdateRole(ctx interface{}, ro interface{}) *Repository_UpdateRole_Call
UpdateRole is a helper method to define mock.On call
- ctx context.Context
- ro roles.Role
func (*Repository_Expecter) UpdateTags ¶ added in v0.17.0
func (_e *Repository_Expecter) UpdateTags(ctx interface{}, g interface{}) *Repository_UpdateTags_Call
UpdateTags is a helper method to define mock.On call
- ctx context.Context
- g groups.Group
type Repository_ListEntityMembers_Call ¶ added in v0.17.0
Repository_ListEntityMembers_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListEntityMembers'
func (*Repository_ListEntityMembers_Call) Return ¶ added in v0.17.0
func (_c *Repository_ListEntityMembers_Call) Return(membersRolePage roles.MembersRolePage, err error) *Repository_ListEntityMembers_Call
func (*Repository_ListEntityMembers_Call) Run ¶ added in v0.17.0
func (_c *Repository_ListEntityMembers_Call) Run(run func(ctx context.Context, entityID string, pageQuery roles.MembersRolePageQuery)) *Repository_ListEntityMembers_Call
func (*Repository_ListEntityMembers_Call) RunAndReturn ¶ added in v0.17.0
func (_c *Repository_ListEntityMembers_Call) RunAndReturn(run func(ctx context.Context, entityID string, pageQuery roles.MembersRolePageQuery) (roles.MembersRolePage, error)) *Repository_ListEntityMembers_Call
type Repository_RemoveEntityMembers_Call ¶ added in v0.17.0
Repository_RemoveEntityMembers_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoveEntityMembers'
func (*Repository_RemoveEntityMembers_Call) Return ¶ added in v0.17.0
func (_c *Repository_RemoveEntityMembers_Call) Return(err error) *Repository_RemoveEntityMembers_Call
func (*Repository_RemoveEntityMembers_Call) Run ¶ added in v0.17.0
func (_c *Repository_RemoveEntityMembers_Call) Run(run func(ctx context.Context, entityID string, members []string)) *Repository_RemoveEntityMembers_Call
func (*Repository_RemoveEntityMembers_Call) RunAndReturn ¶ added in v0.17.0
func (_c *Repository_RemoveEntityMembers_Call) RunAndReturn(run func(ctx context.Context, entityID string, members []string) error) *Repository_RemoveEntityMembers_Call
type Repository_RemoveMemberFromAllRoles_Call ¶ added in v0.17.0
Repository_RemoveMemberFromAllRoles_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoveMemberFromAllRoles'
func (*Repository_RemoveMemberFromAllRoles_Call) Return ¶ added in v0.17.0
func (_c *Repository_RemoveMemberFromAllRoles_Call) Return(err error) *Repository_RemoveMemberFromAllRoles_Call
func (*Repository_RemoveMemberFromAllRoles_Call) Run ¶ added in v0.17.0
func (_c *Repository_RemoveMemberFromAllRoles_Call) Run(run func(ctx context.Context, memberID string)) *Repository_RemoveMemberFromAllRoles_Call
func (*Repository_RemoveMemberFromAllRoles_Call) RunAndReturn ¶ added in v0.17.0
func (_c *Repository_RemoveMemberFromAllRoles_Call) RunAndReturn(run func(ctx context.Context, memberID string) error) *Repository_RemoveMemberFromAllRoles_Call
type Repository_RemoveRoles_Call ¶ added in v0.17.0
Repository_RemoveRoles_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoveRoles'
func (*Repository_RemoveRoles_Call) Return ¶ added in v0.17.0
func (_c *Repository_RemoveRoles_Call) Return(err error) *Repository_RemoveRoles_Call
func (*Repository_RemoveRoles_Call) Run ¶ added in v0.17.0
func (_c *Repository_RemoveRoles_Call) Run(run func(ctx context.Context, roleIDs []string)) *Repository_RemoveRoles_Call
func (*Repository_RemoveRoles_Call) RunAndReturn ¶ added in v0.17.0
func (_c *Repository_RemoveRoles_Call) RunAndReturn(run func(ctx context.Context, roleIDs []string) error) *Repository_RemoveRoles_Call
type Repository_RetrieveAllParentGroups_Call ¶ added in v0.17.0
Repository_RetrieveAllParentGroups_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RetrieveAllParentGroups'
func (*Repository_RetrieveAllParentGroups_Call) Return ¶ added in v0.17.0
func (_c *Repository_RetrieveAllParentGroups_Call) Return(page groups.Page, err error) *Repository_RetrieveAllParentGroups_Call
func (*Repository_RetrieveAllParentGroups_Call) Run ¶ added in v0.17.0
func (_c *Repository_RetrieveAllParentGroups_Call) Run(run func(ctx context.Context, domainID string, userID string, groupID string, pm groups.PageMeta)) *Repository_RetrieveAllParentGroups_Call
func (*Repository_RetrieveAllParentGroups_Call) RunAndReturn ¶ added in v0.17.0
type Repository_RetrieveAllRoles_Call ¶ added in v0.17.0
Repository_RetrieveAllRoles_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RetrieveAllRoles'
func (*Repository_RetrieveAllRoles_Call) Return ¶ added in v0.17.0
func (_c *Repository_RetrieveAllRoles_Call) Return(rolePage roles.RolePage, err error) *Repository_RetrieveAllRoles_Call
func (*Repository_RetrieveAllRoles_Call) Run ¶ added in v0.17.0
func (_c *Repository_RetrieveAllRoles_Call) Run(run func(ctx context.Context, entityID string, limit uint64, offset uint64)) *Repository_RetrieveAllRoles_Call
func (*Repository_RetrieveAllRoles_Call) RunAndReturn ¶ added in v0.17.0
func (_c *Repository_RetrieveAllRoles_Call) RunAndReturn(run func(ctx context.Context, entityID string, limit uint64, offset uint64) (roles.RolePage, error)) *Repository_RetrieveAllRoles_Call
type Repository_RetrieveAll_Call ¶ added in v0.17.0
Repository_RetrieveAll_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RetrieveAll'
func (*Repository_RetrieveAll_Call) Return ¶ added in v0.17.0
func (_c *Repository_RetrieveAll_Call) Return(page groups.Page, err error) *Repository_RetrieveAll_Call
func (*Repository_RetrieveAll_Call) Run ¶ added in v0.17.0
func (_c *Repository_RetrieveAll_Call) Run(run func(ctx context.Context, pm groups.PageMeta)) *Repository_RetrieveAll_Call
func (*Repository_RetrieveAll_Call) RunAndReturn ¶ added in v0.17.0
func (_c *Repository_RetrieveAll_Call) RunAndReturn(run func(ctx context.Context, pm groups.PageMeta) (groups.Page, error)) *Repository_RetrieveAll_Call
type Repository_RetrieveByIDAndUser_Call ¶ added in v0.17.0
Repository_RetrieveByIDAndUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RetrieveByIDAndUser'
func (*Repository_RetrieveByIDAndUser_Call) Return ¶ added in v0.17.0
func (_c *Repository_RetrieveByIDAndUser_Call) Return(group groups.Group, err error) *Repository_RetrieveByIDAndUser_Call
func (*Repository_RetrieveByIDAndUser_Call) Run ¶ added in v0.17.0
func (_c *Repository_RetrieveByIDAndUser_Call) Run(run func(ctx context.Context, domainID string, userID string, groupID string)) *Repository_RetrieveByIDAndUser_Call
func (*Repository_RetrieveByIDAndUser_Call) RunAndReturn ¶ added in v0.17.0
func (_c *Repository_RetrieveByIDAndUser_Call) RunAndReturn(run func(ctx context.Context, domainID string, userID string, groupID string) (groups.Group, error)) *Repository_RetrieveByIDAndUser_Call
type Repository_RetrieveByIDWithRoles_Call ¶ added in v0.17.0
Repository_RetrieveByIDWithRoles_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RetrieveByIDWithRoles'
func (*Repository_RetrieveByIDWithRoles_Call) Return ¶ added in v0.17.0
func (_c *Repository_RetrieveByIDWithRoles_Call) Return(group groups.Group, err error) *Repository_RetrieveByIDWithRoles_Call
func (*Repository_RetrieveByIDWithRoles_Call) Run ¶ added in v0.17.0
func (_c *Repository_RetrieveByIDWithRoles_Call) Run(run func(ctx context.Context, groupID string, memberID string)) *Repository_RetrieveByIDWithRoles_Call
func (*Repository_RetrieveByIDWithRoles_Call) RunAndReturn ¶ added in v0.17.0
func (_c *Repository_RetrieveByIDWithRoles_Call) RunAndReturn(run func(ctx context.Context, groupID string, memberID string) (groups.Group, error)) *Repository_RetrieveByIDWithRoles_Call
type Repository_RetrieveByID_Call ¶ added in v0.17.0
Repository_RetrieveByID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RetrieveByID'
func (*Repository_RetrieveByID_Call) Return ¶ added in v0.17.0
func (_c *Repository_RetrieveByID_Call) Return(group groups.Group, err error) *Repository_RetrieveByID_Call
func (*Repository_RetrieveByID_Call) Run ¶ added in v0.17.0
func (_c *Repository_RetrieveByID_Call) Run(run func(ctx context.Context, id string)) *Repository_RetrieveByID_Call
func (*Repository_RetrieveByID_Call) RunAndReturn ¶ added in v0.17.0
func (_c *Repository_RetrieveByID_Call) RunAndReturn(run func(ctx context.Context, id string) (groups.Group, error)) *Repository_RetrieveByID_Call
type Repository_RetrieveByIDs_Call ¶ added in v0.17.0
Repository_RetrieveByIDs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RetrieveByIDs'
func (*Repository_RetrieveByIDs_Call) Return ¶ added in v0.17.0
func (_c *Repository_RetrieveByIDs_Call) Return(page groups.Page, err error) *Repository_RetrieveByIDs_Call
func (*Repository_RetrieveByIDs_Call) Run ¶ added in v0.17.0
func (_c *Repository_RetrieveByIDs_Call) Run(run func(ctx context.Context, pm groups.PageMeta, ids ...string)) *Repository_RetrieveByIDs_Call
func (*Repository_RetrieveByIDs_Call) RunAndReturn ¶ added in v0.17.0
func (_c *Repository_RetrieveByIDs_Call) RunAndReturn(run func(ctx context.Context, pm groups.PageMeta, ids ...string) (groups.Page, error)) *Repository_RetrieveByIDs_Call
type Repository_RetrieveChildrenGroups_Call ¶ added in v0.17.0
Repository_RetrieveChildrenGroups_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RetrieveChildrenGroups'
func (*Repository_RetrieveChildrenGroups_Call) Return ¶ added in v0.17.0
func (_c *Repository_RetrieveChildrenGroups_Call) Return(page groups.Page, err error) *Repository_RetrieveChildrenGroups_Call
func (*Repository_RetrieveChildrenGroups_Call) RunAndReturn ¶ added in v0.17.0
type Repository_RetrieveEntitiesRolesActionsMembers_Call ¶ added in v0.17.0
Repository_RetrieveEntitiesRolesActionsMembers_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RetrieveEntitiesRolesActionsMembers'
func (*Repository_RetrieveEntitiesRolesActionsMembers_Call) Return ¶ added in v0.17.0
func (_c *Repository_RetrieveEntitiesRolesActionsMembers_Call) Return(entityActionRoles []roles.EntityActionRole, entityMemberRoles []roles.EntityMemberRole, err error) *Repository_RetrieveEntitiesRolesActionsMembers_Call
func (*Repository_RetrieveEntitiesRolesActionsMembers_Call) Run ¶ added in v0.17.0
func (_c *Repository_RetrieveEntitiesRolesActionsMembers_Call) Run(run func(ctx context.Context, entityIDs []string)) *Repository_RetrieveEntitiesRolesActionsMembers_Call
func (*Repository_RetrieveEntitiesRolesActionsMembers_Call) RunAndReturn ¶ added in v0.17.0
func (_c *Repository_RetrieveEntitiesRolesActionsMembers_Call) RunAndReturn(run func(ctx context.Context, entityIDs []string) ([]roles.EntityActionRole, []roles.EntityMemberRole, error)) *Repository_RetrieveEntitiesRolesActionsMembers_Call
type Repository_RetrieveEntityRole_Call ¶ added in v0.17.0
Repository_RetrieveEntityRole_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RetrieveEntityRole'
func (*Repository_RetrieveEntityRole_Call) Return ¶ added in v0.17.0
func (_c *Repository_RetrieveEntityRole_Call) Return(role roles.Role, err error) *Repository_RetrieveEntityRole_Call
func (*Repository_RetrieveEntityRole_Call) Run ¶ added in v0.17.0
func (_c *Repository_RetrieveEntityRole_Call) Run(run func(ctx context.Context, entityID string, roleID string)) *Repository_RetrieveEntityRole_Call
func (*Repository_RetrieveEntityRole_Call) RunAndReturn ¶ added in v0.17.0
func (_c *Repository_RetrieveEntityRole_Call) RunAndReturn(run func(ctx context.Context, entityID string, roleID string) (roles.Role, error)) *Repository_RetrieveEntityRole_Call
type Repository_RetrieveHierarchy_Call ¶ added in v0.17.0
Repository_RetrieveHierarchy_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RetrieveHierarchy'
func (*Repository_RetrieveHierarchy_Call) Return ¶ added in v0.17.0
func (_c *Repository_RetrieveHierarchy_Call) Return(hierarchyPage groups.HierarchyPage, err error) *Repository_RetrieveHierarchy_Call
func (*Repository_RetrieveHierarchy_Call) Run ¶ added in v0.17.0
func (_c *Repository_RetrieveHierarchy_Call) Run(run func(ctx context.Context, domainID string, userID string, groupID string, hm groups.HierarchyPageMeta)) *Repository_RetrieveHierarchy_Call
func (*Repository_RetrieveHierarchy_Call) RunAndReturn ¶ added in v0.17.0
func (_c *Repository_RetrieveHierarchy_Call) RunAndReturn(run func(ctx context.Context, domainID string, userID string, groupID string, hm groups.HierarchyPageMeta) (groups.HierarchyPage, error)) *Repository_RetrieveHierarchy_Call
type Repository_RetrieveRole_Call ¶ added in v0.17.0
Repository_RetrieveRole_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RetrieveRole'
func (*Repository_RetrieveRole_Call) Return ¶ added in v0.17.0
func (_c *Repository_RetrieveRole_Call) Return(role roles.Role, err error) *Repository_RetrieveRole_Call
func (*Repository_RetrieveRole_Call) Run ¶ added in v0.17.0
func (_c *Repository_RetrieveRole_Call) Run(run func(ctx context.Context, roleID string)) *Repository_RetrieveRole_Call
func (*Repository_RetrieveRole_Call) RunAndReturn ¶ added in v0.17.0
func (_c *Repository_RetrieveRole_Call) RunAndReturn(run func(ctx context.Context, roleID string) (roles.Role, error)) *Repository_RetrieveRole_Call
type Repository_RetrieveUserGroups_Call ¶ added in v0.17.0
Repository_RetrieveUserGroups_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RetrieveUserGroups'
func (*Repository_RetrieveUserGroups_Call) Return ¶ added in v0.17.0
func (_c *Repository_RetrieveUserGroups_Call) Return(page groups.Page, err error) *Repository_RetrieveUserGroups_Call
func (*Repository_RetrieveUserGroups_Call) Run ¶ added in v0.17.0
func (_c *Repository_RetrieveUserGroups_Call) Run(run func(ctx context.Context, domainID string, userID string, pm groups.PageMeta)) *Repository_RetrieveUserGroups_Call
func (*Repository_RetrieveUserGroups_Call) RunAndReturn ¶ added in v0.17.0
type Repository_RoleAddActions_Call ¶ added in v0.17.0
Repository_RoleAddActions_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RoleAddActions'
func (*Repository_RoleAddActions_Call) Return ¶ added in v0.17.0
func (_c *Repository_RoleAddActions_Call) Return(ops []string, err error) *Repository_RoleAddActions_Call
func (*Repository_RoleAddActions_Call) Run ¶ added in v0.17.0
func (_c *Repository_RoleAddActions_Call) Run(run func(ctx context.Context, role roles.Role, actions []string)) *Repository_RoleAddActions_Call
func (*Repository_RoleAddActions_Call) RunAndReturn ¶ added in v0.17.0
func (_c *Repository_RoleAddActions_Call) RunAndReturn(run func(ctx context.Context, role roles.Role, actions []string) ([]string, error)) *Repository_RoleAddActions_Call
type Repository_RoleAddMembers_Call ¶ added in v0.17.0
Repository_RoleAddMembers_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RoleAddMembers'
func (*Repository_RoleAddMembers_Call) Return ¶ added in v0.17.0
func (_c *Repository_RoleAddMembers_Call) Return(strings []string, err error) *Repository_RoleAddMembers_Call
func (*Repository_RoleAddMembers_Call) Run ¶ added in v0.17.0
func (_c *Repository_RoleAddMembers_Call) Run(run func(ctx context.Context, role roles.Role, members []string)) *Repository_RoleAddMembers_Call
func (*Repository_RoleAddMembers_Call) RunAndReturn ¶ added in v0.17.0
func (_c *Repository_RoleAddMembers_Call) RunAndReturn(run func(ctx context.Context, role roles.Role, members []string) ([]string, error)) *Repository_RoleAddMembers_Call
type Repository_RoleCheckActionsExists_Call ¶ added in v0.17.0
Repository_RoleCheckActionsExists_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RoleCheckActionsExists'
func (*Repository_RoleCheckActionsExists_Call) Return ¶ added in v0.17.0
func (_c *Repository_RoleCheckActionsExists_Call) Return(b bool, err error) *Repository_RoleCheckActionsExists_Call
func (*Repository_RoleCheckActionsExists_Call) Run ¶ added in v0.17.0
func (_c *Repository_RoleCheckActionsExists_Call) Run(run func(ctx context.Context, roleID string, actions []string)) *Repository_RoleCheckActionsExists_Call
func (*Repository_RoleCheckActionsExists_Call) RunAndReturn ¶ added in v0.17.0
func (_c *Repository_RoleCheckActionsExists_Call) RunAndReturn(run func(ctx context.Context, roleID string, actions []string) (bool, error)) *Repository_RoleCheckActionsExists_Call
type Repository_RoleCheckMembersExists_Call ¶ added in v0.17.0
Repository_RoleCheckMembersExists_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RoleCheckMembersExists'
func (*Repository_RoleCheckMembersExists_Call) Return ¶ added in v0.17.0
func (_c *Repository_RoleCheckMembersExists_Call) Return(b bool, err error) *Repository_RoleCheckMembersExists_Call
func (*Repository_RoleCheckMembersExists_Call) Run ¶ added in v0.17.0
func (_c *Repository_RoleCheckMembersExists_Call) Run(run func(ctx context.Context, roleID string, members []string)) *Repository_RoleCheckMembersExists_Call
func (*Repository_RoleCheckMembersExists_Call) RunAndReturn ¶ added in v0.17.0
func (_c *Repository_RoleCheckMembersExists_Call) RunAndReturn(run func(ctx context.Context, roleID string, members []string) (bool, error)) *Repository_RoleCheckMembersExists_Call
type Repository_RoleListActions_Call ¶ added in v0.17.0
Repository_RoleListActions_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RoleListActions'
func (*Repository_RoleListActions_Call) Return ¶ added in v0.17.0
func (_c *Repository_RoleListActions_Call) Return(strings []string, err error) *Repository_RoleListActions_Call
func (*Repository_RoleListActions_Call) Run ¶ added in v0.17.0
func (_c *Repository_RoleListActions_Call) Run(run func(ctx context.Context, roleID string)) *Repository_RoleListActions_Call
func (*Repository_RoleListActions_Call) RunAndReturn ¶ added in v0.17.0
func (_c *Repository_RoleListActions_Call) RunAndReturn(run func(ctx context.Context, roleID string) ([]string, error)) *Repository_RoleListActions_Call
type Repository_RoleListMembers_Call ¶ added in v0.17.0
Repository_RoleListMembers_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RoleListMembers'
func (*Repository_RoleListMembers_Call) Return ¶ added in v0.17.0
func (_c *Repository_RoleListMembers_Call) Return(membersPage roles.MembersPage, err error) *Repository_RoleListMembers_Call
func (*Repository_RoleListMembers_Call) Run ¶ added in v0.17.0
func (_c *Repository_RoleListMembers_Call) Run(run func(ctx context.Context, roleID string, limit uint64, offset uint64)) *Repository_RoleListMembers_Call
func (*Repository_RoleListMembers_Call) RunAndReturn ¶ added in v0.17.0
func (_c *Repository_RoleListMembers_Call) RunAndReturn(run func(ctx context.Context, roleID string, limit uint64, offset uint64) (roles.MembersPage, error)) *Repository_RoleListMembers_Call
type Repository_RoleRemoveActions_Call ¶ added in v0.17.0
Repository_RoleRemoveActions_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RoleRemoveActions'
func (*Repository_RoleRemoveActions_Call) Return ¶ added in v0.17.0
func (_c *Repository_RoleRemoveActions_Call) Return(err error) *Repository_RoleRemoveActions_Call
func (*Repository_RoleRemoveActions_Call) Run ¶ added in v0.17.0
func (_c *Repository_RoleRemoveActions_Call) Run(run func(ctx context.Context, role roles.Role, actions []string)) *Repository_RoleRemoveActions_Call
func (*Repository_RoleRemoveActions_Call) RunAndReturn ¶ added in v0.17.0
func (_c *Repository_RoleRemoveActions_Call) RunAndReturn(run func(ctx context.Context, role roles.Role, actions []string) error) *Repository_RoleRemoveActions_Call
type Repository_RoleRemoveAllActions_Call ¶ added in v0.17.0
Repository_RoleRemoveAllActions_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RoleRemoveAllActions'
func (*Repository_RoleRemoveAllActions_Call) Return ¶ added in v0.17.0
func (_c *Repository_RoleRemoveAllActions_Call) Return(err error) *Repository_RoleRemoveAllActions_Call
func (*Repository_RoleRemoveAllActions_Call) Run ¶ added in v0.17.0
func (_c *Repository_RoleRemoveAllActions_Call) Run(run func(ctx context.Context, role roles.Role)) *Repository_RoleRemoveAllActions_Call
func (*Repository_RoleRemoveAllActions_Call) RunAndReturn ¶ added in v0.17.0
func (_c *Repository_RoleRemoveAllActions_Call) RunAndReturn(run func(ctx context.Context, role roles.Role) error) *Repository_RoleRemoveAllActions_Call
type Repository_RoleRemoveAllMembers_Call ¶ added in v0.17.0
Repository_RoleRemoveAllMembers_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RoleRemoveAllMembers'
func (*Repository_RoleRemoveAllMembers_Call) Return ¶ added in v0.17.0
func (_c *Repository_RoleRemoveAllMembers_Call) Return(err error) *Repository_RoleRemoveAllMembers_Call
func (*Repository_RoleRemoveAllMembers_Call) Run ¶ added in v0.17.0
func (_c *Repository_RoleRemoveAllMembers_Call) Run(run func(ctx context.Context, role roles.Role)) *Repository_RoleRemoveAllMembers_Call
func (*Repository_RoleRemoveAllMembers_Call) RunAndReturn ¶ added in v0.17.0
func (_c *Repository_RoleRemoveAllMembers_Call) RunAndReturn(run func(ctx context.Context, role roles.Role) error) *Repository_RoleRemoveAllMembers_Call
type Repository_RoleRemoveMembers_Call ¶ added in v0.17.0
Repository_RoleRemoveMembers_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RoleRemoveMembers'
func (*Repository_RoleRemoveMembers_Call) Return ¶ added in v0.17.0
func (_c *Repository_RoleRemoveMembers_Call) Return(err error) *Repository_RoleRemoveMembers_Call
func (*Repository_RoleRemoveMembers_Call) Run ¶ added in v0.17.0
func (_c *Repository_RoleRemoveMembers_Call) Run(run func(ctx context.Context, role roles.Role, members []string)) *Repository_RoleRemoveMembers_Call
func (*Repository_RoleRemoveMembers_Call) RunAndReturn ¶ added in v0.17.0
func (_c *Repository_RoleRemoveMembers_Call) RunAndReturn(run func(ctx context.Context, role roles.Role, members []string) error) *Repository_RoleRemoveMembers_Call
type Repository_Save_Call ¶ added in v0.17.0
Repository_Save_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Save'
func (*Repository_Save_Call) Return ¶ added in v0.17.0
func (_c *Repository_Save_Call) Return(group groups.Group, err error) *Repository_Save_Call
func (*Repository_Save_Call) Run ¶ added in v0.17.0
func (_c *Repository_Save_Call) Run(run func(ctx context.Context, g groups.Group)) *Repository_Save_Call
func (*Repository_Save_Call) RunAndReturn ¶ added in v0.17.0
func (_c *Repository_Save_Call) RunAndReturn(run func(ctx context.Context, g groups.Group) (groups.Group, error)) *Repository_Save_Call
type Repository_UnassignAllChildrenGroups_Call ¶ added in v0.17.0
Repository_UnassignAllChildrenGroups_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UnassignAllChildrenGroups'
func (*Repository_UnassignAllChildrenGroups_Call) Return ¶ added in v0.17.0
func (_c *Repository_UnassignAllChildrenGroups_Call) Return(err error) *Repository_UnassignAllChildrenGroups_Call
func (*Repository_UnassignAllChildrenGroups_Call) Run ¶ added in v0.17.0
func (_c *Repository_UnassignAllChildrenGroups_Call) Run(run func(ctx context.Context, id string)) *Repository_UnassignAllChildrenGroups_Call
func (*Repository_UnassignAllChildrenGroups_Call) RunAndReturn ¶ added in v0.17.0
func (_c *Repository_UnassignAllChildrenGroups_Call) RunAndReturn(run func(ctx context.Context, id string) error) *Repository_UnassignAllChildrenGroups_Call
type Repository_UnassignParentGroup_Call ¶ added in v0.17.0
Repository_UnassignParentGroup_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UnassignParentGroup'
func (*Repository_UnassignParentGroup_Call) Return ¶ added in v0.17.0
func (_c *Repository_UnassignParentGroup_Call) Return(err error) *Repository_UnassignParentGroup_Call
func (*Repository_UnassignParentGroup_Call) Run ¶ added in v0.17.0
func (_c *Repository_UnassignParentGroup_Call) Run(run func(ctx context.Context, parentGroupID string, groupIDs ...string)) *Repository_UnassignParentGroup_Call
func (*Repository_UnassignParentGroup_Call) RunAndReturn ¶ added in v0.17.0
func (_c *Repository_UnassignParentGroup_Call) RunAndReturn(run func(ctx context.Context, parentGroupID string, groupIDs ...string) error) *Repository_UnassignParentGroup_Call
type Repository_UpdateRole_Call ¶ added in v0.17.0
Repository_UpdateRole_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateRole'
func (*Repository_UpdateRole_Call) Return ¶ added in v0.17.0
func (_c *Repository_UpdateRole_Call) Return(role roles.Role, err error) *Repository_UpdateRole_Call
func (*Repository_UpdateRole_Call) Run ¶ added in v0.17.0
func (_c *Repository_UpdateRole_Call) Run(run func(ctx context.Context, ro roles.Role)) *Repository_UpdateRole_Call
func (*Repository_UpdateRole_Call) RunAndReturn ¶ added in v0.17.0
func (_c *Repository_UpdateRole_Call) RunAndReturn(run func(ctx context.Context, ro roles.Role) (roles.Role, error)) *Repository_UpdateRole_Call
type Repository_UpdateTags_Call ¶ added in v0.17.0
Repository_UpdateTags_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateTags'
func (*Repository_UpdateTags_Call) Return ¶ added in v0.17.0
func (_c *Repository_UpdateTags_Call) Return(group groups.Group, err error) *Repository_UpdateTags_Call
func (*Repository_UpdateTags_Call) Run ¶ added in v0.17.0
func (_c *Repository_UpdateTags_Call) Run(run func(ctx context.Context, g groups.Group)) *Repository_UpdateTags_Call
func (*Repository_UpdateTags_Call) RunAndReturn ¶ added in v0.17.0
func (_c *Repository_UpdateTags_Call) RunAndReturn(run func(ctx context.Context, g groups.Group) (groups.Group, error)) *Repository_UpdateTags_Call
type Repository_Update_Call ¶ added in v0.17.0
Repository_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'
func (*Repository_Update_Call) Return ¶ added in v0.17.0
func (_c *Repository_Update_Call) Return(group groups.Group, err error) *Repository_Update_Call
func (*Repository_Update_Call) Run ¶ added in v0.17.0
func (_c *Repository_Update_Call) Run(run func(ctx context.Context, g groups.Group)) *Repository_Update_Call
func (*Repository_Update_Call) RunAndReturn ¶ added in v0.17.0
func (_c *Repository_Update_Call) RunAndReturn(run func(ctx context.Context, g groups.Group) (groups.Group, error)) *Repository_Update_Call
type Service ¶
Service is an autogenerated mock type for the Service type
func NewService ¶
NewService creates a new instance of Service. 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 (*Service) AddChildrenGroups ¶
func (_mock *Service) AddChildrenGroups(ctx context.Context, session authn.Session, id string, childrenGroupIDs []string) error
AddChildrenGroups provides a mock function for the type Service
func (*Service) AddParentGroup ¶
func (_mock *Service) AddParentGroup(ctx context.Context, session authn.Session, id string, parentID string) error
AddParentGroup provides a mock function for the type Service
func (*Service) AddRole ¶
func (_mock *Service) AddRole(ctx context.Context, session authn.Session, entityID string, roleName string, optionalActions []string, optionalMembers []string) (roles.RoleProvision, error)
AddRole provides a mock function for the type Service
func (*Service) CreateGroup ¶
func (_mock *Service) CreateGroup(ctx context.Context, session authn.Session, g groups.Group) (groups.Group, []roles.RoleProvision, error)
CreateGroup provides a mock function for the type Service
func (*Service) DeleteGroup ¶
DeleteGroup provides a mock function for the type Service
func (*Service) DisableGroup ¶
func (_mock *Service) DisableGroup(ctx context.Context, session authn.Session, id string) (groups.Group, error)
DisableGroup provides a mock function for the type Service
func (*Service) EXPECT ¶ added in v0.17.0
func (_m *Service) EXPECT() *Service_Expecter
func (*Service) EnableGroup ¶
func (_mock *Service) EnableGroup(ctx context.Context, session authn.Session, id string) (groups.Group, error)
EnableGroup provides a mock function for the type Service
func (*Service) ListAvailableActions ¶
func (_mock *Service) ListAvailableActions(ctx context.Context, session authn.Session) ([]string, error)
ListAvailableActions provides a mock function for the type Service
func (*Service) ListChildrenGroups ¶
func (_mock *Service) ListChildrenGroups(ctx context.Context, session authn.Session, id string, startLevel int64, endLevel int64, pm groups.PageMeta) (groups.Page, error)
ListChildrenGroups provides a mock function for the type Service
func (*Service) ListEntityMembers ¶ added in v0.17.0
func (_mock *Service) ListEntityMembers(ctx context.Context, session authn.Session, entityID string, pq roles.MembersRolePageQuery) (roles.MembersRolePage, error)
ListEntityMembers provides a mock function for the type Service
func (*Service) ListGroups ¶
func (_mock *Service) ListGroups(ctx context.Context, session authn.Session, pm groups.PageMeta) (groups.Page, error)
ListGroups provides a mock function for the type Service
func (*Service) ListUserGroups ¶
func (_mock *Service) ListUserGroups(ctx context.Context, session authn.Session, userID string, pm groups.PageMeta) (groups.Page, error)
ListUserGroups provides a mock function for the type Service
func (*Service) RemoveAllChildrenGroups ¶
func (_mock *Service) RemoveAllChildrenGroups(ctx context.Context, session authn.Session, id string) error
RemoveAllChildrenGroups provides a mock function for the type Service
func (*Service) RemoveChildrenGroups ¶
func (_mock *Service) RemoveChildrenGroups(ctx context.Context, session authn.Session, id string, childrenGroupIDs []string) error
RemoveChildrenGroups provides a mock function for the type Service
func (*Service) RemoveEntityMembers ¶ added in v0.17.0
func (_mock *Service) RemoveEntityMembers(ctx context.Context, session authn.Session, entityID string, members []string) error
RemoveEntityMembers provides a mock function for the type Service
func (*Service) RemoveMemberFromAllRoles ¶
func (_mock *Service) RemoveMemberFromAllRoles(ctx context.Context, session authn.Session, memberID string) error
RemoveMemberFromAllRoles provides a mock function for the type Service
func (*Service) RemoveParentGroup ¶
func (_mock *Service) RemoveParentGroup(ctx context.Context, session authn.Session, id string) error
RemoveParentGroup provides a mock function for the type Service
func (*Service) RemoveRole ¶
func (_mock *Service) RemoveRole(ctx context.Context, session authn.Session, entityID string, roleID string) error
RemoveRole provides a mock function for the type Service
func (*Service) RetrieveAllRoles ¶
func (_mock *Service) RetrieveAllRoles(ctx context.Context, session authn.Session, entityID string, limit uint64, offset uint64) (roles.RolePage, error)
RetrieveAllRoles provides a mock function for the type Service
func (*Service) RetrieveGroupHierarchy ¶
func (_mock *Service) RetrieveGroupHierarchy(ctx context.Context, session authn.Session, id string, hm groups.HierarchyPageMeta) (groups.HierarchyPage, error)
RetrieveGroupHierarchy provides a mock function for the type Service
func (*Service) RetrieveRole ¶
func (_mock *Service) RetrieveRole(ctx context.Context, session authn.Session, entityID string, roleID string) (roles.Role, error)
RetrieveRole provides a mock function for the type Service
func (*Service) RoleAddActions ¶
func (_mock *Service) RoleAddActions(ctx context.Context, session authn.Session, entityID string, roleID string, actions []string) ([]string, error)
RoleAddActions provides a mock function for the type Service
func (*Service) RoleAddMembers ¶
func (_mock *Service) RoleAddMembers(ctx context.Context, session authn.Session, entityID string, roleID string, members []string) ([]string, error)
RoleAddMembers provides a mock function for the type Service
func (*Service) RoleCheckActionsExists ¶
func (_mock *Service) RoleCheckActionsExists(ctx context.Context, session authn.Session, entityID string, roleID string, actions []string) (bool, error)
RoleCheckActionsExists provides a mock function for the type Service
func (*Service) RoleCheckMembersExists ¶
func (_mock *Service) RoleCheckMembersExists(ctx context.Context, session authn.Session, entityID string, roleID string, members []string) (bool, error)
RoleCheckMembersExists provides a mock function for the type Service
func (*Service) RoleListActions ¶
func (_mock *Service) RoleListActions(ctx context.Context, session authn.Session, entityID string, roleID string) ([]string, error)
RoleListActions provides a mock function for the type Service
func (*Service) RoleListMembers ¶
func (_mock *Service) RoleListMembers(ctx context.Context, session authn.Session, entityID string, roleID string, limit uint64, offset uint64) (roles.MembersPage, error)
RoleListMembers provides a mock function for the type Service
func (*Service) RoleRemoveActions ¶
func (_mock *Service) RoleRemoveActions(ctx context.Context, session authn.Session, entityID string, roleID string, actions []string) error
RoleRemoveActions provides a mock function for the type Service
func (*Service) RoleRemoveAllActions ¶
func (_mock *Service) RoleRemoveAllActions(ctx context.Context, session authn.Session, entityID string, roleID string) error
RoleRemoveAllActions provides a mock function for the type Service
func (*Service) RoleRemoveAllMembers ¶
func (_mock *Service) RoleRemoveAllMembers(ctx context.Context, session authn.Session, entityID string, roleID string) error
RoleRemoveAllMembers provides a mock function for the type Service
func (*Service) RoleRemoveMembers ¶
func (_mock *Service) RoleRemoveMembers(ctx context.Context, session authn.Session, entityID string, roleID string, members []string) error
RoleRemoveMembers provides a mock function for the type Service
func (*Service) UpdateGroup ¶
func (_mock *Service) UpdateGroup(ctx context.Context, session authn.Session, g groups.Group) (groups.Group, error)
UpdateGroup provides a mock function for the type Service
func (*Service) UpdateGroupTags ¶ added in v0.17.0
func (_mock *Service) UpdateGroupTags(ctx context.Context, session authn.Session, group groups.Group) (groups.Group, error)
UpdateGroupTags provides a mock function for the type Service
type Service_AddChildrenGroups_Call ¶ added in v0.17.0
Service_AddChildrenGroups_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddChildrenGroups'
func (*Service_AddChildrenGroups_Call) Return ¶ added in v0.17.0
func (_c *Service_AddChildrenGroups_Call) Return(err error) *Service_AddChildrenGroups_Call
func (*Service_AddChildrenGroups_Call) Run ¶ added in v0.17.0
func (_c *Service_AddChildrenGroups_Call) Run(run func(ctx context.Context, session authn.Session, id string, childrenGroupIDs []string)) *Service_AddChildrenGroups_Call
func (*Service_AddChildrenGroups_Call) RunAndReturn ¶ added in v0.17.0
func (_c *Service_AddChildrenGroups_Call) RunAndReturn(run func(ctx context.Context, session authn.Session, id string, childrenGroupIDs []string) error) *Service_AddChildrenGroups_Call
type Service_AddParentGroup_Call ¶ added in v0.17.0
Service_AddParentGroup_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddParentGroup'
func (*Service_AddParentGroup_Call) Return ¶ added in v0.17.0
func (_c *Service_AddParentGroup_Call) Return(err error) *Service_AddParentGroup_Call
func (*Service_AddParentGroup_Call) Run ¶ added in v0.17.0
func (_c *Service_AddParentGroup_Call) Run(run func(ctx context.Context, session authn.Session, id string, parentID string)) *Service_AddParentGroup_Call
func (*Service_AddParentGroup_Call) RunAndReturn ¶ added in v0.17.0
func (_c *Service_AddParentGroup_Call) RunAndReturn(run func(ctx context.Context, session authn.Session, id string, parentID string) error) *Service_AddParentGroup_Call
type Service_AddRole_Call ¶ added in v0.17.0
Service_AddRole_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddRole'
func (*Service_AddRole_Call) Return ¶ added in v0.17.0
func (_c *Service_AddRole_Call) Return(roleProvision roles.RoleProvision, err error) *Service_AddRole_Call
func (*Service_AddRole_Call) Run ¶ added in v0.17.0
func (_c *Service_AddRole_Call) Run(run func(ctx context.Context, session authn.Session, entityID string, roleName string, optionalActions []string, optionalMembers []string)) *Service_AddRole_Call
func (*Service_AddRole_Call) RunAndReturn ¶ added in v0.17.0
func (_c *Service_AddRole_Call) RunAndReturn(run func(ctx context.Context, session authn.Session, entityID string, roleName string, optionalActions []string, optionalMembers []string) (roles.RoleProvision, error)) *Service_AddRole_Call
type Service_CreateGroup_Call ¶ added in v0.17.0
Service_CreateGroup_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateGroup'
func (*Service_CreateGroup_Call) Return ¶ added in v0.17.0
func (_c *Service_CreateGroup_Call) Return(group groups.Group, roleProvisions []roles.RoleProvision, err error) *Service_CreateGroup_Call
func (*Service_CreateGroup_Call) Run ¶ added in v0.17.0
func (_c *Service_CreateGroup_Call) Run(run func(ctx context.Context, session authn.Session, g groups.Group)) *Service_CreateGroup_Call
func (*Service_CreateGroup_Call) RunAndReturn ¶ added in v0.17.0
func (_c *Service_CreateGroup_Call) RunAndReturn(run func(ctx context.Context, session authn.Session, g groups.Group) (groups.Group, []roles.RoleProvision, error)) *Service_CreateGroup_Call
type Service_DeleteGroup_Call ¶ added in v0.17.0
Service_DeleteGroup_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteGroup'
func (*Service_DeleteGroup_Call) Return ¶ added in v0.17.0
func (_c *Service_DeleteGroup_Call) Return(err error) *Service_DeleteGroup_Call
func (*Service_DeleteGroup_Call) Run ¶ added in v0.17.0
func (_c *Service_DeleteGroup_Call) Run(run func(ctx context.Context, session authn.Session, id string)) *Service_DeleteGroup_Call
func (*Service_DeleteGroup_Call) RunAndReturn ¶ added in v0.17.0
func (_c *Service_DeleteGroup_Call) RunAndReturn(run func(ctx context.Context, session authn.Session, id string) error) *Service_DeleteGroup_Call
type Service_DisableGroup_Call ¶ added in v0.17.0
Service_DisableGroup_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DisableGroup'
func (*Service_DisableGroup_Call) Return ¶ added in v0.17.0
func (_c *Service_DisableGroup_Call) Return(group groups.Group, err error) *Service_DisableGroup_Call
func (*Service_DisableGroup_Call) Run ¶ added in v0.17.0
func (_c *Service_DisableGroup_Call) Run(run func(ctx context.Context, session authn.Session, id string)) *Service_DisableGroup_Call
func (*Service_DisableGroup_Call) RunAndReturn ¶ added in v0.17.0
func (_c *Service_DisableGroup_Call) RunAndReturn(run func(ctx context.Context, session authn.Session, id string) (groups.Group, error)) *Service_DisableGroup_Call
type Service_EnableGroup_Call ¶ added in v0.17.0
Service_EnableGroup_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EnableGroup'
func (*Service_EnableGroup_Call) Return ¶ added in v0.17.0
func (_c *Service_EnableGroup_Call) Return(group groups.Group, err error) *Service_EnableGroup_Call
func (*Service_EnableGroup_Call) Run ¶ added in v0.17.0
func (_c *Service_EnableGroup_Call) Run(run func(ctx context.Context, session authn.Session, id string)) *Service_EnableGroup_Call
func (*Service_EnableGroup_Call) RunAndReturn ¶ added in v0.17.0
func (_c *Service_EnableGroup_Call) RunAndReturn(run func(ctx context.Context, session authn.Session, id string) (groups.Group, error)) *Service_EnableGroup_Call
type Service_Expecter ¶ added in v0.17.0
type Service_Expecter struct {
// contains filtered or unexported fields
}
func (*Service_Expecter) AddChildrenGroups ¶ added in v0.17.0
func (_e *Service_Expecter) AddChildrenGroups(ctx interface{}, session interface{}, id interface{}, childrenGroupIDs interface{}) *Service_AddChildrenGroups_Call
AddChildrenGroups is a helper method to define mock.On call
- ctx context.Context
- session authn.Session
- id string
- childrenGroupIDs []string
func (*Service_Expecter) AddParentGroup ¶ added in v0.17.0
func (_e *Service_Expecter) AddParentGroup(ctx interface{}, session interface{}, id interface{}, parentID interface{}) *Service_AddParentGroup_Call
AddParentGroup is a helper method to define mock.On call
- ctx context.Context
- session authn.Session
- id string
- parentID string
func (*Service_Expecter) AddRole ¶ added in v0.17.0
func (_e *Service_Expecter) AddRole(ctx interface{}, session interface{}, entityID interface{}, roleName interface{}, optionalActions interface{}, optionalMembers interface{}) *Service_AddRole_Call
AddRole is a helper method to define mock.On call
- ctx context.Context
- session authn.Session
- entityID string
- roleName string
- optionalActions []string
- optionalMembers []string
func (*Service_Expecter) CreateGroup ¶ added in v0.17.0
func (_e *Service_Expecter) CreateGroup(ctx interface{}, session interface{}, g interface{}) *Service_CreateGroup_Call
CreateGroup is a helper method to define mock.On call
- ctx context.Context
- session authn.Session
- g groups.Group
func (*Service_Expecter) DeleteGroup ¶ added in v0.17.0
func (_e *Service_Expecter) DeleteGroup(ctx interface{}, session interface{}, id interface{}) *Service_DeleteGroup_Call
DeleteGroup is a helper method to define mock.On call
- ctx context.Context
- session authn.Session
- id string
func (*Service_Expecter) DisableGroup ¶ added in v0.17.0
func (_e *Service_Expecter) DisableGroup(ctx interface{}, session interface{}, id interface{}) *Service_DisableGroup_Call
DisableGroup is a helper method to define mock.On call
- ctx context.Context
- session authn.Session
- id string
func (*Service_Expecter) EnableGroup ¶ added in v0.17.0
func (_e *Service_Expecter) EnableGroup(ctx interface{}, session interface{}, id interface{}) *Service_EnableGroup_Call
EnableGroup is a helper method to define mock.On call
- ctx context.Context
- session authn.Session
- id string
func (*Service_Expecter) ListAvailableActions ¶ added in v0.17.0
func (_e *Service_Expecter) ListAvailableActions(ctx interface{}, session interface{}) *Service_ListAvailableActions_Call
ListAvailableActions is a helper method to define mock.On call
- ctx context.Context
- session authn.Session
func (*Service_Expecter) ListChildrenGroups ¶ added in v0.17.0
func (_e *Service_Expecter) ListChildrenGroups(ctx interface{}, session interface{}, id interface{}, startLevel interface{}, endLevel interface{}, pm interface{}) *Service_ListChildrenGroups_Call
ListChildrenGroups is a helper method to define mock.On call
- ctx context.Context
- session authn.Session
- id string
- startLevel int64
- endLevel int64
- pm groups.PageMeta
func (*Service_Expecter) ListEntityMembers ¶ added in v0.17.0
func (_e *Service_Expecter) ListEntityMembers(ctx interface{}, session interface{}, entityID interface{}, pq interface{}) *Service_ListEntityMembers_Call
ListEntityMembers is a helper method to define mock.On call
- ctx context.Context
- session authn.Session
- entityID string
- pq roles.MembersRolePageQuery
func (*Service_Expecter) ListGroups ¶ added in v0.17.0
func (_e *Service_Expecter) ListGroups(ctx interface{}, session interface{}, pm interface{}) *Service_ListGroups_Call
ListGroups is a helper method to define mock.On call
- ctx context.Context
- session authn.Session
- pm groups.PageMeta
func (*Service_Expecter) ListUserGroups ¶ added in v0.17.0
func (_e *Service_Expecter) ListUserGroups(ctx interface{}, session interface{}, userID interface{}, pm interface{}) *Service_ListUserGroups_Call
ListUserGroups is a helper method to define mock.On call
- ctx context.Context
- session authn.Session
- userID string
- pm groups.PageMeta
func (*Service_Expecter) RemoveAllChildrenGroups ¶ added in v0.17.0
func (_e *Service_Expecter) RemoveAllChildrenGroups(ctx interface{}, session interface{}, id interface{}) *Service_RemoveAllChildrenGroups_Call
RemoveAllChildrenGroups is a helper method to define mock.On call
- ctx context.Context
- session authn.Session
- id string
func (*Service_Expecter) RemoveChildrenGroups ¶ added in v0.17.0
func (_e *Service_Expecter) RemoveChildrenGroups(ctx interface{}, session interface{}, id interface{}, childrenGroupIDs interface{}) *Service_RemoveChildrenGroups_Call
RemoveChildrenGroups is a helper method to define mock.On call
- ctx context.Context
- session authn.Session
- id string
- childrenGroupIDs []string
func (*Service_Expecter) RemoveEntityMembers ¶ added in v0.17.0
func (_e *Service_Expecter) RemoveEntityMembers(ctx interface{}, session interface{}, entityID interface{}, members interface{}) *Service_RemoveEntityMembers_Call
RemoveEntityMembers is a helper method to define mock.On call
- ctx context.Context
- session authn.Session
- entityID string
- members []string
func (*Service_Expecter) RemoveMemberFromAllRoles ¶ added in v0.17.0
func (_e *Service_Expecter) RemoveMemberFromAllRoles(ctx interface{}, session interface{}, memberID interface{}) *Service_RemoveMemberFromAllRoles_Call
RemoveMemberFromAllRoles is a helper method to define mock.On call
- ctx context.Context
- session authn.Session
- memberID string
func (*Service_Expecter) RemoveParentGroup ¶ added in v0.17.0
func (_e *Service_Expecter) RemoveParentGroup(ctx interface{}, session interface{}, id interface{}) *Service_RemoveParentGroup_Call
RemoveParentGroup is a helper method to define mock.On call
- ctx context.Context
- session authn.Session
- id string
func (*Service_Expecter) RemoveRole ¶ added in v0.17.0
func (_e *Service_Expecter) RemoveRole(ctx interface{}, session interface{}, entityID interface{}, roleID interface{}) *Service_RemoveRole_Call
RemoveRole is a helper method to define mock.On call
- ctx context.Context
- session authn.Session
- entityID string
- roleID string
func (*Service_Expecter) RetrieveAllRoles ¶ added in v0.17.0
func (_e *Service_Expecter) RetrieveAllRoles(ctx interface{}, session interface{}, entityID interface{}, limit interface{}, offset interface{}) *Service_RetrieveAllRoles_Call
RetrieveAllRoles is a helper method to define mock.On call
- ctx context.Context
- session authn.Session
- entityID string
- limit uint64
- offset uint64
func (*Service_Expecter) RetrieveGroupHierarchy ¶ added in v0.17.0
func (_e *Service_Expecter) RetrieveGroupHierarchy(ctx interface{}, session interface{}, id interface{}, hm interface{}) *Service_RetrieveGroupHierarchy_Call
RetrieveGroupHierarchy is a helper method to define mock.On call
- ctx context.Context
- session authn.Session
- id string
- hm groups.HierarchyPageMeta
func (*Service_Expecter) RetrieveRole ¶ added in v0.17.0
func (_e *Service_Expecter) RetrieveRole(ctx interface{}, session interface{}, entityID interface{}, roleID interface{}) *Service_RetrieveRole_Call
RetrieveRole is a helper method to define mock.On call
- ctx context.Context
- session authn.Session
- entityID string
- roleID string
func (*Service_Expecter) RoleAddActions ¶ added in v0.17.0
func (_e *Service_Expecter) RoleAddActions(ctx interface{}, session interface{}, entityID interface{}, roleID interface{}, actions interface{}) *Service_RoleAddActions_Call
RoleAddActions is a helper method to define mock.On call
- ctx context.Context
- session authn.Session
- entityID string
- roleID string
- actions []string
func (*Service_Expecter) RoleAddMembers ¶ added in v0.17.0
func (_e *Service_Expecter) RoleAddMembers(ctx interface{}, session interface{}, entityID interface{}, roleID interface{}, members interface{}) *Service_RoleAddMembers_Call
RoleAddMembers is a helper method to define mock.On call
- ctx context.Context
- session authn.Session
- entityID string
- roleID string
- members []string
func (*Service_Expecter) RoleCheckActionsExists ¶ added in v0.17.0
func (_e *Service_Expecter) RoleCheckActionsExists(ctx interface{}, session interface{}, entityID interface{}, roleID interface{}, actions interface{}) *Service_RoleCheckActionsExists_Call
RoleCheckActionsExists is a helper method to define mock.On call
- ctx context.Context
- session authn.Session
- entityID string
- roleID string
- actions []string
func (*Service_Expecter) RoleCheckMembersExists ¶ added in v0.17.0
func (_e *Service_Expecter) RoleCheckMembersExists(ctx interface{}, session interface{}, entityID interface{}, roleID interface{}, members interface{}) *Service_RoleCheckMembersExists_Call
RoleCheckMembersExists is a helper method to define mock.On call
- ctx context.Context
- session authn.Session
- entityID string
- roleID string
- members []string
func (*Service_Expecter) RoleListActions ¶ added in v0.17.0
func (_e *Service_Expecter) RoleListActions(ctx interface{}, session interface{}, entityID interface{}, roleID interface{}) *Service_RoleListActions_Call
RoleListActions is a helper method to define mock.On call
- ctx context.Context
- session authn.Session
- entityID string
- roleID string
func (*Service_Expecter) RoleListMembers ¶ added in v0.17.0
func (_e *Service_Expecter) RoleListMembers(ctx interface{}, session interface{}, entityID interface{}, roleID interface{}, limit interface{}, offset interface{}) *Service_RoleListMembers_Call
RoleListMembers is a helper method to define mock.On call
- ctx context.Context
- session authn.Session
- entityID string
- roleID string
- limit uint64
- offset uint64
func (*Service_Expecter) RoleRemoveActions ¶ added in v0.17.0
func (_e *Service_Expecter) RoleRemoveActions(ctx interface{}, session interface{}, entityID interface{}, roleID interface{}, actions interface{}) *Service_RoleRemoveActions_Call
RoleRemoveActions is a helper method to define mock.On call
- ctx context.Context
- session authn.Session
- entityID string
- roleID string
- actions []string
func (*Service_Expecter) RoleRemoveAllActions ¶ added in v0.17.0
func (_e *Service_Expecter) RoleRemoveAllActions(ctx interface{}, session interface{}, entityID interface{}, roleID interface{}) *Service_RoleRemoveAllActions_Call
RoleRemoveAllActions is a helper method to define mock.On call
- ctx context.Context
- session authn.Session
- entityID string
- roleID string
func (*Service_Expecter) RoleRemoveAllMembers ¶ added in v0.17.0
func (_e *Service_Expecter) RoleRemoveAllMembers(ctx interface{}, session interface{}, entityID interface{}, roleID interface{}) *Service_RoleRemoveAllMembers_Call
RoleRemoveAllMembers is a helper method to define mock.On call
- ctx context.Context
- session authn.Session
- entityID string
- roleID string
func (*Service_Expecter) RoleRemoveMembers ¶ added in v0.17.0
func (_e *Service_Expecter) RoleRemoveMembers(ctx interface{}, session interface{}, entityID interface{}, roleID interface{}, members interface{}) *Service_RoleRemoveMembers_Call
RoleRemoveMembers is a helper method to define mock.On call
- ctx context.Context
- session authn.Session
- entityID string
- roleID string
- members []string
func (*Service_Expecter) UpdateGroup ¶ added in v0.17.0
func (_e *Service_Expecter) UpdateGroup(ctx interface{}, session interface{}, g interface{}) *Service_UpdateGroup_Call
UpdateGroup is a helper method to define mock.On call
- ctx context.Context
- session authn.Session
- g groups.Group
func (*Service_Expecter) UpdateGroupTags ¶ added in v0.17.0
func (_e *Service_Expecter) UpdateGroupTags(ctx interface{}, session interface{}, group interface{}) *Service_UpdateGroupTags_Call
UpdateGroupTags is a helper method to define mock.On call
- ctx context.Context
- session authn.Session
- group groups.Group
func (*Service_Expecter) UpdateRoleName ¶ added in v0.17.0
func (_e *Service_Expecter) UpdateRoleName(ctx interface{}, session interface{}, entityID interface{}, roleID interface{}, newRoleName interface{}) *Service_UpdateRoleName_Call
UpdateRoleName is a helper method to define mock.On call
- ctx context.Context
- session authn.Session
- entityID string
- roleID string
- newRoleName string
func (*Service_Expecter) ViewGroup ¶ added in v0.17.0
func (_e *Service_Expecter) ViewGroup(ctx interface{}, session interface{}, id interface{}, withRoles interface{}) *Service_ViewGroup_Call
ViewGroup is a helper method to define mock.On call
- ctx context.Context
- session authn.Session
- id string
- withRoles bool
type Service_ListAvailableActions_Call ¶ added in v0.17.0
Service_ListAvailableActions_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListAvailableActions'
func (*Service_ListAvailableActions_Call) Return ¶ added in v0.17.0
func (_c *Service_ListAvailableActions_Call) Return(strings []string, err error) *Service_ListAvailableActions_Call
func (*Service_ListAvailableActions_Call) Run ¶ added in v0.17.0
func (_c *Service_ListAvailableActions_Call) Run(run func(ctx context.Context, session authn.Session)) *Service_ListAvailableActions_Call
func (*Service_ListAvailableActions_Call) RunAndReturn ¶ added in v0.17.0
func (_c *Service_ListAvailableActions_Call) RunAndReturn(run func(ctx context.Context, session authn.Session) ([]string, error)) *Service_ListAvailableActions_Call
type Service_ListChildrenGroups_Call ¶ added in v0.17.0
Service_ListChildrenGroups_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListChildrenGroups'
func (*Service_ListChildrenGroups_Call) Return ¶ added in v0.17.0
func (_c *Service_ListChildrenGroups_Call) Return(page groups.Page, err error) *Service_ListChildrenGroups_Call
func (*Service_ListChildrenGroups_Call) RunAndReturn ¶ added in v0.17.0
type Service_ListEntityMembers_Call ¶ added in v0.17.0
Service_ListEntityMembers_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListEntityMembers'
func (*Service_ListEntityMembers_Call) Return ¶ added in v0.17.0
func (_c *Service_ListEntityMembers_Call) Return(membersRolePage roles.MembersRolePage, err error) *Service_ListEntityMembers_Call
func (*Service_ListEntityMembers_Call) Run ¶ added in v0.17.0
func (_c *Service_ListEntityMembers_Call) Run(run func(ctx context.Context, session authn.Session, entityID string, pq roles.MembersRolePageQuery)) *Service_ListEntityMembers_Call
func (*Service_ListEntityMembers_Call) RunAndReturn ¶ added in v0.17.0
func (_c *Service_ListEntityMembers_Call) RunAndReturn(run func(ctx context.Context, session authn.Session, entityID string, pq roles.MembersRolePageQuery) (roles.MembersRolePage, error)) *Service_ListEntityMembers_Call
type Service_ListGroups_Call ¶ added in v0.17.0
Service_ListGroups_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListGroups'
func (*Service_ListGroups_Call) Return ¶ added in v0.17.0
func (_c *Service_ListGroups_Call) Return(page groups.Page, err error) *Service_ListGroups_Call
func (*Service_ListGroups_Call) Run ¶ added in v0.17.0
func (_c *Service_ListGroups_Call) Run(run func(ctx context.Context, session authn.Session, pm groups.PageMeta)) *Service_ListGroups_Call
func (*Service_ListGroups_Call) RunAndReturn ¶ added in v0.17.0
type Service_ListUserGroups_Call ¶ added in v0.17.0
Service_ListUserGroups_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListUserGroups'
func (*Service_ListUserGroups_Call) Return ¶ added in v0.17.0
func (_c *Service_ListUserGroups_Call) Return(page groups.Page, err error) *Service_ListUserGroups_Call
func (*Service_ListUserGroups_Call) Run ¶ added in v0.17.0
func (_c *Service_ListUserGroups_Call) Run(run func(ctx context.Context, session authn.Session, userID string, pm groups.PageMeta)) *Service_ListUserGroups_Call
func (*Service_ListUserGroups_Call) RunAndReturn ¶ added in v0.17.0
type Service_RemoveAllChildrenGroups_Call ¶ added in v0.17.0
Service_RemoveAllChildrenGroups_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoveAllChildrenGroups'
func (*Service_RemoveAllChildrenGroups_Call) Return ¶ added in v0.17.0
func (_c *Service_RemoveAllChildrenGroups_Call) Return(err error) *Service_RemoveAllChildrenGroups_Call
func (*Service_RemoveAllChildrenGroups_Call) Run ¶ added in v0.17.0
func (_c *Service_RemoveAllChildrenGroups_Call) Run(run func(ctx context.Context, session authn.Session, id string)) *Service_RemoveAllChildrenGroups_Call
func (*Service_RemoveAllChildrenGroups_Call) RunAndReturn ¶ added in v0.17.0
func (_c *Service_RemoveAllChildrenGroups_Call) RunAndReturn(run func(ctx context.Context, session authn.Session, id string) error) *Service_RemoveAllChildrenGroups_Call
type Service_RemoveChildrenGroups_Call ¶ added in v0.17.0
Service_RemoveChildrenGroups_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoveChildrenGroups'
func (*Service_RemoveChildrenGroups_Call) Return ¶ added in v0.17.0
func (_c *Service_RemoveChildrenGroups_Call) Return(err error) *Service_RemoveChildrenGroups_Call
func (*Service_RemoveChildrenGroups_Call) Run ¶ added in v0.17.0
func (_c *Service_RemoveChildrenGroups_Call) Run(run func(ctx context.Context, session authn.Session, id string, childrenGroupIDs []string)) *Service_RemoveChildrenGroups_Call
func (*Service_RemoveChildrenGroups_Call) RunAndReturn ¶ added in v0.17.0
func (_c *Service_RemoveChildrenGroups_Call) RunAndReturn(run func(ctx context.Context, session authn.Session, id string, childrenGroupIDs []string) error) *Service_RemoveChildrenGroups_Call
type Service_RemoveEntityMembers_Call ¶ added in v0.17.0
Service_RemoveEntityMembers_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoveEntityMembers'
func (*Service_RemoveEntityMembers_Call) Return ¶ added in v0.17.0
func (_c *Service_RemoveEntityMembers_Call) Return(err error) *Service_RemoveEntityMembers_Call
func (*Service_RemoveEntityMembers_Call) Run ¶ added in v0.17.0
func (_c *Service_RemoveEntityMembers_Call) Run(run func(ctx context.Context, session authn.Session, entityID string, members []string)) *Service_RemoveEntityMembers_Call
func (*Service_RemoveEntityMembers_Call) RunAndReturn ¶ added in v0.17.0
func (_c *Service_RemoveEntityMembers_Call) RunAndReturn(run func(ctx context.Context, session authn.Session, entityID string, members []string) error) *Service_RemoveEntityMembers_Call
type Service_RemoveMemberFromAllRoles_Call ¶ added in v0.17.0
Service_RemoveMemberFromAllRoles_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoveMemberFromAllRoles'
func (*Service_RemoveMemberFromAllRoles_Call) Return ¶ added in v0.17.0
func (_c *Service_RemoveMemberFromAllRoles_Call) Return(err error) *Service_RemoveMemberFromAllRoles_Call
func (*Service_RemoveMemberFromAllRoles_Call) Run ¶ added in v0.17.0
func (_c *Service_RemoveMemberFromAllRoles_Call) Run(run func(ctx context.Context, session authn.Session, memberID string)) *Service_RemoveMemberFromAllRoles_Call
func (*Service_RemoveMemberFromAllRoles_Call) RunAndReturn ¶ added in v0.17.0
func (_c *Service_RemoveMemberFromAllRoles_Call) RunAndReturn(run func(ctx context.Context, session authn.Session, memberID string) error) *Service_RemoveMemberFromAllRoles_Call
type Service_RemoveParentGroup_Call ¶ added in v0.17.0
Service_RemoveParentGroup_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoveParentGroup'
func (*Service_RemoveParentGroup_Call) Return ¶ added in v0.17.0
func (_c *Service_RemoveParentGroup_Call) Return(err error) *Service_RemoveParentGroup_Call
func (*Service_RemoveParentGroup_Call) Run ¶ added in v0.17.0
func (_c *Service_RemoveParentGroup_Call) Run(run func(ctx context.Context, session authn.Session, id string)) *Service_RemoveParentGroup_Call
func (*Service_RemoveParentGroup_Call) RunAndReturn ¶ added in v0.17.0
func (_c *Service_RemoveParentGroup_Call) RunAndReturn(run func(ctx context.Context, session authn.Session, id string) error) *Service_RemoveParentGroup_Call
type Service_RemoveRole_Call ¶ added in v0.17.0
Service_RemoveRole_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoveRole'
func (*Service_RemoveRole_Call) Return ¶ added in v0.17.0
func (_c *Service_RemoveRole_Call) Return(err error) *Service_RemoveRole_Call
func (*Service_RemoveRole_Call) Run ¶ added in v0.17.0
func (_c *Service_RemoveRole_Call) Run(run func(ctx context.Context, session authn.Session, entityID string, roleID string)) *Service_RemoveRole_Call
func (*Service_RemoveRole_Call) RunAndReturn ¶ added in v0.17.0
func (_c *Service_RemoveRole_Call) RunAndReturn(run func(ctx context.Context, session authn.Session, entityID string, roleID string) error) *Service_RemoveRole_Call
type Service_RetrieveAllRoles_Call ¶ added in v0.17.0
Service_RetrieveAllRoles_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RetrieveAllRoles'
func (*Service_RetrieveAllRoles_Call) Return ¶ added in v0.17.0
func (_c *Service_RetrieveAllRoles_Call) Return(rolePage roles.RolePage, err error) *Service_RetrieveAllRoles_Call
func (*Service_RetrieveAllRoles_Call) Run ¶ added in v0.17.0
func (_c *Service_RetrieveAllRoles_Call) Run(run func(ctx context.Context, session authn.Session, entityID string, limit uint64, offset uint64)) *Service_RetrieveAllRoles_Call
func (*Service_RetrieveAllRoles_Call) RunAndReturn ¶ added in v0.17.0
type Service_RetrieveGroupHierarchy_Call ¶ added in v0.17.0
Service_RetrieveGroupHierarchy_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RetrieveGroupHierarchy'
func (*Service_RetrieveGroupHierarchy_Call) Return ¶ added in v0.17.0
func (_c *Service_RetrieveGroupHierarchy_Call) Return(hierarchyPage groups.HierarchyPage, err error) *Service_RetrieveGroupHierarchy_Call
func (*Service_RetrieveGroupHierarchy_Call) Run ¶ added in v0.17.0
func (_c *Service_RetrieveGroupHierarchy_Call) Run(run func(ctx context.Context, session authn.Session, id string, hm groups.HierarchyPageMeta)) *Service_RetrieveGroupHierarchy_Call
func (*Service_RetrieveGroupHierarchy_Call) RunAndReturn ¶ added in v0.17.0
func (_c *Service_RetrieveGroupHierarchy_Call) RunAndReturn(run func(ctx context.Context, session authn.Session, id string, hm groups.HierarchyPageMeta) (groups.HierarchyPage, error)) *Service_RetrieveGroupHierarchy_Call
type Service_RetrieveRole_Call ¶ added in v0.17.0
Service_RetrieveRole_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RetrieveRole'
func (*Service_RetrieveRole_Call) Return ¶ added in v0.17.0
func (_c *Service_RetrieveRole_Call) Return(role roles.Role, err error) *Service_RetrieveRole_Call
func (*Service_RetrieveRole_Call) Run ¶ added in v0.17.0
func (_c *Service_RetrieveRole_Call) Run(run func(ctx context.Context, session authn.Session, entityID string, roleID string)) *Service_RetrieveRole_Call
func (*Service_RetrieveRole_Call) RunAndReturn ¶ added in v0.17.0
type Service_RoleAddActions_Call ¶ added in v0.17.0
Service_RoleAddActions_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RoleAddActions'
func (*Service_RoleAddActions_Call) Return ¶ added in v0.17.0
func (_c *Service_RoleAddActions_Call) Return(ops []string, err error) *Service_RoleAddActions_Call
func (*Service_RoleAddActions_Call) Run ¶ added in v0.17.0
func (_c *Service_RoleAddActions_Call) Run(run func(ctx context.Context, session authn.Session, entityID string, roleID string, actions []string)) *Service_RoleAddActions_Call
func (*Service_RoleAddActions_Call) RunAndReturn ¶ added in v0.17.0
type Service_RoleAddMembers_Call ¶ added in v0.17.0
Service_RoleAddMembers_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RoleAddMembers'
func (*Service_RoleAddMembers_Call) Return ¶ added in v0.17.0
func (_c *Service_RoleAddMembers_Call) Return(strings []string, err error) *Service_RoleAddMembers_Call
func (*Service_RoleAddMembers_Call) Run ¶ added in v0.17.0
func (_c *Service_RoleAddMembers_Call) Run(run func(ctx context.Context, session authn.Session, entityID string, roleID string, members []string)) *Service_RoleAddMembers_Call
func (*Service_RoleAddMembers_Call) RunAndReturn ¶ added in v0.17.0
type Service_RoleCheckActionsExists_Call ¶ added in v0.17.0
Service_RoleCheckActionsExists_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RoleCheckActionsExists'
func (*Service_RoleCheckActionsExists_Call) Return ¶ added in v0.17.0
func (_c *Service_RoleCheckActionsExists_Call) Return(b bool, err error) *Service_RoleCheckActionsExists_Call
func (*Service_RoleCheckActionsExists_Call) Run ¶ added in v0.17.0
func (_c *Service_RoleCheckActionsExists_Call) Run(run func(ctx context.Context, session authn.Session, entityID string, roleID string, actions []string)) *Service_RoleCheckActionsExists_Call
func (*Service_RoleCheckActionsExists_Call) RunAndReturn ¶ added in v0.17.0
type Service_RoleCheckMembersExists_Call ¶ added in v0.17.0
Service_RoleCheckMembersExists_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RoleCheckMembersExists'
func (*Service_RoleCheckMembersExists_Call) Return ¶ added in v0.17.0
func (_c *Service_RoleCheckMembersExists_Call) Return(b bool, err error) *Service_RoleCheckMembersExists_Call
func (*Service_RoleCheckMembersExists_Call) Run ¶ added in v0.17.0
func (_c *Service_RoleCheckMembersExists_Call) Run(run func(ctx context.Context, session authn.Session, entityID string, roleID string, members []string)) *Service_RoleCheckMembersExists_Call
func (*Service_RoleCheckMembersExists_Call) RunAndReturn ¶ added in v0.17.0
type Service_RoleListActions_Call ¶ added in v0.17.0
Service_RoleListActions_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RoleListActions'
func (*Service_RoleListActions_Call) Return ¶ added in v0.17.0
func (_c *Service_RoleListActions_Call) Return(strings []string, err error) *Service_RoleListActions_Call
func (*Service_RoleListActions_Call) Run ¶ added in v0.17.0
func (_c *Service_RoleListActions_Call) Run(run func(ctx context.Context, session authn.Session, entityID string, roleID string)) *Service_RoleListActions_Call
func (*Service_RoleListActions_Call) RunAndReturn ¶ added in v0.17.0
func (_c *Service_RoleListActions_Call) RunAndReturn(run func(ctx context.Context, session authn.Session, entityID string, roleID string) ([]string, error)) *Service_RoleListActions_Call
type Service_RoleListMembers_Call ¶ added in v0.17.0
Service_RoleListMembers_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RoleListMembers'
func (*Service_RoleListMembers_Call) Return ¶ added in v0.17.0
func (_c *Service_RoleListMembers_Call) Return(membersPage roles.MembersPage, err error) *Service_RoleListMembers_Call
func (*Service_RoleListMembers_Call) Run ¶ added in v0.17.0
func (_c *Service_RoleListMembers_Call) Run(run func(ctx context.Context, session authn.Session, entityID string, roleID string, limit uint64, offset uint64)) *Service_RoleListMembers_Call
func (*Service_RoleListMembers_Call) RunAndReturn ¶ added in v0.17.0
func (_c *Service_RoleListMembers_Call) RunAndReturn(run func(ctx context.Context, session authn.Session, entityID string, roleID string, limit uint64, offset uint64) (roles.MembersPage, error)) *Service_RoleListMembers_Call
type Service_RoleRemoveActions_Call ¶ added in v0.17.0
Service_RoleRemoveActions_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RoleRemoveActions'
func (*Service_RoleRemoveActions_Call) Return ¶ added in v0.17.0
func (_c *Service_RoleRemoveActions_Call) Return(err error) *Service_RoleRemoveActions_Call
func (*Service_RoleRemoveActions_Call) Run ¶ added in v0.17.0
func (_c *Service_RoleRemoveActions_Call) Run(run func(ctx context.Context, session authn.Session, entityID string, roleID string, actions []string)) *Service_RoleRemoveActions_Call
func (*Service_RoleRemoveActions_Call) RunAndReturn ¶ added in v0.17.0
func (_c *Service_RoleRemoveActions_Call) RunAndReturn(run func(ctx context.Context, session authn.Session, entityID string, roleID string, actions []string) error) *Service_RoleRemoveActions_Call
type Service_RoleRemoveAllActions_Call ¶ added in v0.17.0
Service_RoleRemoveAllActions_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RoleRemoveAllActions'
func (*Service_RoleRemoveAllActions_Call) Return ¶ added in v0.17.0
func (_c *Service_RoleRemoveAllActions_Call) Return(err error) *Service_RoleRemoveAllActions_Call
func (*Service_RoleRemoveAllActions_Call) Run ¶ added in v0.17.0
func (_c *Service_RoleRemoveAllActions_Call) Run(run func(ctx context.Context, session authn.Session, entityID string, roleID string)) *Service_RoleRemoveAllActions_Call
func (*Service_RoleRemoveAllActions_Call) RunAndReturn ¶ added in v0.17.0
func (_c *Service_RoleRemoveAllActions_Call) RunAndReturn(run func(ctx context.Context, session authn.Session, entityID string, roleID string) error) *Service_RoleRemoveAllActions_Call
type Service_RoleRemoveAllMembers_Call ¶ added in v0.17.0
Service_RoleRemoveAllMembers_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RoleRemoveAllMembers'
func (*Service_RoleRemoveAllMembers_Call) Return ¶ added in v0.17.0
func (_c *Service_RoleRemoveAllMembers_Call) Return(err error) *Service_RoleRemoveAllMembers_Call
func (*Service_RoleRemoveAllMembers_Call) Run ¶ added in v0.17.0
func (_c *Service_RoleRemoveAllMembers_Call) Run(run func(ctx context.Context, session authn.Session, entityID string, roleID string)) *Service_RoleRemoveAllMembers_Call
func (*Service_RoleRemoveAllMembers_Call) RunAndReturn ¶ added in v0.17.0
func (_c *Service_RoleRemoveAllMembers_Call) RunAndReturn(run func(ctx context.Context, session authn.Session, entityID string, roleID string) error) *Service_RoleRemoveAllMembers_Call
type Service_RoleRemoveMembers_Call ¶ added in v0.17.0
Service_RoleRemoveMembers_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RoleRemoveMembers'
func (*Service_RoleRemoveMembers_Call) Return ¶ added in v0.17.0
func (_c *Service_RoleRemoveMembers_Call) Return(err error) *Service_RoleRemoveMembers_Call
func (*Service_RoleRemoveMembers_Call) Run ¶ added in v0.17.0
func (_c *Service_RoleRemoveMembers_Call) Run(run func(ctx context.Context, session authn.Session, entityID string, roleID string, members []string)) *Service_RoleRemoveMembers_Call
func (*Service_RoleRemoveMembers_Call) RunAndReturn ¶ added in v0.17.0
func (_c *Service_RoleRemoveMembers_Call) RunAndReturn(run func(ctx context.Context, session authn.Session, entityID string, roleID string, members []string) error) *Service_RoleRemoveMembers_Call
type Service_UpdateGroupTags_Call ¶ added in v0.17.0
Service_UpdateGroupTags_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateGroupTags'
func (*Service_UpdateGroupTags_Call) Return ¶ added in v0.17.0
func (_c *Service_UpdateGroupTags_Call) Return(group1 groups.Group, err error) *Service_UpdateGroupTags_Call
func (*Service_UpdateGroupTags_Call) Run ¶ added in v0.17.0
func (_c *Service_UpdateGroupTags_Call) Run(run func(ctx context.Context, session authn.Session, group groups.Group)) *Service_UpdateGroupTags_Call
func (*Service_UpdateGroupTags_Call) RunAndReturn ¶ added in v0.17.0
type Service_UpdateGroup_Call ¶ added in v0.17.0
Service_UpdateGroup_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateGroup'
func (*Service_UpdateGroup_Call) Return ¶ added in v0.17.0
func (_c *Service_UpdateGroup_Call) Return(group groups.Group, err error) *Service_UpdateGroup_Call
func (*Service_UpdateGroup_Call) Run ¶ added in v0.17.0
func (_c *Service_UpdateGroup_Call) Run(run func(ctx context.Context, session authn.Session, g groups.Group)) *Service_UpdateGroup_Call
func (*Service_UpdateGroup_Call) RunAndReturn ¶ added in v0.17.0
type Service_UpdateRoleName_Call ¶ added in v0.17.0
Service_UpdateRoleName_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateRoleName'
func (*Service_UpdateRoleName_Call) Return ¶ added in v0.17.0
func (_c *Service_UpdateRoleName_Call) Return(role roles.Role, err error) *Service_UpdateRoleName_Call
func (*Service_UpdateRoleName_Call) Run ¶ added in v0.17.0
func (_c *Service_UpdateRoleName_Call) Run(run func(ctx context.Context, session authn.Session, entityID string, roleID string, newRoleName string)) *Service_UpdateRoleName_Call
func (*Service_UpdateRoleName_Call) RunAndReturn ¶ added in v0.17.0
type Service_ViewGroup_Call ¶ added in v0.17.0
Service_ViewGroup_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ViewGroup'
func (*Service_ViewGroup_Call) Return ¶ added in v0.17.0
func (_c *Service_ViewGroup_Call) Return(group groups.Group, err error) *Service_ViewGroup_Call
func (*Service_ViewGroup_Call) Run ¶ added in v0.17.0
func (_c *Service_ViewGroup_Call) Run(run func(ctx context.Context, session authn.Session, id string, withRoles bool)) *Service_ViewGroup_Call