mocks

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 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 Evaluator

type Evaluator struct {
	mock.Mock
}

Evaluator is an autogenerated mock type for the Evaluator type

func NewEvaluator

func NewEvaluator(t interface {
	mock.TestingT
	Cleanup(func())
}) *Evaluator

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.

func (*Evaluator) CheckPolicy

func (_m *Evaluator) CheckPolicy(ctx context.Context, pr policies.Policy) error

CheckPolicy provides a mock function with given fields: ctx, pr

type Service

type Service struct {
	mock.Mock
}

Service is an autogenerated mock type for the Service type

func NewService

func NewService(t interface {
	mock.TestingT
	Cleanup(func())
}) *Service

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

func (_m *Service) AddPolicies(ctx context.Context, prs []policies.Policy) error

AddPolicies provides a mock function with given fields: ctx, prs

func (*Service) AddPolicy

func (_m *Service) AddPolicy(ctx context.Context, pr policies.Policy) error

AddPolicy provides a mock function with given fields: ctx, pr

func (*Service) CountObjects

func (_m *Service) CountObjects(ctx context.Context, pr policies.Policy) (uint64, error)

CountObjects provides a mock function with given fields: ctx, pr

func (*Service) CountSubjects

func (_m *Service) CountSubjects(ctx context.Context, pr policies.Policy) (uint64, error)

CountSubjects provides a mock function with given fields: ctx, pr

func (*Service) DeletePolicies

func (_m *Service) DeletePolicies(ctx context.Context, prs []policies.Policy) error

DeletePolicies provides a mock function with given fields: ctx, prs

func (*Service) DeletePolicyFilter

func (_m *Service) DeletePolicyFilter(ctx context.Context, pr policies.Policy) error

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

func (*Service) ListPermissions

func (_m *Service) ListPermissions(ctx context.Context, pr policies.Policy, permissionsFilter []string) (policies.Permissions, error)

ListPermissions provides a mock function with given fields: ctx, pr, permissionsFilter

func (*Service) ListSubjects

func (_m *Service) ListSubjects(ctx context.Context, pr policies.Policy, nextPageToken string, limit uint64) (policies.PolicyPage, error)

ListSubjects provides a mock function with given fields: ctx, pr, nextPageToken, limit

Jump to

Keyboard shortcuts

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