mock_trust

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package mock_trust is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockDB

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

MockDB is a mock of DB interface.

func NewMockDB

func NewMockDB(ctrl *gomock.Controller) *MockDB

NewMockDB creates a new mock instance.

func (*MockDB) Chains

func (m *MockDB) Chains(arg0 context.Context, arg1 trust.ChainQuery) ([][]*x509.Certificate, error)

Chains mocks base method.

func (*MockDB) EXPECT

func (m *MockDB) EXPECT() *MockDBMockRecorder

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

func (*MockDB) InsertChain

func (m *MockDB) InsertChain(arg0 context.Context, arg1 []*x509.Certificate) (bool, error)

InsertChain mocks base method.

func (*MockDB) InsertTRC

func (m *MockDB) InsertTRC(arg0 context.Context, arg1 cppki.SignedTRC) (bool, error)

InsertTRC mocks base method.

func (*MockDB) SignedTRC

func (m *MockDB) SignedTRC(arg0 context.Context, arg1 cppki.TRCID) (cppki.SignedTRC, error)

SignedTRC mocks base method.

type MockDBMockRecorder

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

MockDBMockRecorder is the mock recorder for MockDB.

func (*MockDBMockRecorder) Chains

func (mr *MockDBMockRecorder) Chains(arg0, arg1 interface{}) *gomock.Call

Chains indicates an expected call of Chains.

func (*MockDBMockRecorder) InsertChain

func (mr *MockDBMockRecorder) InsertChain(arg0, arg1 interface{}) *gomock.Call

InsertChain indicates an expected call of InsertChain.

func (*MockDBMockRecorder) InsertTRC

func (mr *MockDBMockRecorder) InsertTRC(arg0, arg1 interface{}) *gomock.Call

InsertTRC indicates an expected call of InsertTRC.

func (*MockDBMockRecorder) SignedTRC

func (mr *MockDBMockRecorder) SignedTRC(arg0, arg1 interface{}) *gomock.Call

SignedTRC indicates an expected call of SignedTRC.

type MockFetcher

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

MockFetcher is a mock of Fetcher interface.

func NewMockFetcher

func NewMockFetcher(ctrl *gomock.Controller) *MockFetcher

NewMockFetcher creates a new mock instance.

func (*MockFetcher) Chains

func (m *MockFetcher) Chains(arg0 context.Context, arg1 trust.ChainQuery, arg2 net.Addr) ([][]*x509.Certificate, error)

Chains mocks base method.

func (*MockFetcher) EXPECT

func (m *MockFetcher) EXPECT() *MockFetcherMockRecorder

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

func (*MockFetcher) TRC

func (m *MockFetcher) TRC(arg0 context.Context, arg1 cppki.TRCID, arg2 net.Addr) (cppki.SignedTRC, error)

TRC mocks base method.

type MockFetcherMockRecorder

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

MockFetcherMockRecorder is the mock recorder for MockFetcher.

func (*MockFetcherMockRecorder) Chains

func (mr *MockFetcherMockRecorder) Chains(arg0, arg1, arg2 interface{}) *gomock.Call

Chains indicates an expected call of Chains.

func (*MockFetcherMockRecorder) TRC

func (mr *MockFetcherMockRecorder) TRC(arg0, arg1, arg2 interface{}) *gomock.Call

TRC indicates an expected call of TRC.

type MockInspector

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

MockInspector is a mock of Inspector interface.

func NewMockInspector

func NewMockInspector(ctrl *gomock.Controller) *MockInspector

NewMockInspector creates a new mock instance.

func (*MockInspector) ByAttributes

func (m *MockInspector) ByAttributes(arg0 context.Context, arg1 addr.ISD, arg2 trust.Attribute) ([]addr.IA, error)

ByAttributes mocks base method.

func (*MockInspector) EXPECT

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

func (*MockInspector) HasAttributes

func (m *MockInspector) HasAttributes(arg0 context.Context, arg1 addr.IA, arg2 trust.Attribute) (bool, error)

HasAttributes mocks base method.

type MockInspectorMockRecorder

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

MockInspectorMockRecorder is the mock recorder for MockInspector.

func (*MockInspectorMockRecorder) ByAttributes

func (mr *MockInspectorMockRecorder) ByAttributes(arg0, arg1, arg2 interface{}) *gomock.Call

ByAttributes indicates an expected call of ByAttributes.

func (*MockInspectorMockRecorder) HasAttributes

func (mr *MockInspectorMockRecorder) HasAttributes(arg0, arg1, arg2 interface{}) *gomock.Call

HasAttributes indicates an expected call of HasAttributes.

type MockKeyRing

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

MockKeyRing is a mock of KeyRing interface.

func NewMockKeyRing

func NewMockKeyRing(ctrl *gomock.Controller) *MockKeyRing

NewMockKeyRing creates a new mock instance.

func (*MockKeyRing) EXPECT

func (m *MockKeyRing) EXPECT() *MockKeyRingMockRecorder

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

func (*MockKeyRing) PrivateKeys

func (m *MockKeyRing) PrivateKeys(arg0 context.Context) ([]crypto.Signer, error)

PrivateKeys mocks base method.

type MockKeyRingMockRecorder

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

MockKeyRingMockRecorder is the mock recorder for MockKeyRing.

func (*MockKeyRingMockRecorder) PrivateKeys

func (mr *MockKeyRingMockRecorder) PrivateKeys(arg0 interface{}) *gomock.Call

PrivateKeys indicates an expected call of PrivateKeys.

type MockProvider

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

MockProvider is a mock of Provider interface.

func NewMockProvider

func NewMockProvider(ctrl *gomock.Controller) *MockProvider

NewMockProvider creates a new mock instance.

func (*MockProvider) EXPECT

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

func (*MockProvider) GetChains

func (m *MockProvider) GetChains(arg0 context.Context, arg1 trust.ChainQuery, arg2 ...trust.Option) ([][]*x509.Certificate, error)

GetChains mocks base method.

func (*MockProvider) GetSignedTRC

func (m *MockProvider) GetSignedTRC(arg0 context.Context, arg1 cppki.TRCID, arg2 ...trust.Option) (cppki.SignedTRC, error)

GetSignedTRC mocks base method.

func (*MockProvider) NotifyTRC

func (m *MockProvider) NotifyTRC(arg0 context.Context, arg1 cppki.TRCID, arg2 ...trust.Option) error

NotifyTRC mocks base method.

type MockProviderMockRecorder

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

MockProviderMockRecorder is the mock recorder for MockProvider.

func (*MockProviderMockRecorder) GetChains

func (mr *MockProviderMockRecorder) GetChains(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

GetChains indicates an expected call of GetChains.

func (*MockProviderMockRecorder) GetSignedTRC

func (mr *MockProviderMockRecorder) GetSignedTRC(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

GetSignedTRC indicates an expected call of GetSignedTRC.

func (*MockProviderMockRecorder) NotifyTRC

func (mr *MockProviderMockRecorder) NotifyTRC(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

NotifyTRC indicates an expected call of NotifyTRC.

type MockRecurser

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

MockRecurser is a mock of Recurser interface.

func NewMockRecurser

func NewMockRecurser(ctrl *gomock.Controller) *MockRecurser

NewMockRecurser creates a new mock instance.

func (*MockRecurser) AllowRecursion

func (m *MockRecurser) AllowRecursion(arg0 net.Addr) error

AllowRecursion mocks base method.

func (*MockRecurser) EXPECT

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

type MockRecurserMockRecorder

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

MockRecurserMockRecorder is the mock recorder for MockRecurser.

func (*MockRecurserMockRecorder) AllowRecursion

func (mr *MockRecurserMockRecorder) AllowRecursion(arg0 interface{}) *gomock.Call

AllowRecursion indicates an expected call of AllowRecursion.

type MockRouter

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

MockRouter is a mock of Router interface.

func NewMockRouter

func NewMockRouter(ctrl *gomock.Controller) *MockRouter

NewMockRouter creates a new mock instance.

func (*MockRouter) ChooseServer

func (m *MockRouter) ChooseServer(arg0 context.Context, arg1 addr.ISD) (net.Addr, error)

ChooseServer mocks base method.

func (*MockRouter) EXPECT

func (m *MockRouter) EXPECT() *MockRouterMockRecorder

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

type MockRouterMockRecorder

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

MockRouterMockRecorder is the mock recorder for MockRouter.

func (*MockRouterMockRecorder) ChooseServer

func (mr *MockRouterMockRecorder) ChooseServer(arg0, arg1 interface{}) *gomock.Call

ChooseServer indicates an expected call of ChooseServer.

Jump to

Keyboard shortcuts

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