mocks

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2026 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 MockPAP

type MockPAP struct {
	mock.Mock
}

MockPAP is an autogenerated mock type for the PAP type

func NewMockPAP

func NewMockPAP(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockPAP

NewMockPAP creates a new instance of MockPAP. 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 (*MockPAP) CreateClusterRole

func (_m *MockPAP) CreateClusterRole(ctx context.Context, role *v1alpha1.ClusterAuthzRole) (*v1alpha1.ClusterAuthzRole, error)

CreateClusterRole provides a mock function with given fields: ctx, role

func (*MockPAP) CreateClusterRoleBinding

func (_m *MockPAP) CreateClusterRoleBinding(ctx context.Context, binding *v1alpha1.ClusterAuthzRoleBinding) (*v1alpha1.ClusterAuthzRoleBinding, error)

CreateClusterRoleBinding provides a mock function with given fields: ctx, binding

func (*MockPAP) CreateNamespacedRole

func (_m *MockPAP) CreateNamespacedRole(ctx context.Context, role *v1alpha1.AuthzRole) (*v1alpha1.AuthzRole, error)

CreateNamespacedRole provides a mock function with given fields: ctx, role

func (*MockPAP) CreateNamespacedRoleBinding

func (_m *MockPAP) CreateNamespacedRoleBinding(ctx context.Context, binding *v1alpha1.AuthzRoleBinding) (*v1alpha1.AuthzRoleBinding, error)

CreateNamespacedRoleBinding provides a mock function with given fields: ctx, binding

func (*MockPAP) DeleteClusterRole

func (_m *MockPAP) DeleteClusterRole(ctx context.Context, name string) error

DeleteClusterRole provides a mock function with given fields: ctx, name

func (*MockPAP) DeleteClusterRoleBinding

func (_m *MockPAP) DeleteClusterRoleBinding(ctx context.Context, name string) error

DeleteClusterRoleBinding provides a mock function with given fields: ctx, name

func (*MockPAP) DeleteNamespacedRole

func (_m *MockPAP) DeleteNamespacedRole(ctx context.Context, name string, namespace string) error

DeleteNamespacedRole provides a mock function with given fields: ctx, name, namespace

func (*MockPAP) DeleteNamespacedRoleBinding

func (_m *MockPAP) DeleteNamespacedRoleBinding(ctx context.Context, name string, namespace string) error

DeleteNamespacedRoleBinding provides a mock function with given fields: ctx, name, namespace

func (*MockPAP) EXPECT

func (_m *MockPAP) EXPECT() *MockPAP_Expecter

func (*MockPAP) GetClusterRole

func (_m *MockPAP) GetClusterRole(ctx context.Context, name string) (*v1alpha1.ClusterAuthzRole, error)

GetClusterRole provides a mock function with given fields: ctx, name

func (*MockPAP) GetClusterRoleBinding

func (_m *MockPAP) GetClusterRoleBinding(ctx context.Context, name string) (*v1alpha1.ClusterAuthzRoleBinding, error)

GetClusterRoleBinding provides a mock function with given fields: ctx, name

func (*MockPAP) GetNamespacedRole

func (_m *MockPAP) GetNamespacedRole(ctx context.Context, name string, namespace string) (*v1alpha1.AuthzRole, error)

GetNamespacedRole provides a mock function with given fields: ctx, name, namespace

func (*MockPAP) GetNamespacedRoleBinding

func (_m *MockPAP) GetNamespacedRoleBinding(ctx context.Context, name string, namespace string) (*v1alpha1.AuthzRoleBinding, error)

GetNamespacedRoleBinding provides a mock function with given fields: ctx, name, namespace

func (*MockPAP) ListActions

func (_m *MockPAP) ListActions(ctx context.Context) ([]core.Action, error)

ListActions provides a mock function with given fields: ctx

func (*MockPAP) ListClusterRoleBindings

func (_m *MockPAP) ListClusterRoleBindings(ctx context.Context, limit int, cursor string) (*core.PaginatedList[v1alpha1.ClusterAuthzRoleBinding], error)

ListClusterRoleBindings provides a mock function with given fields: ctx, limit, cursor

func (*MockPAP) ListClusterRoles

func (_m *MockPAP) ListClusterRoles(ctx context.Context, limit int, cursor string) (*core.PaginatedList[v1alpha1.ClusterAuthzRole], error)

ListClusterRoles provides a mock function with given fields: ctx, limit, cursor

func (*MockPAP) ListNamespacedRoleBindings

func (_m *MockPAP) ListNamespacedRoleBindings(ctx context.Context, namespace string, limit int, cursor string) (*core.PaginatedList[v1alpha1.AuthzRoleBinding], error)

ListNamespacedRoleBindings provides a mock function with given fields: ctx, namespace, limit, cursor

func (*MockPAP) ListNamespacedRoles

func (_m *MockPAP) ListNamespacedRoles(ctx context.Context, namespace string, limit int, cursor string) (*core.PaginatedList[v1alpha1.AuthzRole], error)

ListNamespacedRoles provides a mock function with given fields: ctx, namespace, limit, cursor

func (*MockPAP) UpdateClusterRole

func (_m *MockPAP) UpdateClusterRole(ctx context.Context, role *v1alpha1.ClusterAuthzRole) (*v1alpha1.ClusterAuthzRole, error)

UpdateClusterRole provides a mock function with given fields: ctx, role

func (*MockPAP) UpdateClusterRoleBinding

func (_m *MockPAP) UpdateClusterRoleBinding(ctx context.Context, binding *v1alpha1.ClusterAuthzRoleBinding) (*v1alpha1.ClusterAuthzRoleBinding, error)

UpdateClusterRoleBinding provides a mock function with given fields: ctx, binding

func (*MockPAP) UpdateNamespacedRole

func (_m *MockPAP) UpdateNamespacedRole(ctx context.Context, role *v1alpha1.AuthzRole) (*v1alpha1.AuthzRole, error)

UpdateNamespacedRole provides a mock function with given fields: ctx, role

func (*MockPAP) UpdateNamespacedRoleBinding

func (_m *MockPAP) UpdateNamespacedRoleBinding(ctx context.Context, binding *v1alpha1.AuthzRoleBinding) (*v1alpha1.AuthzRoleBinding, error)

UpdateNamespacedRoleBinding provides a mock function with given fields: ctx, binding

type MockPAP_CreateClusterRoleBinding_Call

type MockPAP_CreateClusterRoleBinding_Call struct {
	*mock.Call
}

MockPAP_CreateClusterRoleBinding_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateClusterRoleBinding'

func (*MockPAP_CreateClusterRoleBinding_Call) Return

func (*MockPAP_CreateClusterRoleBinding_Call) Run

type MockPAP_CreateClusterRole_Call

type MockPAP_CreateClusterRole_Call struct {
	*mock.Call
}

MockPAP_CreateClusterRole_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateClusterRole'

func (*MockPAP_CreateClusterRole_Call) Return

func (*MockPAP_CreateClusterRole_Call) Run

type MockPAP_CreateNamespacedRoleBinding_Call

type MockPAP_CreateNamespacedRoleBinding_Call struct {
	*mock.Call
}

MockPAP_CreateNamespacedRoleBinding_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateNamespacedRoleBinding'

func (*MockPAP_CreateNamespacedRoleBinding_Call) Return

func (*MockPAP_CreateNamespacedRoleBinding_Call) Run

type MockPAP_CreateNamespacedRole_Call

type MockPAP_CreateNamespacedRole_Call struct {
	*mock.Call
}

MockPAP_CreateNamespacedRole_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateNamespacedRole'

func (*MockPAP_CreateNamespacedRole_Call) Return

func (*MockPAP_CreateNamespacedRole_Call) Run

func (*MockPAP_CreateNamespacedRole_Call) RunAndReturn

type MockPAP_DeleteClusterRoleBinding_Call

type MockPAP_DeleteClusterRoleBinding_Call struct {
	*mock.Call
}

MockPAP_DeleteClusterRoleBinding_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteClusterRoleBinding'

func (*MockPAP_DeleteClusterRoleBinding_Call) Return

func (*MockPAP_DeleteClusterRoleBinding_Call) Run

func (*MockPAP_DeleteClusterRoleBinding_Call) RunAndReturn

type MockPAP_DeleteClusterRole_Call

type MockPAP_DeleteClusterRole_Call struct {
	*mock.Call
}

MockPAP_DeleteClusterRole_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteClusterRole'

func (*MockPAP_DeleteClusterRole_Call) Return

func (*MockPAP_DeleteClusterRole_Call) Run

func (*MockPAP_DeleteClusterRole_Call) RunAndReturn

type MockPAP_DeleteNamespacedRoleBinding_Call

type MockPAP_DeleteNamespacedRoleBinding_Call struct {
	*mock.Call
}

MockPAP_DeleteNamespacedRoleBinding_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteNamespacedRoleBinding'

func (*MockPAP_DeleteNamespacedRoleBinding_Call) Return

func (*MockPAP_DeleteNamespacedRoleBinding_Call) Run

func (*MockPAP_DeleteNamespacedRoleBinding_Call) RunAndReturn

type MockPAP_DeleteNamespacedRole_Call

type MockPAP_DeleteNamespacedRole_Call struct {
	*mock.Call
}

MockPAP_DeleteNamespacedRole_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteNamespacedRole'

func (*MockPAP_DeleteNamespacedRole_Call) Return

func (*MockPAP_DeleteNamespacedRole_Call) Run

func (*MockPAP_DeleteNamespacedRole_Call) RunAndReturn

type MockPAP_Expecter

type MockPAP_Expecter struct {
	// contains filtered or unexported fields
}

func (*MockPAP_Expecter) CreateClusterRole

func (_e *MockPAP_Expecter) CreateClusterRole(ctx interface{}, role interface{}) *MockPAP_CreateClusterRole_Call

CreateClusterRole is a helper method to define mock.On call

  • ctx context.Context
  • role *v1alpha1.ClusterAuthzRole

func (*MockPAP_Expecter) CreateClusterRoleBinding

func (_e *MockPAP_Expecter) CreateClusterRoleBinding(ctx interface{}, binding interface{}) *MockPAP_CreateClusterRoleBinding_Call

CreateClusterRoleBinding is a helper method to define mock.On call

  • ctx context.Context
  • binding *v1alpha1.ClusterAuthzRoleBinding

func (*MockPAP_Expecter) CreateNamespacedRole

func (_e *MockPAP_Expecter) CreateNamespacedRole(ctx interface{}, role interface{}) *MockPAP_CreateNamespacedRole_Call

CreateNamespacedRole is a helper method to define mock.On call

  • ctx context.Context
  • role *v1alpha1.AuthzRole

func (*MockPAP_Expecter) CreateNamespacedRoleBinding

func (_e *MockPAP_Expecter) CreateNamespacedRoleBinding(ctx interface{}, binding interface{}) *MockPAP_CreateNamespacedRoleBinding_Call

CreateNamespacedRoleBinding is a helper method to define mock.On call

  • ctx context.Context
  • binding *v1alpha1.AuthzRoleBinding

func (*MockPAP_Expecter) DeleteClusterRole

func (_e *MockPAP_Expecter) DeleteClusterRole(ctx interface{}, name interface{}) *MockPAP_DeleteClusterRole_Call

DeleteClusterRole is a helper method to define mock.On call

  • ctx context.Context
  • name string

func (*MockPAP_Expecter) DeleteClusterRoleBinding

func (_e *MockPAP_Expecter) DeleteClusterRoleBinding(ctx interface{}, name interface{}) *MockPAP_DeleteClusterRoleBinding_Call

DeleteClusterRoleBinding is a helper method to define mock.On call

  • ctx context.Context
  • name string

func (*MockPAP_Expecter) DeleteNamespacedRole

func (_e *MockPAP_Expecter) DeleteNamespacedRole(ctx interface{}, name interface{}, namespace interface{}) *MockPAP_DeleteNamespacedRole_Call

DeleteNamespacedRole is a helper method to define mock.On call

  • ctx context.Context
  • name string
  • namespace string

func (*MockPAP_Expecter) DeleteNamespacedRoleBinding

func (_e *MockPAP_Expecter) DeleteNamespacedRoleBinding(ctx interface{}, name interface{}, namespace interface{}) *MockPAP_DeleteNamespacedRoleBinding_Call

DeleteNamespacedRoleBinding is a helper method to define mock.On call

  • ctx context.Context
  • name string
  • namespace string

func (*MockPAP_Expecter) GetClusterRole

func (_e *MockPAP_Expecter) GetClusterRole(ctx interface{}, name interface{}) *MockPAP_GetClusterRole_Call

GetClusterRole is a helper method to define mock.On call

  • ctx context.Context
  • name string

func (*MockPAP_Expecter) GetClusterRoleBinding

func (_e *MockPAP_Expecter) GetClusterRoleBinding(ctx interface{}, name interface{}) *MockPAP_GetClusterRoleBinding_Call

GetClusterRoleBinding is a helper method to define mock.On call

  • ctx context.Context
  • name string

func (*MockPAP_Expecter) GetNamespacedRole

func (_e *MockPAP_Expecter) GetNamespacedRole(ctx interface{}, name interface{}, namespace interface{}) *MockPAP_GetNamespacedRole_Call

GetNamespacedRole is a helper method to define mock.On call

  • ctx context.Context
  • name string
  • namespace string

func (*MockPAP_Expecter) GetNamespacedRoleBinding

func (_e *MockPAP_Expecter) GetNamespacedRoleBinding(ctx interface{}, name interface{}, namespace interface{}) *MockPAP_GetNamespacedRoleBinding_Call

GetNamespacedRoleBinding is a helper method to define mock.On call

  • ctx context.Context
  • name string
  • namespace string

func (*MockPAP_Expecter) ListActions

func (_e *MockPAP_Expecter) ListActions(ctx interface{}) *MockPAP_ListActions_Call

ListActions is a helper method to define mock.On call

  • ctx context.Context

func (*MockPAP_Expecter) ListClusterRoleBindings

func (_e *MockPAP_Expecter) ListClusterRoleBindings(ctx interface{}, limit interface{}, cursor interface{}) *MockPAP_ListClusterRoleBindings_Call

ListClusterRoleBindings is a helper method to define mock.On call

  • ctx context.Context
  • limit int
  • cursor string

func (*MockPAP_Expecter) ListClusterRoles

func (_e *MockPAP_Expecter) ListClusterRoles(ctx interface{}, limit interface{}, cursor interface{}) *MockPAP_ListClusterRoles_Call

ListClusterRoles is a helper method to define mock.On call

  • ctx context.Context
  • limit int
  • cursor string

func (*MockPAP_Expecter) ListNamespacedRoleBindings

func (_e *MockPAP_Expecter) ListNamespacedRoleBindings(ctx interface{}, namespace interface{}, limit interface{}, cursor interface{}) *MockPAP_ListNamespacedRoleBindings_Call

ListNamespacedRoleBindings is a helper method to define mock.On call

  • ctx context.Context
  • namespace string
  • limit int
  • cursor string

func (*MockPAP_Expecter) ListNamespacedRoles

func (_e *MockPAP_Expecter) ListNamespacedRoles(ctx interface{}, namespace interface{}, limit interface{}, cursor interface{}) *MockPAP_ListNamespacedRoles_Call

ListNamespacedRoles is a helper method to define mock.On call

  • ctx context.Context
  • namespace string
  • limit int
  • cursor string

func (*MockPAP_Expecter) UpdateClusterRole

func (_e *MockPAP_Expecter) UpdateClusterRole(ctx interface{}, role interface{}) *MockPAP_UpdateClusterRole_Call

UpdateClusterRole is a helper method to define mock.On call

  • ctx context.Context
  • role *v1alpha1.ClusterAuthzRole

func (*MockPAP_Expecter) UpdateClusterRoleBinding

func (_e *MockPAP_Expecter) UpdateClusterRoleBinding(ctx interface{}, binding interface{}) *MockPAP_UpdateClusterRoleBinding_Call

UpdateClusterRoleBinding is a helper method to define mock.On call

  • ctx context.Context
  • binding *v1alpha1.ClusterAuthzRoleBinding

func (*MockPAP_Expecter) UpdateNamespacedRole

func (_e *MockPAP_Expecter) UpdateNamespacedRole(ctx interface{}, role interface{}) *MockPAP_UpdateNamespacedRole_Call

UpdateNamespacedRole is a helper method to define mock.On call

  • ctx context.Context
  • role *v1alpha1.AuthzRole

func (*MockPAP_Expecter) UpdateNamespacedRoleBinding

func (_e *MockPAP_Expecter) UpdateNamespacedRoleBinding(ctx interface{}, binding interface{}) *MockPAP_UpdateNamespacedRoleBinding_Call

UpdateNamespacedRoleBinding is a helper method to define mock.On call

  • ctx context.Context
  • binding *v1alpha1.AuthzRoleBinding

type MockPAP_GetClusterRoleBinding_Call

type MockPAP_GetClusterRoleBinding_Call struct {
	*mock.Call
}

MockPAP_GetClusterRoleBinding_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetClusterRoleBinding'

func (*MockPAP_GetClusterRoleBinding_Call) Return

func (*MockPAP_GetClusterRoleBinding_Call) Run

func (*MockPAP_GetClusterRoleBinding_Call) RunAndReturn

type MockPAP_GetClusterRole_Call

type MockPAP_GetClusterRole_Call struct {
	*mock.Call
}

MockPAP_GetClusterRole_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetClusterRole'

func (*MockPAP_GetClusterRole_Call) Return

func (*MockPAP_GetClusterRole_Call) Run

func (*MockPAP_GetClusterRole_Call) RunAndReturn

type MockPAP_GetNamespacedRoleBinding_Call

type MockPAP_GetNamespacedRoleBinding_Call struct {
	*mock.Call
}

MockPAP_GetNamespacedRoleBinding_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetNamespacedRoleBinding'

func (*MockPAP_GetNamespacedRoleBinding_Call) Return

func (*MockPAP_GetNamespacedRoleBinding_Call) Run

func (*MockPAP_GetNamespacedRoleBinding_Call) RunAndReturn

type MockPAP_GetNamespacedRole_Call

type MockPAP_GetNamespacedRole_Call struct {
	*mock.Call
}

MockPAP_GetNamespacedRole_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetNamespacedRole'

func (*MockPAP_GetNamespacedRole_Call) Return

func (*MockPAP_GetNamespacedRole_Call) Run

func (*MockPAP_GetNamespacedRole_Call) RunAndReturn

type MockPAP_ListActions_Call

type MockPAP_ListActions_Call struct {
	*mock.Call
}

MockPAP_ListActions_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListActions'

func (*MockPAP_ListActions_Call) Return

func (*MockPAP_ListActions_Call) Run

func (*MockPAP_ListActions_Call) RunAndReturn

type MockPAP_ListClusterRoleBindings_Call

type MockPAP_ListClusterRoleBindings_Call struct {
	*mock.Call
}

MockPAP_ListClusterRoleBindings_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListClusterRoleBindings'

func (*MockPAP_ListClusterRoleBindings_Call) Run

type MockPAP_ListClusterRoles_Call

type MockPAP_ListClusterRoles_Call struct {
	*mock.Call
}

MockPAP_ListClusterRoles_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListClusterRoles'

func (*MockPAP_ListClusterRoles_Call) Return

func (*MockPAP_ListClusterRoles_Call) Run

func (*MockPAP_ListClusterRoles_Call) RunAndReturn

type MockPAP_ListNamespacedRoleBindings_Call

type MockPAP_ListNamespacedRoleBindings_Call struct {
	*mock.Call
}

MockPAP_ListNamespacedRoleBindings_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListNamespacedRoleBindings'

func (*MockPAP_ListNamespacedRoleBindings_Call) Return

func (*MockPAP_ListNamespacedRoleBindings_Call) Run

type MockPAP_ListNamespacedRoles_Call

type MockPAP_ListNamespacedRoles_Call struct {
	*mock.Call
}

MockPAP_ListNamespacedRoles_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListNamespacedRoles'

func (*MockPAP_ListNamespacedRoles_Call) Return

func (*MockPAP_ListNamespacedRoles_Call) Run

func (_c *MockPAP_ListNamespacedRoles_Call) Run(run func(ctx context.Context, namespace string, limit int, cursor string)) *MockPAP_ListNamespacedRoles_Call

func (*MockPAP_ListNamespacedRoles_Call) RunAndReturn

type MockPAP_UpdateClusterRoleBinding_Call

type MockPAP_UpdateClusterRoleBinding_Call struct {
	*mock.Call
}

MockPAP_UpdateClusterRoleBinding_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateClusterRoleBinding'

func (*MockPAP_UpdateClusterRoleBinding_Call) Return

func (*MockPAP_UpdateClusterRoleBinding_Call) Run

type MockPAP_UpdateClusterRole_Call

type MockPAP_UpdateClusterRole_Call struct {
	*mock.Call
}

MockPAP_UpdateClusterRole_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateClusterRole'

func (*MockPAP_UpdateClusterRole_Call) Return

func (*MockPAP_UpdateClusterRole_Call) Run

type MockPAP_UpdateNamespacedRoleBinding_Call

type MockPAP_UpdateNamespacedRoleBinding_Call struct {
	*mock.Call
}

MockPAP_UpdateNamespacedRoleBinding_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateNamespacedRoleBinding'

func (*MockPAP_UpdateNamespacedRoleBinding_Call) Return

func (*MockPAP_UpdateNamespacedRoleBinding_Call) Run

type MockPAP_UpdateNamespacedRole_Call

type MockPAP_UpdateNamespacedRole_Call struct {
	*mock.Call
}

MockPAP_UpdateNamespacedRole_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateNamespacedRole'

func (*MockPAP_UpdateNamespacedRole_Call) Return

func (*MockPAP_UpdateNamespacedRole_Call) Run

func (*MockPAP_UpdateNamespacedRole_Call) RunAndReturn

type MockPDP

type MockPDP struct {
	mock.Mock
}

MockPDP is an autogenerated mock type for the PDP type

func NewMockPDP

func NewMockPDP(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockPDP

NewMockPDP creates a new instance of MockPDP. 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 (*MockPDP) BatchEvaluate

func (_m *MockPDP) BatchEvaluate(ctx context.Context, request *core.BatchEvaluateRequest) (*core.BatchEvaluateResponse, error)

BatchEvaluate provides a mock function with given fields: ctx, request

func (*MockPDP) EXPECT

func (_m *MockPDP) EXPECT() *MockPDP_Expecter

func (*MockPDP) Evaluate

func (_m *MockPDP) Evaluate(ctx context.Context, request *core.EvaluateRequest) (*core.Decision, error)

Evaluate provides a mock function with given fields: ctx, request

func (*MockPDP) GetSubjectProfile

func (_m *MockPDP) GetSubjectProfile(ctx context.Context, request *core.ProfileRequest) (*core.UserCapabilitiesResponse, error)

GetSubjectProfile provides a mock function with given fields: ctx, request

type MockPDP_BatchEvaluate_Call

type MockPDP_BatchEvaluate_Call struct {
	*mock.Call
}

MockPDP_BatchEvaluate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BatchEvaluate'

func (*MockPDP_BatchEvaluate_Call) Return

func (*MockPDP_BatchEvaluate_Call) Run

type MockPDP_Evaluate_Call

type MockPDP_Evaluate_Call struct {
	*mock.Call
}

MockPDP_Evaluate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Evaluate'

func (*MockPDP_Evaluate_Call) Return

func (*MockPDP_Evaluate_Call) Run

func (*MockPDP_Evaluate_Call) RunAndReturn

type MockPDP_Expecter

type MockPDP_Expecter struct {
	// contains filtered or unexported fields
}

func (*MockPDP_Expecter) BatchEvaluate

func (_e *MockPDP_Expecter) BatchEvaluate(ctx interface{}, request interface{}) *MockPDP_BatchEvaluate_Call

BatchEvaluate is a helper method to define mock.On call

  • ctx context.Context
  • request *core.BatchEvaluateRequest

func (*MockPDP_Expecter) Evaluate

func (_e *MockPDP_Expecter) Evaluate(ctx interface{}, request interface{}) *MockPDP_Evaluate_Call

Evaluate is a helper method to define mock.On call

  • ctx context.Context
  • request *core.EvaluateRequest

func (*MockPDP_Expecter) GetSubjectProfile

func (_e *MockPDP_Expecter) GetSubjectProfile(ctx interface{}, request interface{}) *MockPDP_GetSubjectProfile_Call

GetSubjectProfile is a helper method to define mock.On call

  • ctx context.Context
  • request *core.ProfileRequest

type MockPDP_GetSubjectProfile_Call

type MockPDP_GetSubjectProfile_Call struct {
	*mock.Call
}

MockPDP_GetSubjectProfile_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetSubjectProfile'

func (*MockPDP_GetSubjectProfile_Call) Return

func (*MockPDP_GetSubjectProfile_Call) Run

func (*MockPDP_GetSubjectProfile_Call) RunAndReturn

Jump to

Keyboard shortcuts

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