mocks

package
v0.0.0-...-838a961 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2022 License: GPL-3.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 CasbinHandler

type CasbinHandler struct {
	mock.Mock
}

CasbinHandler is an autogenerated mock type for the CasbinHandler type

func NewCasbinHandler

func NewCasbinHandler(t mockConstructorTestingTNewCasbinHandler) *CasbinHandler

NewCasbinHandler creates a new instance of CasbinHandler. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*CasbinHandler) AddGroupingPolicy

func (_m *CasbinHandler) AddGroupingPolicy(_a0 context.Context, _a1 *casbinpb.PolicyRequest, _a2 *casbinpb.Empty) error

AddGroupingPolicy provides a mock function with given fields: _a0, _a1, _a2

func (*CasbinHandler) AddNamedGroupingPolicy

func (_m *CasbinHandler) AddNamedGroupingPolicy(_a0 context.Context, _a1 *casbinpb.PolicyRequest, _a2 *casbinpb.Empty) error

AddNamedGroupingPolicy provides a mock function with given fields: _a0, _a1, _a2

func (*CasbinHandler) AddNamedPolicy

func (_m *CasbinHandler) AddNamedPolicy(_a0 context.Context, _a1 *casbinpb.PolicyRequest, _a2 *casbinpb.Empty) error

AddNamedPolicy provides a mock function with given fields: _a0, _a1, _a2

func (*CasbinHandler) AddPolicy

func (_m *CasbinHandler) AddPolicy(_a0 context.Context, _a1 *casbinpb.PolicyRequest, _a2 *casbinpb.Empty) error

AddPolicy provides a mock function with given fields: _a0, _a1, _a2

func (*CasbinHandler) AddRoleForUser

func (_m *CasbinHandler) AddRoleForUser(_a0 context.Context, _a1 *casbinpb.UserRoleRequest, _a2 *casbinpb.Empty) error

AddRoleForUser provides a mock function with given fields: _a0, _a1, _a2

func (*CasbinHandler) DeleteRoleForUser

func (_m *CasbinHandler) DeleteRoleForUser(_a0 context.Context, _a1 *casbinpb.UserRoleRequest, _a2 *casbinpb.Empty) error

DeleteRoleForUser provides a mock function with given fields: _a0, _a1, _a2

func (*CasbinHandler) DeleteUser

func (_m *CasbinHandler) DeleteUser(_a0 context.Context, _a1 *casbinpb.UserRoleRequest, _a2 *casbinpb.Empty) error

DeleteUser provides a mock function with given fields: _a0, _a1, _a2

func (*CasbinHandler) Enforce

func (_m *CasbinHandler) Enforce(_a0 context.Context, _a1 *casbinpb.EnforceRequest, _a2 *casbinpb.Empty) error

Enforce provides a mock function with given fields: _a0, _a1, _a2

func (*CasbinHandler) GetAllActions

func (_m *CasbinHandler) GetAllActions(_a0 context.Context, _a1 *casbinpb.Empty, _a2 *casbinpb.ArrayReply) error

GetAllActions provides a mock function with given fields: _a0, _a1, _a2

func (*CasbinHandler) GetAllNamedActions

func (_m *CasbinHandler) GetAllNamedActions(_a0 context.Context, _a1 *casbinpb.SimpleGetRequest, _a2 *casbinpb.ArrayReply) error

GetAllNamedActions provides a mock function with given fields: _a0, _a1, _a2

func (*CasbinHandler) GetAllNamedObjects

func (_m *CasbinHandler) GetAllNamedObjects(_a0 context.Context, _a1 *casbinpb.SimpleGetRequest, _a2 *casbinpb.ArrayReply) error

GetAllNamedObjects provides a mock function with given fields: _a0, _a1, _a2

func (*CasbinHandler) GetAllNamedRoles

func (_m *CasbinHandler) GetAllNamedRoles(_a0 context.Context, _a1 *casbinpb.SimpleGetRequest, _a2 *casbinpb.ArrayReply) error

GetAllNamedRoles provides a mock function with given fields: _a0, _a1, _a2

func (*CasbinHandler) GetAllNamedSubjects

func (_m *CasbinHandler) GetAllNamedSubjects(_a0 context.Context, _a1 *casbinpb.SimpleGetRequest, _a2 *casbinpb.ArrayReply) error

GetAllNamedSubjects provides a mock function with given fields: _a0, _a1, _a2

func (*CasbinHandler) GetAllObjects

func (_m *CasbinHandler) GetAllObjects(_a0 context.Context, _a1 *casbinpb.Empty, _a2 *casbinpb.ArrayReply) error

GetAllObjects provides a mock function with given fields: _a0, _a1, _a2

func (*CasbinHandler) GetAllRoles

func (_m *CasbinHandler) GetAllRoles(_a0 context.Context, _a1 *casbinpb.Empty, _a2 *casbinpb.ArrayReply) error

GetAllRoles provides a mock function with given fields: _a0, _a1, _a2

func (*CasbinHandler) GetAllSubjects

func (_m *CasbinHandler) GetAllSubjects(_a0 context.Context, _a1 *casbinpb.Empty, _a2 *casbinpb.ArrayReply) error

GetAllSubjects provides a mock function with given fields: _a0, _a1, _a2

func (*CasbinHandler) GetFilteredGroupingPolicy

func (_m *CasbinHandler) GetFilteredGroupingPolicy(_a0 context.Context, _a1 *casbinpb.FilteredPolicyRequest, _a2 *casbinpb.Array2DReply) error

GetFilteredGroupingPolicy provides a mock function with given fields: _a0, _a1, _a2

func (*CasbinHandler) GetFilteredNamedGroupingPolicy

func (_m *CasbinHandler) GetFilteredNamedGroupingPolicy(_a0 context.Context, _a1 *casbinpb.FilteredPolicyRequest, _a2 *casbinpb.Array2DReply) error

GetFilteredNamedGroupingPolicy provides a mock function with given fields: _a0, _a1, _a2

func (*CasbinHandler) GetFilteredNamedPolicy

func (_m *CasbinHandler) GetFilteredNamedPolicy(_a0 context.Context, _a1 *casbinpb.FilteredPolicyRequest, _a2 *casbinpb.Array2DReply) error

GetFilteredNamedPolicy provides a mock function with given fields: _a0, _a1, _a2

func (*CasbinHandler) GetFilteredPolicy

func (_m *CasbinHandler) GetFilteredPolicy(_a0 context.Context, _a1 *casbinpb.FilteredPolicyRequest, _a2 *casbinpb.Array2DReply) error

GetFilteredPolicy provides a mock function with given fields: _a0, _a1, _a2

func (*CasbinHandler) GetGroupingPolicy

func (_m *CasbinHandler) GetGroupingPolicy(_a0 context.Context, _a1 *casbinpb.Empty, _a2 *casbinpb.Array2DReply) error

GetGroupingPolicy provides a mock function with given fields: _a0, _a1, _a2

func (*CasbinHandler) GetImplicitPermissionsForUser

func (_m *CasbinHandler) GetImplicitPermissionsForUser(_a0 context.Context, _a1 *casbinpb.PermissionRequest, _a2 *casbinpb.Array2DReply) error

GetImplicitPermissionsForUser provides a mock function with given fields: _a0, _a1, _a2

func (*CasbinHandler) GetImplicitRolesForUser

func (_m *CasbinHandler) GetImplicitRolesForUser(_a0 context.Context, _a1 *casbinpb.UserRoleRequest, _a2 *casbinpb.ArrayReply) error

GetImplicitRolesForUser provides a mock function with given fields: _a0, _a1, _a2

func (*CasbinHandler) GetNamedGroupingPolicy

func (_m *CasbinHandler) GetNamedGroupingPolicy(_a0 context.Context, _a1 *casbinpb.PolicyRequest, _a2 *casbinpb.Array2DReply) error

GetNamedGroupingPolicy provides a mock function with given fields: _a0, _a1, _a2

func (*CasbinHandler) GetNamedPolicy

func (_m *CasbinHandler) GetNamedPolicy(_a0 context.Context, _a1 *casbinpb.PolicyRequest, _a2 *casbinpb.Array2DReply) error

GetNamedPolicy provides a mock function with given fields: _a0, _a1, _a2

func (*CasbinHandler) GetPermissionsForUser

func (_m *CasbinHandler) GetPermissionsForUser(_a0 context.Context, _a1 *casbinpb.PermissionRequest, _a2 *casbinpb.Array2DReply) error

GetPermissionsForUser provides a mock function with given fields: _a0, _a1, _a2

func (*CasbinHandler) GetPolicy

func (_m *CasbinHandler) GetPolicy(_a0 context.Context, _a1 *casbinpb.Empty, _a2 *casbinpb.Array2DReply) error

GetPolicy provides a mock function with given fields: _a0, _a1, _a2

func (*CasbinHandler) GetRolesForUser

func (_m *CasbinHandler) GetRolesForUser(_a0 context.Context, _a1 *casbinpb.UserRoleRequest, _a2 *casbinpb.ArrayReply) error

GetRolesForUser provides a mock function with given fields: _a0, _a1, _a2

func (*CasbinHandler) GetUsersForRole

func (_m *CasbinHandler) GetUsersForRole(_a0 context.Context, _a1 *casbinpb.UserRoleRequest, _a2 *casbinpb.ArrayReply) error

GetUsersForRole provides a mock function with given fields: _a0, _a1, _a2

func (*CasbinHandler) HasGroupingPolicy

func (_m *CasbinHandler) HasGroupingPolicy(_a0 context.Context, _a1 *casbinpb.PolicyRequest, _a2 *casbinpb.Empty) error

HasGroupingPolicy provides a mock function with given fields: _a0, _a1, _a2

func (*CasbinHandler) HasNamedGroupingPolicy

func (_m *CasbinHandler) HasNamedGroupingPolicy(_a0 context.Context, _a1 *casbinpb.PolicyRequest, _a2 *casbinpb.Empty) error

HasNamedGroupingPolicy provides a mock function with given fields: _a0, _a1, _a2

func (*CasbinHandler) HasNamedPolicy

func (_m *CasbinHandler) HasNamedPolicy(_a0 context.Context, _a1 *casbinpb.PolicyRequest, _a2 *casbinpb.Empty) error

HasNamedPolicy provides a mock function with given fields: _a0, _a1, _a2

func (*CasbinHandler) HasPolicy

func (_m *CasbinHandler) HasPolicy(_a0 context.Context, _a1 *casbinpb.PolicyRequest, _a2 *casbinpb.Empty) error

HasPolicy provides a mock function with given fields: _a0, _a1, _a2

func (*CasbinHandler) ImportPolicy

func (_m *CasbinHandler) ImportPolicy(_a0 context.Context, _a1 *casbinpb.ImportPolicyRequest, _a2 *casbinpb.Empty) error

ImportPolicy provides a mock function with given fields: _a0, _a1, _a2

func (*CasbinHandler) LoadPolicy

func (_m *CasbinHandler) LoadPolicy(_a0 context.Context, _a1 *casbinpb.Empty, _a2 *casbinpb.Empty) error

LoadPolicy provides a mock function with given fields: _a0, _a1, _a2

func (*CasbinHandler) RemoveFilteredGroupingPolicy

func (_m *CasbinHandler) RemoveFilteredGroupingPolicy(_a0 context.Context, _a1 *casbinpb.FilteredPolicyRequest, _a2 *casbinpb.Empty) error

RemoveFilteredGroupingPolicy provides a mock function with given fields: _a0, _a1, _a2

func (*CasbinHandler) RemoveFilteredNamedGroupingPolicy

func (_m *CasbinHandler) RemoveFilteredNamedGroupingPolicy(_a0 context.Context, _a1 *casbinpb.FilteredPolicyRequest, _a2 *casbinpb.Empty) error

RemoveFilteredNamedGroupingPolicy provides a mock function with given fields: _a0, _a1, _a2

func (*CasbinHandler) RemoveFilteredNamedPolicy

func (_m *CasbinHandler) RemoveFilteredNamedPolicy(_a0 context.Context, _a1 *casbinpb.FilteredPolicyRequest, _a2 *casbinpb.Empty) error

RemoveFilteredNamedPolicy provides a mock function with given fields: _a0, _a1, _a2

func (*CasbinHandler) RemoveFilteredPolicy

func (_m *CasbinHandler) RemoveFilteredPolicy(_a0 context.Context, _a1 *casbinpb.FilteredPolicyRequest, _a2 *casbinpb.Empty) error

RemoveFilteredPolicy provides a mock function with given fields: _a0, _a1, _a2

func (*CasbinHandler) RemoveGroupingPolicy

func (_m *CasbinHandler) RemoveGroupingPolicy(_a0 context.Context, _a1 *casbinpb.PolicyRequest, _a2 *casbinpb.Empty) error

RemoveGroupingPolicy provides a mock function with given fields: _a0, _a1, _a2

func (*CasbinHandler) RemoveNamedGroupingPolicy

func (_m *CasbinHandler) RemoveNamedGroupingPolicy(_a0 context.Context, _a1 *casbinpb.PolicyRequest, _a2 *casbinpb.Empty) error

RemoveNamedGroupingPolicy provides a mock function with given fields: _a0, _a1, _a2

func (*CasbinHandler) RemoveNamedPolicy

func (_m *CasbinHandler) RemoveNamedPolicy(_a0 context.Context, _a1 *casbinpb.PolicyRequest, _a2 *casbinpb.Empty) error

RemoveNamedPolicy provides a mock function with given fields: _a0, _a1, _a2

func (*CasbinHandler) RemovePolicy

func (_m *CasbinHandler) RemovePolicy(_a0 context.Context, _a1 *casbinpb.PolicyRequest, _a2 *casbinpb.Empty) error

RemovePolicy provides a mock function with given fields: _a0, _a1, _a2

func (*CasbinHandler) SavePolicy

func (_m *CasbinHandler) SavePolicy(_a0 context.Context, _a1 *casbinpb.Empty, _a2 *casbinpb.Empty) error

SavePolicy provides a mock function with given fields: _a0, _a1, _a2

type CasbinService

type CasbinService struct {
	mock.Mock
}

CasbinService is an autogenerated mock type for the CasbinService type

func NewCasbinService

func NewCasbinService(t mockConstructorTestingTNewCasbinService) *CasbinService

NewCasbinService creates a new instance of CasbinService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*CasbinService) AddGroupingPolicy

func (_m *CasbinService) AddGroupingPolicy(ctx context.Context, in *casbinpb.PolicyRequest, opts ...client.CallOption) (*casbinpb.Empty, error)

AddGroupingPolicy provides a mock function with given fields: ctx, in, opts

func (*CasbinService) AddNamedGroupingPolicy

func (_m *CasbinService) AddNamedGroupingPolicy(ctx context.Context, in *casbinpb.PolicyRequest, opts ...client.CallOption) (*casbinpb.Empty, error)

AddNamedGroupingPolicy provides a mock function with given fields: ctx, in, opts

func (*CasbinService) AddNamedPolicy

func (_m *CasbinService) AddNamedPolicy(ctx context.Context, in *casbinpb.PolicyRequest, opts ...client.CallOption) (*casbinpb.Empty, error)

AddNamedPolicy provides a mock function with given fields: ctx, in, opts

func (*CasbinService) AddPolicy

func (_m *CasbinService) AddPolicy(ctx context.Context, in *casbinpb.PolicyRequest, opts ...client.CallOption) (*casbinpb.Empty, error)

AddPolicy provides a mock function with given fields: ctx, in, opts

func (*CasbinService) AddRoleForUser

func (_m *CasbinService) AddRoleForUser(ctx context.Context, in *casbinpb.UserRoleRequest, opts ...client.CallOption) (*casbinpb.Empty, error)

AddRoleForUser provides a mock function with given fields: ctx, in, opts

func (*CasbinService) DeleteRoleForUser

func (_m *CasbinService) DeleteRoleForUser(ctx context.Context, in *casbinpb.UserRoleRequest, opts ...client.CallOption) (*casbinpb.Empty, error)

DeleteRoleForUser provides a mock function with given fields: ctx, in, opts

func (*CasbinService) DeleteUser

func (_m *CasbinService) DeleteUser(ctx context.Context, in *casbinpb.UserRoleRequest, opts ...client.CallOption) (*casbinpb.Empty, error)

DeleteUser provides a mock function with given fields: ctx, in, opts

func (*CasbinService) Enforce

Enforce provides a mock function with given fields: ctx, in, opts

func (*CasbinService) GetAllActions

func (_m *CasbinService) GetAllActions(ctx context.Context, in *casbinpb.Empty, opts ...client.CallOption) (*casbinpb.ArrayReply, error)

GetAllActions provides a mock function with given fields: ctx, in, opts

func (*CasbinService) GetAllNamedActions

func (_m *CasbinService) GetAllNamedActions(ctx context.Context, in *casbinpb.SimpleGetRequest, opts ...client.CallOption) (*casbinpb.ArrayReply, error)

GetAllNamedActions provides a mock function with given fields: ctx, in, opts

func (*CasbinService) GetAllNamedObjects

func (_m *CasbinService) GetAllNamedObjects(ctx context.Context, in *casbinpb.SimpleGetRequest, opts ...client.CallOption) (*casbinpb.ArrayReply, error)

GetAllNamedObjects provides a mock function with given fields: ctx, in, opts

func (*CasbinService) GetAllNamedRoles

func (_m *CasbinService) GetAllNamedRoles(ctx context.Context, in *casbinpb.SimpleGetRequest, opts ...client.CallOption) (*casbinpb.ArrayReply, error)

GetAllNamedRoles provides a mock function with given fields: ctx, in, opts

func (*CasbinService) GetAllNamedSubjects

func (_m *CasbinService) GetAllNamedSubjects(ctx context.Context, in *casbinpb.SimpleGetRequest, opts ...client.CallOption) (*casbinpb.ArrayReply, error)

GetAllNamedSubjects provides a mock function with given fields: ctx, in, opts

func (*CasbinService) GetAllObjects

func (_m *CasbinService) GetAllObjects(ctx context.Context, in *casbinpb.Empty, opts ...client.CallOption) (*casbinpb.ArrayReply, error)

GetAllObjects provides a mock function with given fields: ctx, in, opts

func (*CasbinService) GetAllRoles

func (_m *CasbinService) GetAllRoles(ctx context.Context, in *casbinpb.Empty, opts ...client.CallOption) (*casbinpb.ArrayReply, error)

GetAllRoles provides a mock function with given fields: ctx, in, opts

func (*CasbinService) GetAllSubjects

func (_m *CasbinService) GetAllSubjects(ctx context.Context, in *casbinpb.Empty, opts ...client.CallOption) (*casbinpb.ArrayReply, error)

GetAllSubjects provides a mock function with given fields: ctx, in, opts

func (*CasbinService) GetFilteredGroupingPolicy

func (_m *CasbinService) GetFilteredGroupingPolicy(ctx context.Context, in *casbinpb.FilteredPolicyRequest, opts ...client.CallOption) (*casbinpb.Array2DReply, error)

GetFilteredGroupingPolicy provides a mock function with given fields: ctx, in, opts

func (*CasbinService) GetFilteredNamedGroupingPolicy

func (_m *CasbinService) GetFilteredNamedGroupingPolicy(ctx context.Context, in *casbinpb.FilteredPolicyRequest, opts ...client.CallOption) (*casbinpb.Array2DReply, error)

GetFilteredNamedGroupingPolicy provides a mock function with given fields: ctx, in, opts

func (*CasbinService) GetFilteredNamedPolicy

func (_m *CasbinService) GetFilteredNamedPolicy(ctx context.Context, in *casbinpb.FilteredPolicyRequest, opts ...client.CallOption) (*casbinpb.Array2DReply, error)

GetFilteredNamedPolicy provides a mock function with given fields: ctx, in, opts

func (*CasbinService) GetFilteredPolicy

GetFilteredPolicy provides a mock function with given fields: ctx, in, opts

func (*CasbinService) GetGroupingPolicy

func (_m *CasbinService) GetGroupingPolicy(ctx context.Context, in *casbinpb.Empty, opts ...client.CallOption) (*casbinpb.Array2DReply, error)

GetGroupingPolicy provides a mock function with given fields: ctx, in, opts

func (*CasbinService) GetImplicitPermissionsForUser

func (_m *CasbinService) GetImplicitPermissionsForUser(ctx context.Context, in *casbinpb.PermissionRequest, opts ...client.CallOption) (*casbinpb.Array2DReply, error)

GetImplicitPermissionsForUser provides a mock function with given fields: ctx, in, opts

func (*CasbinService) GetImplicitRolesForUser

func (_m *CasbinService) GetImplicitRolesForUser(ctx context.Context, in *casbinpb.UserRoleRequest, opts ...client.CallOption) (*casbinpb.ArrayReply, error)

GetImplicitRolesForUser provides a mock function with given fields: ctx, in, opts

func (*CasbinService) GetNamedGroupingPolicy

func (_m *CasbinService) GetNamedGroupingPolicy(ctx context.Context, in *casbinpb.PolicyRequest, opts ...client.CallOption) (*casbinpb.Array2DReply, error)

GetNamedGroupingPolicy provides a mock function with given fields: ctx, in, opts

func (*CasbinService) GetNamedPolicy

func (_m *CasbinService) GetNamedPolicy(ctx context.Context, in *casbinpb.PolicyRequest, opts ...client.CallOption) (*casbinpb.Array2DReply, error)

GetNamedPolicy provides a mock function with given fields: ctx, in, opts

func (*CasbinService) GetPermissionsForUser

func (_m *CasbinService) GetPermissionsForUser(ctx context.Context, in *casbinpb.PermissionRequest, opts ...client.CallOption) (*casbinpb.Array2DReply, error)

GetPermissionsForUser provides a mock function with given fields: ctx, in, opts

func (*CasbinService) GetPolicy

func (_m *CasbinService) GetPolicy(ctx context.Context, in *casbinpb.Empty, opts ...client.CallOption) (*casbinpb.Array2DReply, error)

GetPolicy provides a mock function with given fields: ctx, in, opts

func (*CasbinService) GetRolesForUser

func (_m *CasbinService) GetRolesForUser(ctx context.Context, in *casbinpb.UserRoleRequest, opts ...client.CallOption) (*casbinpb.ArrayReply, error)

GetRolesForUser provides a mock function with given fields: ctx, in, opts

func (*CasbinService) GetUsersForRole

func (_m *CasbinService) GetUsersForRole(ctx context.Context, in *casbinpb.UserRoleRequest, opts ...client.CallOption) (*casbinpb.ArrayReply, error)

GetUsersForRole provides a mock function with given fields: ctx, in, opts

func (*CasbinService) HasGroupingPolicy

func (_m *CasbinService) HasGroupingPolicy(ctx context.Context, in *casbinpb.PolicyRequest, opts ...client.CallOption) (*casbinpb.Empty, error)

HasGroupingPolicy provides a mock function with given fields: ctx, in, opts

func (*CasbinService) HasNamedGroupingPolicy

func (_m *CasbinService) HasNamedGroupingPolicy(ctx context.Context, in *casbinpb.PolicyRequest, opts ...client.CallOption) (*casbinpb.Empty, error)

HasNamedGroupingPolicy provides a mock function with given fields: ctx, in, opts

func (*CasbinService) HasNamedPolicy

func (_m *CasbinService) HasNamedPolicy(ctx context.Context, in *casbinpb.PolicyRequest, opts ...client.CallOption) (*casbinpb.Empty, error)

HasNamedPolicy provides a mock function with given fields: ctx, in, opts

func (*CasbinService) HasPolicy

func (_m *CasbinService) HasPolicy(ctx context.Context, in *casbinpb.PolicyRequest, opts ...client.CallOption) (*casbinpb.Empty, error)

HasPolicy provides a mock function with given fields: ctx, in, opts

func (*CasbinService) ImportPolicy

ImportPolicy provides a mock function with given fields: ctx, in, opts

func (*CasbinService) LoadPolicy

func (_m *CasbinService) LoadPolicy(ctx context.Context, in *casbinpb.Empty, opts ...client.CallOption) (*casbinpb.Empty, error)

LoadPolicy provides a mock function with given fields: ctx, in, opts

func (*CasbinService) RemoveFilteredGroupingPolicy

func (_m *CasbinService) RemoveFilteredGroupingPolicy(ctx context.Context, in *casbinpb.FilteredPolicyRequest, opts ...client.CallOption) (*casbinpb.Empty, error)

RemoveFilteredGroupingPolicy provides a mock function with given fields: ctx, in, opts

func (*CasbinService) RemoveFilteredNamedGroupingPolicy

func (_m *CasbinService) RemoveFilteredNamedGroupingPolicy(ctx context.Context, in *casbinpb.FilteredPolicyRequest, opts ...client.CallOption) (*casbinpb.Empty, error)

RemoveFilteredNamedGroupingPolicy provides a mock function with given fields: ctx, in, opts

func (*CasbinService) RemoveFilteredNamedPolicy

func (_m *CasbinService) RemoveFilteredNamedPolicy(ctx context.Context, in *casbinpb.FilteredPolicyRequest, opts ...client.CallOption) (*casbinpb.Empty, error)

RemoveFilteredNamedPolicy provides a mock function with given fields: ctx, in, opts

func (*CasbinService) RemoveFilteredPolicy

func (_m *CasbinService) RemoveFilteredPolicy(ctx context.Context, in *casbinpb.FilteredPolicyRequest, opts ...client.CallOption) (*casbinpb.Empty, error)

RemoveFilteredPolicy provides a mock function with given fields: ctx, in, opts

func (*CasbinService) RemoveGroupingPolicy

func (_m *CasbinService) RemoveGroupingPolicy(ctx context.Context, in *casbinpb.PolicyRequest, opts ...client.CallOption) (*casbinpb.Empty, error)

RemoveGroupingPolicy provides a mock function with given fields: ctx, in, opts

func (*CasbinService) RemoveNamedGroupingPolicy

func (_m *CasbinService) RemoveNamedGroupingPolicy(ctx context.Context, in *casbinpb.PolicyRequest, opts ...client.CallOption) (*casbinpb.Empty, error)

RemoveNamedGroupingPolicy provides a mock function with given fields: ctx, in, opts

func (*CasbinService) RemoveNamedPolicy

func (_m *CasbinService) RemoveNamedPolicy(ctx context.Context, in *casbinpb.PolicyRequest, opts ...client.CallOption) (*casbinpb.Empty, error)

RemoveNamedPolicy provides a mock function with given fields: ctx, in, opts

func (*CasbinService) RemovePolicy

func (_m *CasbinService) RemovePolicy(ctx context.Context, in *casbinpb.PolicyRequest, opts ...client.CallOption) (*casbinpb.Empty, error)

RemovePolicy provides a mock function with given fields: ctx, in, opts

func (*CasbinService) SavePolicy

func (_m *CasbinService) SavePolicy(ctx context.Context, in *casbinpb.Empty, opts ...client.CallOption) (*casbinpb.Empty, error)

SavePolicy provides a mock function with given fields: ctx, in, opts

Jump to

Keyboard shortcuts

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