mocks

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 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 AccessRevoker

type AccessRevoker struct {
	mock.Mock
}

AccessRevoker is an autogenerated mock type for the AccessRevoker type

func NewAccessRevoker

func NewAccessRevoker(t mockConstructorTestingTNewAccessRevoker) *AccessRevoker

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

func (*AccessRevoker) RevokeWithClientId

func (_m *AccessRevoker) RevokeWithClientId(ctx context.Context, clientId string, revokeRefreshToken bool) error

RevokeWithClientId provides a mock function with given fields: ctx, clientId, revokeRefreshToken

func (*AccessRevoker) RevokeWithSessionId

func (_m *AccessRevoker) RevokeWithSessionId(ctx context.Context, sessionId string, sessionName string) error

RevokeWithSessionId provides a mock function with given fields: ctx, sessionId, sessionName

func (*AccessRevoker) RevokeWithTokenValue

func (_m *AccessRevoker) RevokeWithTokenValue(ctx context.Context, tokenValue string, hint auth.RevokerTokenHint) error

RevokeWithTokenValue provides a mock function with given fields: ctx, tokenValue, hint

func (*AccessRevoker) RevokeWithUsername

func (_m *AccessRevoker) RevokeWithUsername(ctx context.Context, username string, revokeRefreshToken bool) error

RevokeWithUsername provides a mock function with given fields: ctx, username, revokeRefreshToken

Jump to

Keyboard shortcuts

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