mock

package
v1.116.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: May 19, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package mock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockTokenPrincipal

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

MockTokenPrincipal is a mock of TokenPrincipal interface.

func NewMockTokenPrincipal

func NewMockTokenPrincipal(ctrl *gomock.Controller) *MockTokenPrincipal

NewMockTokenPrincipal creates a new mock instance.

func (*MockTokenPrincipal) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockTokenPrincipal) Id

func (m *MockTokenPrincipal) Id() string

Id mocks base method.

func (*MockTokenPrincipal) IsAuthenticated

func (m *MockTokenPrincipal) IsAuthenticated() bool

IsAuthenticated mocks base method.

func (*MockTokenPrincipal) Name

func (m *MockTokenPrincipal) Name() string

Name mocks base method.

func (*MockTokenPrincipal) Token

func (m *MockTokenPrincipal) Token() string

Token mocks base method.

type MockTokenPrincipalMockRecorder

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

MockTokenPrincipalMockRecorder is the mock recorder for MockTokenPrincipal.

func (*MockTokenPrincipalMockRecorder) Id

Id indicates an expected call of Id.

func (*MockTokenPrincipalMockRecorder) IsAuthenticated

func (mr *MockTokenPrincipalMockRecorder) IsAuthenticated() *gomock.Call

IsAuthenticated indicates an expected call of IsAuthenticated.

func (*MockTokenPrincipalMockRecorder) Name

Name indicates an expected call of Name.

func (*MockTokenPrincipalMockRecorder) Token

Token indicates an expected call of Token.

type MockValidatorInterface

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

MockValidatorInterface is a mock of ValidatorInterface interface.

func NewMockValidatorInterface

func NewMockValidatorInterface(ctrl *gomock.Controller) *MockValidatorInterface

NewMockValidatorInterface creates a new mock instance.

func (*MockValidatorInterface) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockValidatorInterface) ValidateToken

func (m *MockValidatorInterface) ValidateToken(arg0 context.Context, arg1 string) (token.TokenPrincipal, error)

ValidateToken mocks base method.

type MockValidatorInterfaceMockRecorder

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

MockValidatorInterfaceMockRecorder is the mock recorder for MockValidatorInterface.

func (*MockValidatorInterfaceMockRecorder) ValidateToken

func (mr *MockValidatorInterfaceMockRecorder) ValidateToken(arg0, arg1 any) *gomock.Call

ValidateToken indicates an expected call of ValidateToken.

Jump to

Keyboard shortcuts

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