mocks

package
v0.0.0-...-4ee07f5 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provisioner

type Provisioner struct {
	mock.Mock
}

Provisioner is an autogenerated mock type for the Provisioner type

func NewProvisioner

func NewProvisioner(t interface {
	mock.TestingT
	Cleanup(func())
}) *Provisioner

NewProvisioner creates a new instance of Provisioner. 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 (*Provisioner) AddNewEntitiesRoles

func (_m *Provisioner) AddNewEntitiesRoles(ctx context.Context, domainID string, userID string, entityIDs []string, optionalEntityPolicies []policies.Policy, newBuiltInRoleMembers map[roles.BuiltInRoleName][]roles.Member) ([]roles.RoleProvision, error)

AddNewEntitiesRoles provides a mock function with given fields: ctx, domainID, userID, entityIDs, optionalEntityPolicies, newBuiltInRoleMembers

func (*Provisioner) RemoveEntitiesRoles

func (_m *Provisioner) RemoveEntitiesRoles(ctx context.Context, domainID string, userID string, entityIDs []string, optionalFilterDeletePolicies []policies.Policy, optionalDeletePolicies []policies.Policy) error

RemoveEntitiesRoles provides a mock function with given fields: ctx, domainID, userID, entityIDs, optionalFilterDeletePolicies, optionalDeletePolicies

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 (_m *Repository) AddRoles(ctx context.Context, rps []roles.RoleProvision) ([]roles.Role, error)

AddRoles provides a mock function with given fields: ctx, rps

func (*Repository) RemoveMemberFromAllRoles

func (_m *Repository) RemoveMemberFromAllRoles(ctx context.Context, members string) error

RemoveMemberFromAllRoles provides a mock function with given fields: ctx, members

func (*Repository) RemoveRoles

func (_m *Repository) RemoveRoles(ctx context.Context, roleIDs []string) error

RemoveRoles provides a mock function with given fields: ctx, roleIDs

func (*Repository) RetrieveAllRoles

func (_m *Repository) RetrieveAllRoles(ctx context.Context, entityID string, limit uint64, offset uint64) (roles.RolePage, error)

RetrieveAllRoles provides a mock function with given fields: ctx, entityID, limit, offset

func (*Repository) RetrieveEntitiesRolesActionsMembers

func (_m *Repository) RetrieveEntitiesRolesActionsMembers(ctx context.Context, entityIDs []string) ([]roles.EntityActionRole, []roles.EntityMemberRole, error)

RetrieveEntitiesRolesActionsMembers provides a mock function with given fields: ctx, entityIDs

func (*Repository) RetrieveRole

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

RetrieveRole provides a mock function with given fields: ctx, roleID

func (*Repository) RetrieveRoleByEntityIDAndName

func (_m *Repository) RetrieveRoleByEntityIDAndName(ctx context.Context, entityID string, roleName string) (roles.Role, error)

RetrieveRoleByEntityIDAndName provides a mock function with given fields: ctx, entityID, roleName

func (*Repository) RoleAddActions

func (_m *Repository) RoleAddActions(ctx context.Context, role roles.Role, actions []string) ([]string, error)

RoleAddActions provides a mock function with given fields: ctx, role, actions

func (*Repository) RoleAddMembers

func (_m *Repository) RoleAddMembers(ctx context.Context, role roles.Role, members []string) ([]string, error)

RoleAddMembers provides a mock function with given fields: ctx, role, members

func (*Repository) RoleCheckActionsExists

func (_m *Repository) RoleCheckActionsExists(ctx context.Context, roleID string, actions []string) (bool, error)

RoleCheckActionsExists provides a mock function with given fields: ctx, roleID, actions

func (*Repository) RoleCheckMembersExists

func (_m *Repository) RoleCheckMembersExists(ctx context.Context, roleID string, members []string) (bool, error)

RoleCheckMembersExists provides a mock function with given fields: ctx, roleID, members

func (*Repository) RoleListActions

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

RoleListActions provides a mock function with given fields: ctx, roleID

func (*Repository) RoleListMembers

func (_m *Repository) RoleListMembers(ctx context.Context, roleID string, limit uint64, offset uint64) (roles.MembersPage, error)

RoleListMembers provides a mock function with given fields: ctx, roleID, limit, offset

func (*Repository) RoleRemoveActions

func (_m *Repository) RoleRemoveActions(ctx context.Context, role roles.Role, actions []string) error

RoleRemoveActions provides a mock function with given fields: ctx, role, actions

func (*Repository) RoleRemoveAllActions

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

RoleRemoveAllActions provides a mock function with given fields: ctx, role

func (*Repository) RoleRemoveAllMembers

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

RoleRemoveAllMembers provides a mock function with given fields: ctx, role

func (*Repository) RoleRemoveMembers

func (_m *Repository) RoleRemoveMembers(ctx context.Context, role roles.Role, members []string) error

RoleRemoveMembers provides a mock function with given fields: ctx, role, members

func (*Repository) UpdateRole

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

UpdateRole provides a mock function with given fields: ctx, ro

type RoleManager

type RoleManager struct {
	mock.Mock
}

RoleManager is an autogenerated mock type for the RoleManager type

func NewRoleManager

func NewRoleManager(t interface {
	mock.TestingT
	Cleanup(func())
}) *RoleManager

NewRoleManager creates a new instance of RoleManager. 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 (*RoleManager) AddRole

func (_m *RoleManager) AddRole(ctx context.Context, session authn.Session, entityID string, roleName string, optionalActions []string, optionalMembers []string) (roles.Role, error)

AddRole provides a mock function with given fields: ctx, session, entityID, roleName, optionalActions, optionalMembers

func (*RoleManager) ListAvailableActions

func (_m *RoleManager) ListAvailableActions(ctx context.Context, session authn.Session) ([]string, error)

ListAvailableActions provides a mock function with given fields: ctx, session

func (*RoleManager) RemoveMemberFromAllRoles

func (_m *RoleManager) RemoveMemberFromAllRoles(ctx context.Context, session authn.Session, memberID string) error

RemoveMemberFromAllRoles provides a mock function with given fields: ctx, session, memberID

func (*RoleManager) RemoveRole

func (_m *RoleManager) RemoveRole(ctx context.Context, session authn.Session, entityID string, roleName string) error

RemoveRole provides a mock function with given fields: ctx, session, entityID, roleName

func (*RoleManager) RetrieveAllRoles

func (_m *RoleManager) RetrieveAllRoles(ctx context.Context, session authn.Session, entityID string, limit uint64, offset uint64) (roles.RolePage, error)

RetrieveAllRoles provides a mock function with given fields: ctx, session, entityID, limit, offset

func (*RoleManager) RetrieveRole

func (_m *RoleManager) RetrieveRole(ctx context.Context, session authn.Session, entityID string, roleName string) (roles.Role, error)

RetrieveRole provides a mock function with given fields: ctx, session, entityID, roleName

func (*RoleManager) RoleAddActions

func (_m *RoleManager) RoleAddActions(ctx context.Context, session authn.Session, entityID string, roleName string, actions []string) ([]string, error)

RoleAddActions provides a mock function with given fields: ctx, session, entityID, roleName, actions

func (*RoleManager) RoleAddMembers

func (_m *RoleManager) RoleAddMembers(ctx context.Context, session authn.Session, entityID string, roleName string, members []string) ([]string, error)

RoleAddMembers provides a mock function with given fields: ctx, session, entityID, roleName, members

func (*RoleManager) RoleCheckActionsExists

func (_m *RoleManager) RoleCheckActionsExists(ctx context.Context, session authn.Session, entityID string, roleName string, actions []string) (bool, error)

RoleCheckActionsExists provides a mock function with given fields: ctx, session, entityID, roleName, actions

func (*RoleManager) RoleCheckMembersExists

func (_m *RoleManager) RoleCheckMembersExists(ctx context.Context, session authn.Session, entityID string, roleName string, members []string) (bool, error)

RoleCheckMembersExists provides a mock function with given fields: ctx, session, entityID, roleName, members

func (*RoleManager) RoleListActions

func (_m *RoleManager) RoleListActions(ctx context.Context, session authn.Session, entityID string, roleName string) ([]string, error)

RoleListActions provides a mock function with given fields: ctx, session, entityID, roleName

func (*RoleManager) RoleListMembers

func (_m *RoleManager) RoleListMembers(ctx context.Context, session authn.Session, entityID string, roleName string, limit uint64, offset uint64) (roles.MembersPage, error)

RoleListMembers provides a mock function with given fields: ctx, session, entityID, roleName, limit, offset

func (*RoleManager) RoleRemoveActions

func (_m *RoleManager) RoleRemoveActions(ctx context.Context, session authn.Session, entityID string, roleName string, actions []string) error

RoleRemoveActions provides a mock function with given fields: ctx, session, entityID, roleName, actions

func (*RoleManager) RoleRemoveAllActions

func (_m *RoleManager) RoleRemoveAllActions(ctx context.Context, session authn.Session, entityID string, roleName string) error

RoleRemoveAllActions provides a mock function with given fields: ctx, session, entityID, roleName

func (*RoleManager) RoleRemoveAllMembers

func (_m *RoleManager) RoleRemoveAllMembers(ctx context.Context, session authn.Session, entityID string, roleName string) error

RoleRemoveAllMembers provides a mock function with given fields: ctx, session, entityID, roleName

func (*RoleManager) RoleRemoveMembers

func (_m *RoleManager) RoleRemoveMembers(ctx context.Context, session authn.Session, entityID string, roleName string, members []string) error

RoleRemoveMembers provides a mock function with given fields: ctx, session, entityID, roleName, members

func (*RoleManager) UpdateRoleName

func (_m *RoleManager) UpdateRoleName(ctx context.Context, session authn.Session, entityID string, oldRoleName string, newRoleName string) (roles.Role, error)

UpdateRoleName provides a mock function with given fields: ctx, session, entityID, oldRoleName, newRoleName

Jump to

Keyboard shortcuts

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