mocks

package
v0.0.0-...-41ba12c Latest Latest
Warning

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

Go to latest
Published: May 17, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

type Repository struct {
	mock.Mock
}

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

func (_m *Repository) DeleteRoleBinding(ctx context.Context, userID string, roleID string) error

DeleteRoleBinding provides a mock function with given fields: ctx, userID, roleID

func (*Repository) GetRole

func (_m *Repository) GetRole(ctx context.Context, id string) (*model.Role, error)

GetRole provides a mock function with given fields: ctx, id

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

func (_m *Repository) UpsertRole(ctx context.Context, role model.Role) error

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

Jump to

Keyboard shortcuts

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