authentication

package
v0.0.0-...-05bc493 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service interface {
	GetCallDelegationToken(outgoing reference.Global, to reference.Global, pn pulse.Number, object reference.Global) rms.CallDelegationToken
	CheckMessageFromAuthorizedVirtual(ctx context.Context, payloadObj interface{}, sender reference.Global, pr pulse.Range) (mustReject bool, err error)
	HasToSendToken(token rms.CallDelegationToken) bool
}

func NewService

func NewService(_ context.Context, affinity affinity.Helper) Service

type ServiceMock

type ServiceMock struct {
	CheckMessageFromAuthorizedVirtualMock mServiceMockCheckMessageFromAuthorizedVirtual

	GetCallDelegationTokenMock mServiceMockGetCallDelegationToken

	HasToSendTokenMock mServiceMockHasToSendToken
	// contains filtered or unexported fields
}

ServiceMock implements Service

func NewServiceMock

func NewServiceMock(t minimock.Tester) *ServiceMock

NewServiceMock returns a mock for Service

func (*ServiceMock) CheckMessageFromAuthorizedVirtual

func (mmCheckMessageFromAuthorizedVirtual *ServiceMock) CheckMessageFromAuthorizedVirtual(ctx context.Context, payloadObj interface{}, sender reference.Global, pr pulse.Range) (mustReject bool, err error)

CheckMessageFromAuthorizedVirtual implements Service

func (*ServiceMock) CheckMessageFromAuthorizedVirtualAfterCounter

func (mmCheckMessageFromAuthorizedVirtual *ServiceMock) CheckMessageFromAuthorizedVirtualAfterCounter() uint64

CheckMessageFromAuthorizedVirtualAfterCounter returns a count of finished ServiceMock.CheckMessageFromAuthorizedVirtual invocations

func (*ServiceMock) CheckMessageFromAuthorizedVirtualBeforeCounter

func (mmCheckMessageFromAuthorizedVirtual *ServiceMock) CheckMessageFromAuthorizedVirtualBeforeCounter() uint64

CheckMessageFromAuthorizedVirtualBeforeCounter returns a count of ServiceMock.CheckMessageFromAuthorizedVirtual invocations

func (*ServiceMock) GetCallDelegationToken

func (mmGetCallDelegationToken *ServiceMock) GetCallDelegationToken(outgoing reference.Global, to reference.Global, pn pulse.Number, object reference.Global) (c1 rms.CallDelegationToken)

GetCallDelegationToken implements Service

func (*ServiceMock) GetCallDelegationTokenAfterCounter

func (mmGetCallDelegationToken *ServiceMock) GetCallDelegationTokenAfterCounter() uint64

GetCallDelegationTokenAfterCounter returns a count of finished ServiceMock.GetCallDelegationToken invocations

func (*ServiceMock) GetCallDelegationTokenBeforeCounter

func (mmGetCallDelegationToken *ServiceMock) GetCallDelegationTokenBeforeCounter() uint64

GetCallDelegationTokenBeforeCounter returns a count of ServiceMock.GetCallDelegationToken invocations

func (*ServiceMock) HasToSendToken

func (mmHasToSendToken *ServiceMock) HasToSendToken(token rms.CallDelegationToken) (b1 bool)

HasToSendToken implements Service

func (*ServiceMock) HasToSendTokenAfterCounter

func (mmHasToSendToken *ServiceMock) HasToSendTokenAfterCounter() uint64

HasToSendTokenAfterCounter returns a count of finished ServiceMock.HasToSendToken invocations

func (*ServiceMock) HasToSendTokenBeforeCounter

func (mmHasToSendToken *ServiceMock) HasToSendTokenBeforeCounter() uint64

HasToSendTokenBeforeCounter returns a count of ServiceMock.HasToSendToken invocations

func (*ServiceMock) MinimockCheckMessageFromAuthorizedVirtualDone

func (m *ServiceMock) MinimockCheckMessageFromAuthorizedVirtualDone() bool

MinimockCheckMessageFromAuthorizedVirtualDone returns true if the count of the CheckMessageFromAuthorizedVirtual invocations corresponds the number of defined expectations

func (*ServiceMock) MinimockCheckMessageFromAuthorizedVirtualInspect

func (m *ServiceMock) MinimockCheckMessageFromAuthorizedVirtualInspect()

MinimockCheckMessageFromAuthorizedVirtualInspect logs each unmet expectation

func (*ServiceMock) MinimockFinish

func (m *ServiceMock) MinimockFinish()

MinimockFinish checks that all mocked methods have been called the expected number of times

func (*ServiceMock) MinimockGetCallDelegationTokenDone

func (m *ServiceMock) MinimockGetCallDelegationTokenDone() bool

MinimockGetCallDelegationTokenDone returns true if the count of the GetCallDelegationToken invocations corresponds the number of defined expectations

func (*ServiceMock) MinimockGetCallDelegationTokenInspect

func (m *ServiceMock) MinimockGetCallDelegationTokenInspect()

MinimockGetCallDelegationTokenInspect logs each unmet expectation

func (*ServiceMock) MinimockHasToSendTokenDone

func (m *ServiceMock) MinimockHasToSendTokenDone() bool

MinimockHasToSendTokenDone returns true if the count of the HasToSendToken invocations corresponds the number of defined expectations

func (*ServiceMock) MinimockHasToSendTokenInspect

func (m *ServiceMock) MinimockHasToSendTokenInspect()

MinimockHasToSendTokenInspect logs each unmet expectation

func (*ServiceMock) MinimockWait

func (m *ServiceMock) MinimockWait(timeout mm_time.Duration)

MinimockWait waits for all mocked methods to be called the expected number of times

type ServiceMockCheckMessageFromAuthorizedVirtualExpectation

type ServiceMockCheckMessageFromAuthorizedVirtualExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

ServiceMockCheckMessageFromAuthorizedVirtualExpectation specifies expectation struct of the Service.CheckMessageFromAuthorizedVirtual

func (*ServiceMockCheckMessageFromAuthorizedVirtualExpectation) Then

Then sets up Service.CheckMessageFromAuthorizedVirtual return parameters for the expectation previously defined by the When method

type ServiceMockCheckMessageFromAuthorizedVirtualParams

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

ServiceMockCheckMessageFromAuthorizedVirtualParams contains parameters of the Service.CheckMessageFromAuthorizedVirtual

type ServiceMockCheckMessageFromAuthorizedVirtualResults

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

ServiceMockCheckMessageFromAuthorizedVirtualResults contains results of the Service.CheckMessageFromAuthorizedVirtual

type ServiceMockGetCallDelegationTokenExpectation

type ServiceMockGetCallDelegationTokenExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

ServiceMockGetCallDelegationTokenExpectation specifies expectation struct of the Service.GetCallDelegationToken

func (*ServiceMockGetCallDelegationTokenExpectation) Then

Then sets up Service.GetCallDelegationToken return parameters for the expectation previously defined by the When method

type ServiceMockGetCallDelegationTokenParams

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

ServiceMockGetCallDelegationTokenParams contains parameters of the Service.GetCallDelegationToken

type ServiceMockGetCallDelegationTokenResults

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

ServiceMockGetCallDelegationTokenResults contains results of the Service.GetCallDelegationToken

type ServiceMockHasToSendTokenExpectation

type ServiceMockHasToSendTokenExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

ServiceMockHasToSendTokenExpectation specifies expectation struct of the Service.HasToSendToken

func (*ServiceMockHasToSendTokenExpectation) Then

Then sets up Service.HasToSendToken return parameters for the expectation previously defined by the When method

type ServiceMockHasToSendTokenParams

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

ServiceMockHasToSendTokenParams contains parameters of the Service.HasToSendToken

type ServiceMockHasToSendTokenResults

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

ServiceMockHasToSendTokenResults contains results of the Service.HasToSendToken

Jump to

Keyboard shortcuts

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