dao

package
v0.0.0-...-44f477e Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DAO

type DAO struct {
	mock.Mock
}

DAO is an autogenerated mock type for the DAO type

func (*DAO) CreatePermission

func (_m *DAO) CreatePermission(ctx context.Context, rp *model.RolePermission) (int64, error)

CreatePermission provides a mock function with given fields: ctx, rp

func (*DAO) CreateRbacPolicy

func (_m *DAO) CreateRbacPolicy(ctx context.Context, pp *model.PermissionPolicy) (int64, error)

CreateRbacPolicy provides a mock function with given fields: ctx, pp

func (*DAO) DeletePermission

func (_m *DAO) DeletePermission(ctx context.Context, id int64) error

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

func (*DAO) DeletePermissionsByRole

func (_m *DAO) DeletePermissionsByRole(ctx context.Context, roleType string, roleID int64) error

DeletePermissionsByRole provides a mock function with given fields: ctx, roleType, roleID

func (*DAO) DeleteRbacPolicy

func (_m *DAO) DeleteRbacPolicy(ctx context.Context, id int64) error

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

func (*DAO) GetPermissionsByRole

func (_m *DAO) GetPermissionsByRole(ctx context.Context, roleType string, roleID int64) ([]*model.UniversalRolePermission, error)

GetPermissionsByRole provides a mock function with given fields: ctx, roleType, roleID

func (*DAO) ListPermissions

func (_m *DAO) ListPermissions(ctx context.Context, query *q.Query) ([]*model.RolePermission, error)

ListPermissions provides a mock function with given fields: ctx, query

func (*DAO) ListRbacPolicies

func (_m *DAO) ListRbacPolicies(ctx context.Context, query *q.Query) ([]*model.PermissionPolicy, error)

ListRbacPolicies provides a mock function with given fields: ctx, query

Jump to

Keyboard shortcuts

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