Documentation ¶
Index ¶
- type Evaluator
- type Service
- func (_m *Service) AddPolicies(ctx context.Context, prs []policies.Policy) error
- func (_m *Service) AddPolicy(ctx context.Context, pr policies.Policy) error
- func (_m *Service) CountObjects(ctx context.Context, pr policies.Policy) (uint64, error)
- func (_m *Service) CountSubjects(ctx context.Context, pr policies.Policy) (uint64, error)
- func (_m *Service) DeletePolicies(ctx context.Context, prs []policies.Policy) error
- func (_m *Service) DeletePolicyFilter(ctx context.Context, pr policies.Policy) error
- func (_m *Service) ListAllObjects(ctx context.Context, pr policies.Policy) (policies.PolicyPage, error)
- func (_m *Service) ListAllSubjects(ctx context.Context, pr policies.Policy) (policies.PolicyPage, error)
- func (_m *Service) ListObjects(ctx context.Context, pr policies.Policy, nextPageToken string, limit uint64) (policies.PolicyPage, error)
- func (_m *Service) ListPermissions(ctx context.Context, pr policies.Policy, permissionsFilter []string) (policies.Permissions, error)
- func (_m *Service) ListSubjects(ctx context.Context, pr policies.Policy, nextPageToken string, limit uint64) (policies.PolicyPage, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Evaluator ¶
Evaluator is an autogenerated mock type for the Evaluator type
func NewEvaluator ¶
NewEvaluator creates a new instance of Evaluator. 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.
type Service ¶
Service is an autogenerated mock type for the Service type
func NewService ¶
NewService creates a new instance of Service. 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 (*Service) AddPolicies ¶
AddPolicies provides a mock function with given fields: ctx, prs
func (*Service) CountObjects ¶
CountObjects provides a mock function with given fields: ctx, pr
func (*Service) CountSubjects ¶
CountSubjects provides a mock function with given fields: ctx, pr
func (*Service) DeletePolicies ¶
DeletePolicies provides a mock function with given fields: ctx, prs
func (*Service) DeletePolicyFilter ¶
DeletePolicyFilter provides a mock function with given fields: ctx, pr
func (*Service) ListAllObjects ¶
func (_m *Service) ListAllObjects(ctx context.Context, pr policies.Policy) (policies.PolicyPage, error)
ListAllObjects provides a mock function with given fields: ctx, pr
func (*Service) ListAllSubjects ¶
func (_m *Service) ListAllSubjects(ctx context.Context, pr policies.Policy) (policies.PolicyPage, error)
ListAllSubjects provides a mock function with given fields: ctx, pr
func (*Service) ListObjects ¶
func (_m *Service) ListObjects(ctx context.Context, pr policies.Policy, nextPageToken string, limit uint64) (policies.PolicyPage, error)
ListObjects provides a mock function with given fields: ctx, pr, nextPageToken, limit