mock_storage

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package mock_storage is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockTrustDB

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

MockTrustDB is a mock of TrustDB interface.

func NewMockTrustDB

func NewMockTrustDB(ctrl *gomock.Controller) *MockTrustDB

NewMockTrustDB creates a new mock instance.

func (*MockTrustDB) Chain

func (m *MockTrustDB) Chain(arg0 context.Context, arg1 []byte) ([]*x509.Certificate, error)

Chain mocks base method.

func (*MockTrustDB) Chains

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

Chains mocks base method.

func (*MockTrustDB) Close

func (m *MockTrustDB) Close() error

Close mocks base method.

func (*MockTrustDB) EXPECT

func (m *MockTrustDB) EXPECT() *MockTrustDBMockRecorder

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

func (*MockTrustDB) InsertChain

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

InsertChain mocks base method.

func (*MockTrustDB) InsertTRC

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

InsertTRC mocks base method.

func (*MockTrustDB) SignedTRC

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

SignedTRC mocks base method.

func (*MockTrustDB) SignedTRCs

func (m *MockTrustDB) SignedTRCs(arg0 context.Context, arg1 trust.TRCsQuery) (cppki.SignedTRCs, error)

SignedTRCs mocks base method.

type MockTrustDBMockRecorder

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

MockTrustDBMockRecorder is the mock recorder for MockTrustDB.

func (*MockTrustDBMockRecorder) Chain

func (mr *MockTrustDBMockRecorder) Chain(arg0, arg1 interface{}) *gomock.Call

Chain indicates an expected call of Chain.

func (*MockTrustDBMockRecorder) Chains

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

Chains indicates an expected call of Chains.

func (*MockTrustDBMockRecorder) Close

func (mr *MockTrustDBMockRecorder) Close() *gomock.Call

Close indicates an expected call of Close.

func (*MockTrustDBMockRecorder) InsertChain

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

InsertChain indicates an expected call of InsertChain.

func (*MockTrustDBMockRecorder) InsertTRC

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

InsertTRC indicates an expected call of InsertTRC.

func (*MockTrustDBMockRecorder) SignedTRC

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

SignedTRC indicates an expected call of SignedTRC.

func (*MockTrustDBMockRecorder) SignedTRCs

func (mr *MockTrustDBMockRecorder) SignedTRCs(arg0, arg1 interface{}) *gomock.Call

SignedTRCs indicates an expected call of SignedTRCs.

Jump to

Keyboard shortcuts

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