Documentation ¶
Index ¶
- type Repository
- func (_m *Repository) DeleteRole(ctx context.Context, id string) error
- func (_m *Repository) DeleteRoleBinding(ctx context.Context, userID string, roleID string) error
- func (_m *Repository) GetRole(ctx context.Context, id string) (*model.Role, error)
- func (_m *Repository) GetUserPermissionsByOrg(ctx context.Context, userID string, organizationID string) ([]model.Permission, error)
- func (_m *Repository) UpsertRole(ctx context.Context, role model.Role) error
- func (_m *Repository) UpsertRoleBinding(ctx context.Context, binding model.RoleBinding) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
Repository is an autogenerated mock type for the Repository type
func (*Repository) DeleteRole ¶
func (_m *Repository) DeleteRole(ctx context.Context, id string) error
DeleteRole provides a mock function with given fields: ctx, id
func (*Repository) DeleteRoleBinding ¶
DeleteRoleBinding provides a mock function with given fields: ctx, userID, roleID
func (*Repository) GetUserPermissionsByOrg ¶
func (_m *Repository) GetUserPermissionsByOrg(ctx context.Context, userID string, organizationID string) ([]model.Permission, error)
GetUserPermissionsByOrg provides a mock function with given fields: ctx, userID, organizationID
func (*Repository) UpsertRole ¶
UpsertRole provides a mock function with given fields: ctx, role
func (*Repository) UpsertRoleBinding ¶
func (_m *Repository) UpsertRoleBinding(ctx context.Context, binding model.RoleBinding) error
UpsertRoleBinding provides a mock function with given fields: ctx, binding
Click to show internal directories.
Click to hide internal directories.