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 Authorization

type Authorization struct {
	mock.Mock
}

Authorization is an autogenerated mock type for the Authorization type

func NewAuthorization

func NewAuthorization(t interface {
	mock.TestingT
	Cleanup(func())
}) *Authorization

NewAuthorization creates a new instance of Authorization. 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 (*Authorization) Authorize

func (_m *Authorization) Authorize(ctx context.Context, pr authz.PolicyReq) error

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

Jump to

Keyboard shortcuts

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