Documentation ¶
Overview ¶
Package mock_trust is a generated GoMock package.
Index ¶
- type MockDB
- func (m *MockDB) Chains(arg0 context.Context, arg1 trust.ChainQuery) ([][]*x509.Certificate, error)
- func (m *MockDB) EXPECT() *MockDBMockRecorder
- func (m *MockDB) InsertChain(arg0 context.Context, arg1 []*x509.Certificate) (bool, error)
- func (m *MockDB) InsertTRC(arg0 context.Context, arg1 cppki.SignedTRC) (bool, error)
- func (m *MockDB) SignedTRC(arg0 context.Context, arg1 cppki.TRCID) (cppki.SignedTRC, error)
- type MockDBMockRecorder
- func (mr *MockDBMockRecorder) Chains(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockDBMockRecorder) InsertChain(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockDBMockRecorder) InsertTRC(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockDBMockRecorder) SignedTRC(arg0, arg1 interface{}) *gomock.Call
- type MockFetcher
- type MockFetcherMockRecorder
- type MockInspector
- type MockInspectorMockRecorder
- type MockKeyRing
- type MockKeyRingMockRecorder
- type MockProvider
- func (m *MockProvider) EXPECT() *MockProviderMockRecorder
- func (m *MockProvider) GetChains(arg0 context.Context, arg1 trust.ChainQuery, arg2 ...trust.Option) ([][]*x509.Certificate, error)
- func (m *MockProvider) GetSignedTRC(arg0 context.Context, arg1 cppki.TRCID, arg2 ...trust.Option) (cppki.SignedTRC, error)
- func (m *MockProvider) NotifyTRC(arg0 context.Context, arg1 cppki.TRCID, arg2 ...trust.Option) error
- type MockProviderMockRecorder
- func (mr *MockProviderMockRecorder) GetChains(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockProviderMockRecorder) GetSignedTRC(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockProviderMockRecorder) NotifyTRC(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- type MockRecurser
- type MockRecurserMockRecorder
- type MockRouter
- type MockRouterMockRecorder
- type MockX509KeyPairLoader
- type MockX509KeyPairLoaderMockRecorder
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 ¶
InsertChain 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.
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 ¶
func (m *MockInspector) EXPECT() *MockInspectorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
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 ¶
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 ¶
func (m *MockProvider) EXPECT() *MockProviderMockRecorder
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.
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 ¶
func (m *MockRecurser) EXPECT() *MockRecurserMockRecorder
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 ¶
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.
type MockX509KeyPairLoader ¶
type MockX509KeyPairLoader struct {
// contains filtered or unexported fields
}
MockX509KeyPairLoader is a mock of X509KeyPairLoader interface.
func NewMockX509KeyPairLoader ¶
func NewMockX509KeyPairLoader(ctrl *gomock.Controller) *MockX509KeyPairLoader
NewMockX509KeyPairLoader creates a new mock instance.
func (*MockX509KeyPairLoader) EXPECT ¶
func (m *MockX509KeyPairLoader) EXPECT() *MockX509KeyPairLoaderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockX509KeyPairLoader) LoadX509KeyPair ¶
func (m *MockX509KeyPairLoader) LoadX509KeyPair() (*tls.Certificate, error)
LoadX509KeyPair mocks base method.
type MockX509KeyPairLoaderMockRecorder ¶
type MockX509KeyPairLoaderMockRecorder struct {
// contains filtered or unexported fields
}
MockX509KeyPairLoaderMockRecorder is the mock recorder for MockX509KeyPairLoader.
func (*MockX509KeyPairLoaderMockRecorder) LoadX509KeyPair ¶
func (mr *MockX509KeyPairLoaderMockRecorder) LoadX509KeyPair() *gomock.Call
LoadX509KeyPair indicates an expected call of LoadX509KeyPair.