mockstorage

package
v0.0.0-...-400a50a Latest Latest
Warning

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

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

Documentation

Overview

Package mockclient provides a mockable version of the Trillian log client API.

Package mockstorage is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockStorage

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

MockStorage is a mock of Storage interface.

func NewMockStorage

func NewMockStorage(ctrl *gomock.Controller) *MockStorage

NewMockStorage creates a new mock instance.

func (*MockStorage) Add

Add mocks base method.

func (*MockStorage) AddCertDedupInfo

func (m *MockStorage) AddCertDedupInfo(arg0 context.Context, arg1 *x509.Certificate, arg2 dedup.SCTDedupInfo) error

AddCertDedupInfo mocks base method.

func (*MockStorage) AddIssuerChain

func (m *MockStorage) AddIssuerChain(arg0 context.Context, arg1 []*x509.Certificate) error

AddIssuerChain mocks base method.

func (*MockStorage) EXPECT

func (m *MockStorage) EXPECT() *MockStorageMockRecorder

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

func (*MockStorage) GetCertDedupInfo

func (m *MockStorage) GetCertDedupInfo(arg0 context.Context, arg1 *x509.Certificate) (dedup.SCTDedupInfo, bool, error)

GetCertDedupInfo mocks base method.

type MockStorageMockRecorder

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

MockStorageMockRecorder is the mock recorder for MockStorage.

func (*MockStorageMockRecorder) Add

func (mr *MockStorageMockRecorder) Add(arg0, arg1 interface{}) *gomock.Call

Add indicates an expected call of Add.

func (*MockStorageMockRecorder) AddCertDedupInfo

func (mr *MockStorageMockRecorder) AddCertDedupInfo(arg0, arg1, arg2 interface{}) *gomock.Call

AddCertDedupInfo indicates an expected call of AddCertDedupInfo.

func (*MockStorageMockRecorder) AddIssuerChain

func (mr *MockStorageMockRecorder) AddIssuerChain(arg0, arg1 interface{}) *gomock.Call

AddIssuerChain indicates an expected call of AddIssuerChain.

func (*MockStorageMockRecorder) GetCertDedupInfo

func (mr *MockStorageMockRecorder) GetCertDedupInfo(arg0, arg1 interface{}) *gomock.Call

GetCertDedupInfo indicates an expected call of GetCertDedupInfo.

Jump to

Keyboard shortcuts

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