mocks

package
v0.18.2 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package mocks contains mocks for testing purposes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GroupsServiceClient

type GroupsServiceClient struct {
	mock.Mock
}

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 (*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

type GroupsServiceClient_RetrieveEntity_Call struct {
	*mock.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

type Repository struct {
	mock.Mock
}

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

func (_mock *Repository) RetrieveAll(ctx context.Context, pm groups.PageMeta) (groups.Page, error)

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

func (_mock *Repository) RetrieveByID(ctx context.Context, id string) (groups.Group, error)

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

func (_mock *Repository) RetrieveRole(ctx context.Context, roleID string) (roles.Role, error)

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

func (_mock *Repository) RoleListActions(ctx context.Context, roleID string) ([]string, error)

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

func (_mock *Repository) RoleRemoveAllActions(ctx context.Context, role roles.Role) error

RoleRemoveAllActions provides a mock function for the type Repository

func (*Repository) RoleRemoveAllMembers

func (_mock *Repository) RoleRemoveAllMembers(ctx context.Context, role roles.Role) error

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) Save

func (_mock *Repository) Save(ctx context.Context, g groups.Group) (groups.Group, error)

Save 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) Update

func (_mock *Repository) Update(ctx context.Context, g groups.Group) (groups.Group, error)

Update provides a mock function for the type Repository

func (*Repository) UpdateRole

func (_mock *Repository) UpdateRole(ctx context.Context, ro roles.Role) (roles.Role, error)

UpdateRole provides a mock function for the type Repository

func (*Repository) UpdateTags added in v0.17.0

func (_mock *Repository) UpdateTags(ctx context.Context, g groups.Group) (groups.Group, error)

UpdateTags provides a mock function for the type Repository

type Repository_AddRoles_Call added in v0.17.0

type Repository_AddRoles_Call struct {
	*mock.Call
}

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 (*Repository_AddRoles_Call) RunAndReturn added in v0.17.0

type Repository_AssignParentGroup_Call added in v0.17.0

type Repository_AssignParentGroup_Call struct {
	*mock.Call
}

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 (*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

type Repository_ChangeStatus_Call struct {
	*mock.Call
}

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 (*Repository_ChangeStatus_Call) Run added in v0.17.0

func (*Repository_ChangeStatus_Call) RunAndReturn added in v0.17.0

type Repository_Delete_Call added in v0.17.0

type Repository_Delete_Call struct {
	*mock.Call
}

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 (*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

type Repository_ListEntityMembers_Call struct {
	*mock.Call
}

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 (*Repository_ListEntityMembers_Call) Run added in v0.17.0

func (*Repository_ListEntityMembers_Call) RunAndReturn added in v0.17.0

type Repository_RemoveEntityMembers_Call added in v0.17.0

type Repository_RemoveEntityMembers_Call struct {
	*mock.Call
}

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 (*Repository_RemoveEntityMembers_Call) Run added in v0.17.0

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

type Repository_RemoveMemberFromAllRoles_Call struct {
	*mock.Call
}

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 (*Repository_RemoveMemberFromAllRoles_Call) Run added in v0.17.0

func (*Repository_RemoveMemberFromAllRoles_Call) RunAndReturn added in v0.17.0

type Repository_RemoveRoles_Call added in v0.17.0

type Repository_RemoveRoles_Call struct {
	*mock.Call
}

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 (*Repository_RemoveRoles_Call) Run added in v0.17.0

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

type Repository_RetrieveAllParentGroups_Call struct {
	*mock.Call
}

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 (*Repository_RetrieveAllParentGroups_Call) Run added in v0.17.0

func (*Repository_RetrieveAllParentGroups_Call) RunAndReturn added in v0.17.0

type Repository_RetrieveAllRoles_Call added in v0.17.0

type Repository_RetrieveAllRoles_Call struct {
	*mock.Call
}

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 (*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

type Repository_RetrieveAll_Call struct {
	*mock.Call
}

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 (*Repository_RetrieveAll_Call) Run added in v0.17.0

func (*Repository_RetrieveAll_Call) RunAndReturn added in v0.17.0

type Repository_RetrieveByIDAndUser_Call added in v0.17.0

type Repository_RetrieveByIDAndUser_Call struct {
	*mock.Call
}

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 (*Repository_RetrieveByIDAndUser_Call) Run added in v0.17.0

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

type Repository_RetrieveByIDWithRoles_Call struct {
	*mock.Call
}

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 (*Repository_RetrieveByIDWithRoles_Call) Run added in v0.17.0

func (*Repository_RetrieveByIDWithRoles_Call) RunAndReturn added in v0.17.0

type Repository_RetrieveByID_Call added in v0.17.0

type Repository_RetrieveByID_Call struct {
	*mock.Call
}

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 (*Repository_RetrieveByID_Call) Run added in v0.17.0

func (*Repository_RetrieveByID_Call) RunAndReturn added in v0.17.0

type Repository_RetrieveByIDs_Call added in v0.17.0

type Repository_RetrieveByIDs_Call struct {
	*mock.Call
}

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 (*Repository_RetrieveByIDs_Call) Run added in v0.17.0

func (*Repository_RetrieveByIDs_Call) RunAndReturn added in v0.17.0

type Repository_RetrieveChildrenGroups_Call added in v0.17.0

type Repository_RetrieveChildrenGroups_Call struct {
	*mock.Call
}

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 (*Repository_RetrieveChildrenGroups_Call) Run added in v0.17.0

func (_c *Repository_RetrieveChildrenGroups_Call) Run(run func(ctx context.Context, domainID string, userID string, groupID string, startLevel int64, endLevel int64, pm groups.PageMeta)) *Repository_RetrieveChildrenGroups_Call

func (*Repository_RetrieveChildrenGroups_Call) RunAndReturn added in v0.17.0

func (_c *Repository_RetrieveChildrenGroups_Call) RunAndReturn(run func(ctx context.Context, domainID string, userID string, groupID string, startLevel int64, endLevel int64, pm groups.PageMeta) (groups.Page, error)) *Repository_RetrieveChildrenGroups_Call

type Repository_RetrieveEntitiesRolesActionsMembers_Call added in v0.17.0

type Repository_RetrieveEntitiesRolesActionsMembers_Call struct {
	*mock.Call
}

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 (*Repository_RetrieveEntitiesRolesActionsMembers_Call) Run added in v0.17.0

func (*Repository_RetrieveEntitiesRolesActionsMembers_Call) RunAndReturn added in v0.17.0

type Repository_RetrieveEntityRole_Call added in v0.17.0

type Repository_RetrieveEntityRole_Call struct {
	*mock.Call
}

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 (*Repository_RetrieveEntityRole_Call) Run added in v0.17.0

func (*Repository_RetrieveEntityRole_Call) RunAndReturn added in v0.17.0

type Repository_RetrieveHierarchy_Call added in v0.17.0

type Repository_RetrieveHierarchy_Call struct {
	*mock.Call
}

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 (*Repository_RetrieveHierarchy_Call) Run added in v0.17.0

func (*Repository_RetrieveHierarchy_Call) RunAndReturn added in v0.17.0

type Repository_RetrieveRole_Call added in v0.17.0

type Repository_RetrieveRole_Call struct {
	*mock.Call
}

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 (*Repository_RetrieveRole_Call) Run added in v0.17.0

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

type Repository_RetrieveUserGroups_Call struct {
	*mock.Call
}

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 (*Repository_RetrieveUserGroups_Call) Run added in v0.17.0

func (*Repository_RetrieveUserGroups_Call) RunAndReturn added in v0.17.0

type Repository_RoleAddActions_Call added in v0.17.0

type Repository_RoleAddActions_Call struct {
	*mock.Call
}

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 (*Repository_RoleAddActions_Call) Run added in v0.17.0

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

type Repository_RoleAddMembers_Call struct {
	*mock.Call
}

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 (*Repository_RoleAddMembers_Call) Run added in v0.17.0

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

type Repository_RoleCheckActionsExists_Call struct {
	*mock.Call
}

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 (*Repository_RoleCheckActionsExists_Call) Run added in v0.17.0

func (*Repository_RoleCheckActionsExists_Call) RunAndReturn added in v0.17.0

type Repository_RoleCheckMembersExists_Call added in v0.17.0

type Repository_RoleCheckMembersExists_Call struct {
	*mock.Call
}

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 (*Repository_RoleCheckMembersExists_Call) Run added in v0.17.0

func (*Repository_RoleCheckMembersExists_Call) RunAndReturn added in v0.17.0

type Repository_RoleListActions_Call added in v0.17.0

type Repository_RoleListActions_Call struct {
	*mock.Call
}

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 (*Repository_RoleListActions_Call) Run added in v0.17.0

func (*Repository_RoleListActions_Call) RunAndReturn added in v0.17.0

type Repository_RoleListMembers_Call added in v0.17.0

type Repository_RoleListMembers_Call struct {
	*mock.Call
}

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 (*Repository_RoleListMembers_Call) Run added in v0.17.0

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

type Repository_RoleRemoveActions_Call struct {
	*mock.Call
}

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 (*Repository_RoleRemoveActions_Call) Run added in v0.17.0

func (*Repository_RoleRemoveActions_Call) RunAndReturn added in v0.17.0

type Repository_RoleRemoveAllActions_Call added in v0.17.0

type Repository_RoleRemoveAllActions_Call struct {
	*mock.Call
}

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 (*Repository_RoleRemoveAllActions_Call) Run added in v0.17.0

func (*Repository_RoleRemoveAllActions_Call) RunAndReturn added in v0.17.0

type Repository_RoleRemoveAllMembers_Call added in v0.17.0

type Repository_RoleRemoveAllMembers_Call struct {
	*mock.Call
}

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 (*Repository_RoleRemoveAllMembers_Call) Run added in v0.17.0

func (*Repository_RoleRemoveAllMembers_Call) RunAndReturn added in v0.17.0

type Repository_RoleRemoveMembers_Call added in v0.17.0

type Repository_RoleRemoveMembers_Call struct {
	*mock.Call
}

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 (*Repository_RoleRemoveMembers_Call) Run added in v0.17.0

func (*Repository_RoleRemoveMembers_Call) RunAndReturn added in v0.17.0

type Repository_Save_Call added in v0.17.0

type Repository_Save_Call struct {
	*mock.Call
}

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 (*Repository_Save_Call) Run added in v0.17.0

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

type Repository_UnassignAllChildrenGroups_Call struct {
	*mock.Call
}

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 (*Repository_UnassignAllChildrenGroups_Call) Run added in v0.17.0

func (*Repository_UnassignAllChildrenGroups_Call) RunAndReturn added in v0.17.0

type Repository_UnassignParentGroup_Call added in v0.17.0

type Repository_UnassignParentGroup_Call struct {
	*mock.Call
}

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 (*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

type Repository_UpdateRole_Call struct {
	*mock.Call
}

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 (*Repository_UpdateRole_Call) Run added in v0.17.0

func (*Repository_UpdateRole_Call) RunAndReturn added in v0.17.0

type Repository_UpdateTags_Call added in v0.17.0

type Repository_UpdateTags_Call struct {
	*mock.Call
}

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 (*Repository_UpdateTags_Call) Run added in v0.17.0

func (*Repository_UpdateTags_Call) RunAndReturn added in v0.17.0

type Repository_Update_Call added in v0.17.0

type Repository_Update_Call struct {
	*mock.Call
}

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 (*Repository_Update_Call) Run added in v0.17.0

func (*Repository_Update_Call) RunAndReturn added in v0.17.0

type Service

type Service struct {
	mock.Mock
}

Service is an autogenerated mock type for the Service type

func NewService

func NewService(t interface {
	mock.TestingT
	Cleanup(func())
}) *Service

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

func (_mock *Service) DeleteGroup(ctx context.Context, session authn.Session, id string) error

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

func (*Service) UpdateRoleName

func (_mock *Service) UpdateRoleName(ctx context.Context, session authn.Session, entityID string, roleID string, newRoleName string) (roles.Role, error)

UpdateRoleName provides a mock function for the type Service

func (*Service) ViewGroup

func (_mock *Service) ViewGroup(ctx context.Context, session authn.Session, id string, withRoles bool) (groups.Group, error)

ViewGroup provides a mock function for the type Service

type Service_AddChildrenGroups_Call added in v0.17.0

type Service_AddChildrenGroups_Call struct {
	*mock.Call
}

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 (*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

type Service_AddParentGroup_Call struct {
	*mock.Call
}

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 (*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

type Service_AddRole_Call struct {
	*mock.Call
}

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

type Service_CreateGroup_Call struct {
	*mock.Call
}

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 (*Service_CreateGroup_Call) RunAndReturn added in v0.17.0

type Service_DeleteGroup_Call added in v0.17.0

type Service_DeleteGroup_Call struct {
	*mock.Call
}

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 (*Service_DeleteGroup_Call) Run added in v0.17.0

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

type Service_DisableGroup_Call struct {
	*mock.Call
}

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 (*Service_DisableGroup_Call) Run added in v0.17.0

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

type Service_EnableGroup_Call struct {
	*mock.Call
}

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 (*Service_EnableGroup_Call) Run added in v0.17.0

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

type Service_ListAvailableActions_Call struct {
	*mock.Call
}

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 (*Service_ListAvailableActions_Call) Run added in v0.17.0

func (*Service_ListAvailableActions_Call) RunAndReturn added in v0.17.0

type Service_ListChildrenGroups_Call added in v0.17.0

type Service_ListChildrenGroups_Call struct {
	*mock.Call
}

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 (*Service_ListChildrenGroups_Call) Run added in v0.17.0

func (_c *Service_ListChildrenGroups_Call) Run(run func(ctx context.Context, session authn.Session, id string, startLevel int64, endLevel int64, pm groups.PageMeta)) *Service_ListChildrenGroups_Call

func (*Service_ListChildrenGroups_Call) RunAndReturn added in v0.17.0

func (_c *Service_ListChildrenGroups_Call) RunAndReturn(run func(ctx context.Context, session authn.Session, id string, startLevel int64, endLevel int64, pm groups.PageMeta) (groups.Page, error)) *Service_ListChildrenGroups_Call

type Service_ListEntityMembers_Call added in v0.17.0

type Service_ListEntityMembers_Call struct {
	*mock.Call
}

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 (*Service_ListEntityMembers_Call) Run added in v0.17.0

func (*Service_ListEntityMembers_Call) RunAndReturn added in v0.17.0

type Service_ListGroups_Call added in v0.17.0

type Service_ListGroups_Call struct {
	*mock.Call
}

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 (*Service_ListGroups_Call) Run added in v0.17.0

func (*Service_ListGroups_Call) RunAndReturn added in v0.17.0

func (_c *Service_ListGroups_Call) RunAndReturn(run func(ctx context.Context, session authn.Session, pm groups.PageMeta) (groups.Page, error)) *Service_ListGroups_Call

type Service_ListUserGroups_Call added in v0.17.0

type Service_ListUserGroups_Call struct {
	*mock.Call
}

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 (*Service_ListUserGroups_Call) Run added in v0.17.0

func (*Service_ListUserGroups_Call) RunAndReturn added in v0.17.0

func (_c *Service_ListUserGroups_Call) RunAndReturn(run func(ctx context.Context, session authn.Session, userID string, pm groups.PageMeta) (groups.Page, error)) *Service_ListUserGroups_Call

type Service_RemoveAllChildrenGroups_Call added in v0.17.0

type Service_RemoveAllChildrenGroups_Call struct {
	*mock.Call
}

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 (*Service_RemoveAllChildrenGroups_Call) Run added in v0.17.0

func (*Service_RemoveAllChildrenGroups_Call) RunAndReturn added in v0.17.0

type Service_RemoveChildrenGroups_Call added in v0.17.0

type Service_RemoveChildrenGroups_Call struct {
	*mock.Call
}

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 (*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

type Service_RemoveEntityMembers_Call struct {
	*mock.Call
}

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 (*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

type Service_RemoveMemberFromAllRoles_Call struct {
	*mock.Call
}

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 (*Service_RemoveMemberFromAllRoles_Call) Run added in v0.17.0

func (*Service_RemoveMemberFromAllRoles_Call) RunAndReturn added in v0.17.0

type Service_RemoveParentGroup_Call added in v0.17.0

type Service_RemoveParentGroup_Call struct {
	*mock.Call
}

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 (*Service_RemoveParentGroup_Call) Run added in v0.17.0

func (*Service_RemoveParentGroup_Call) RunAndReturn added in v0.17.0

type Service_RemoveRole_Call added in v0.17.0

type Service_RemoveRole_Call struct {
	*mock.Call
}

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 (*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

type Service_RetrieveAllRoles_Call struct {
	*mock.Call
}

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 (*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

func (_c *Service_RetrieveAllRoles_Call) RunAndReturn(run func(ctx context.Context, session authn.Session, entityID string, limit uint64, offset uint64) (roles.RolePage, error)) *Service_RetrieveAllRoles_Call

type Service_RetrieveGroupHierarchy_Call added in v0.17.0

type Service_RetrieveGroupHierarchy_Call struct {
	*mock.Call
}

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 (*Service_RetrieveGroupHierarchy_Call) Run added in v0.17.0

func (*Service_RetrieveGroupHierarchy_Call) RunAndReturn added in v0.17.0

type Service_RetrieveRole_Call added in v0.17.0

type Service_RetrieveRole_Call struct {
	*mock.Call
}

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 (*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

func (_c *Service_RetrieveRole_Call) RunAndReturn(run func(ctx context.Context, session authn.Session, entityID string, roleID string) (roles.Role, error)) *Service_RetrieveRole_Call

type Service_RoleAddActions_Call added in v0.17.0

type Service_RoleAddActions_Call struct {
	*mock.Call
}

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 (*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

func (_c *Service_RoleAddActions_Call) RunAndReturn(run func(ctx context.Context, session authn.Session, entityID string, roleID string, actions []string) ([]string, error)) *Service_RoleAddActions_Call

type Service_RoleAddMembers_Call added in v0.17.0

type Service_RoleAddMembers_Call struct {
	*mock.Call
}

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 (*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

func (_c *Service_RoleAddMembers_Call) RunAndReturn(run func(ctx context.Context, session authn.Session, entityID string, roleID string, members []string) ([]string, error)) *Service_RoleAddMembers_Call

type Service_RoleCheckActionsExists_Call added in v0.17.0

type Service_RoleCheckActionsExists_Call struct {
	*mock.Call
}

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 (*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

func (_c *Service_RoleCheckActionsExists_Call) RunAndReturn(run func(ctx context.Context, session authn.Session, entityID string, roleID string, actions []string) (bool, error)) *Service_RoleCheckActionsExists_Call

type Service_RoleCheckMembersExists_Call added in v0.17.0

type Service_RoleCheckMembersExists_Call struct {
	*mock.Call
}

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 (*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

func (_c *Service_RoleCheckMembersExists_Call) RunAndReturn(run func(ctx context.Context, session authn.Session, entityID string, roleID string, members []string) (bool, error)) *Service_RoleCheckMembersExists_Call

type Service_RoleListActions_Call added in v0.17.0

type Service_RoleListActions_Call struct {
	*mock.Call
}

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 (*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

type Service_RoleListMembers_Call struct {
	*mock.Call
}

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 (*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

type Service_RoleRemoveActions_Call struct {
	*mock.Call
}

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 (*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

type Service_RoleRemoveAllActions_Call struct {
	*mock.Call
}

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 (*Service_RoleRemoveAllActions_Call) Run added in v0.17.0

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

type Service_RoleRemoveAllMembers_Call struct {
	*mock.Call
}

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 (*Service_RoleRemoveAllMembers_Call) Run added in v0.17.0

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

type Service_RoleRemoveMembers_Call struct {
	*mock.Call
}

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 (*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

type Service_UpdateGroupTags_Call struct {
	*mock.Call
}

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 (*Service_UpdateGroupTags_Call) Run added in v0.17.0

func (*Service_UpdateGroupTags_Call) RunAndReturn added in v0.17.0

type Service_UpdateGroup_Call added in v0.17.0

type Service_UpdateGroup_Call struct {
	*mock.Call
}

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 (*Service_UpdateGroup_Call) Run added in v0.17.0

func (*Service_UpdateGroup_Call) RunAndReturn added in v0.17.0

type Service_UpdateRoleName_Call added in v0.17.0

type Service_UpdateRoleName_Call struct {
	*mock.Call
}

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 (*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

func (_c *Service_UpdateRoleName_Call) RunAndReturn(run func(ctx context.Context, session authn.Session, entityID string, roleID string, newRoleName string) (roles.Role, error)) *Service_UpdateRoleName_Call

type Service_ViewGroup_Call added in v0.17.0

type Service_ViewGroup_Call struct {
	*mock.Call
}

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 (*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

func (*Service_ViewGroup_Call) RunAndReturn added in v0.17.0

func (_c *Service_ViewGroup_Call) RunAndReturn(run func(ctx context.Context, session authn.Session, id string, withRoles bool) (groups.Group, error)) *Service_ViewGroup_Call

Jump to

Keyboard shortcuts

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