mocks

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockConnPoolMgr

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

MockConnPoolMgr is a mock of ConnPoolMgr interface.

func NewMockConnPoolMgr

func NewMockConnPoolMgr(ctrl *gomock.Controller) *MockConnPoolMgr

NewMockConnPoolMgr creates a new mock instance.

func (*MockConnPoolMgr) EXPECT

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

func (*MockConnPoolMgr) SetConnMaxIdleTime

func (m *MockConnPoolMgr) SetConnMaxIdleTime(arg0 time.Duration)

SetConnMaxIdleTime mocks base method.

func (*MockConnPoolMgr) SetConnMaxLifetime

func (m *MockConnPoolMgr) SetConnMaxLifetime(arg0 time.Duration)

SetConnMaxLifetime mocks base method.

func (*MockConnPoolMgr) SetMaxIdleConns

func (m *MockConnPoolMgr) SetMaxIdleConns(arg0 int)

SetMaxIdleConns mocks base method.

func (*MockConnPoolMgr) SetMaxOpenConns

func (m *MockConnPoolMgr) SetMaxOpenConns(arg0 int)

SetMaxOpenConns mocks base method.

type MockConnPoolMgrMockRecorder

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

MockConnPoolMgrMockRecorder is the mock recorder for MockConnPoolMgr.

func (*MockConnPoolMgrMockRecorder) SetConnMaxIdleTime

func (mr *MockConnPoolMgrMockRecorder) SetConnMaxIdleTime(arg0 interface{}) *gomock.Call

SetConnMaxIdleTime indicates an expected call of SetConnMaxIdleTime.

func (*MockConnPoolMgrMockRecorder) SetConnMaxLifetime

func (mr *MockConnPoolMgrMockRecorder) SetConnMaxLifetime(arg0 interface{}) *gomock.Call

SetConnMaxLifetime indicates an expected call of SetConnMaxLifetime.

func (*MockConnPoolMgrMockRecorder) SetMaxIdleConns

func (mr *MockConnPoolMgrMockRecorder) SetMaxIdleConns(arg0 interface{}) *gomock.Call

SetMaxIdleConns indicates an expected call of SetMaxIdleConns.

func (*MockConnPoolMgrMockRecorder) SetMaxOpenConns

func (mr *MockConnPoolMgrMockRecorder) SetMaxOpenConns(arg0 interface{}) *gomock.Call

SetMaxOpenConns indicates an expected call of SetMaxOpenConns.

type MockCredentialsCreator

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

MockCredentialsCreator is a mock of CredentialsCreator interface.

func NewMockCredentialsCreator

func NewMockCredentialsCreator(ctrl *gomock.Controller) *MockCredentialsCreator

NewMockCredentialsCreator creates a new mock instance.

func (*MockCredentialsCreator) Create

Create mocks base method.

func (*MockCredentialsCreator) EXPECT

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

type MockCredentialsCreatorMockRecorder

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

MockCredentialsCreatorMockRecorder is the mock recorder for MockCredentialsCreator.

func (*MockCredentialsCreatorMockRecorder) Create

func (mr *MockCredentialsCreatorMockRecorder) Create(arg0 interface{}) *gomock.Call

Create indicates an expected call of Create.

type MockDriver

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

MockDriver is a mock of Driver interface.

func NewMockDriver

func NewMockDriver(ctrl *gomock.Controller) *MockDriver

NewMockDriver creates a new mock instance.

func (*MockDriver) EXPECT

func (m *MockDriver) EXPECT() *MockDriverMockRecorder

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

func (*MockDriver) Open

func (m *MockDriver) Open(arg0 string) (driver.Conn, error)

Open mocks base method.

type MockDriverMockRecorder

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

MockDriverMockRecorder is the mock recorder for MockDriver.

func (*MockDriverMockRecorder) Open

func (mr *MockDriverMockRecorder) Open(arg0 interface{}) *gomock.Call

Open indicates an expected call of Open.

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) BatchCreateNotes

func (m *MockStorage) BatchCreateNotes(arg0 context.Context, arg1, arg2 string, arg3 map[string]*grafeas_go_proto.Note) ([]*grafeas_go_proto.Note, []error)

BatchCreateNotes mocks base method.

func (*MockStorage) BatchCreateOccurrences

func (m *MockStorage) BatchCreateOccurrences(arg0 context.Context, arg1, arg2 string, arg3 []*grafeas_go_proto.Occurrence) ([]*grafeas_go_proto.Occurrence, []error)

BatchCreateOccurrences mocks base method.

func (*MockStorage) CreateNote

func (m *MockStorage) CreateNote(arg0 context.Context, arg1, arg2, arg3 string, arg4 *grafeas_go_proto.Note) (*grafeas_go_proto.Note, error)

CreateNote mocks base method.

func (*MockStorage) CreateOccurrence

func (m *MockStorage) CreateOccurrence(arg0 context.Context, arg1, arg2 string, arg3 *grafeas_go_proto.Occurrence) (*grafeas_go_proto.Occurrence, error)

CreateOccurrence mocks base method.

func (*MockStorage) CreateProject

func (m *MockStorage) CreateProject(arg0 context.Context, arg1 string, arg2 *project_go_proto.Project) (*project_go_proto.Project, error)

CreateProject mocks base method.

func (*MockStorage) DeleteNote

func (m *MockStorage) DeleteNote(arg0 context.Context, arg1, arg2 string) error

DeleteNote mocks base method.

func (*MockStorage) DeleteOccurrence

func (m *MockStorage) DeleteOccurrence(arg0 context.Context, arg1, arg2 string) error

DeleteOccurrence mocks base method.

func (*MockStorage) DeleteProject

func (m *MockStorage) DeleteProject(arg0 context.Context, arg1 string) error

DeleteProject 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) GetNote

func (m *MockStorage) GetNote(arg0 context.Context, arg1, arg2 string) (*grafeas_go_proto.Note, error)

GetNote mocks base method.

func (*MockStorage) GetOccurrence

func (m *MockStorage) GetOccurrence(arg0 context.Context, arg1, arg2 string) (*grafeas_go_proto.Occurrence, error)

GetOccurrence mocks base method.

func (*MockStorage) GetOccurrenceNote

func (m *MockStorage) GetOccurrenceNote(arg0 context.Context, arg1, arg2 string) (*grafeas_go_proto.Note, error)

GetOccurrenceNote mocks base method.

func (*MockStorage) GetProject

func (m *MockStorage) GetProject(arg0 context.Context, arg1 string) (*project_go_proto.Project, error)

GetProject mocks base method.

func (*MockStorage) GetVulnerabilityOccurrencesSummary

func (m *MockStorage) GetVulnerabilityOccurrencesSummary(arg0 context.Context, arg1, arg2 string) (*grafeas_go_proto.VulnerabilityOccurrencesSummary, error)

GetVulnerabilityOccurrencesSummary mocks base method.

func (*MockStorage) ListNoteOccurrences

func (m *MockStorage) ListNoteOccurrences(arg0 context.Context, arg1, arg2, arg3, arg4 string, arg5 int32) ([]*grafeas_go_proto.Occurrence, string, error)

ListNoteOccurrences mocks base method.

func (*MockStorage) ListNotes

func (m *MockStorage) ListNotes(arg0 context.Context, arg1, arg2, arg3 string, arg4 int32) ([]*grafeas_go_proto.Note, string, error)

ListNotes mocks base method.

func (*MockStorage) ListOccurrences

func (m *MockStorage) ListOccurrences(arg0 context.Context, arg1, arg2, arg3 string, arg4 int32) ([]*grafeas_go_proto.Occurrence, string, error)

ListOccurrences mocks base method.

func (*MockStorage) ListProjects

func (m *MockStorage) ListProjects(arg0 context.Context, arg1 string, arg2 int, arg3 string) ([]*project_go_proto.Project, string, error)

ListProjects mocks base method.

func (*MockStorage) SetConnMaxIdleTime

func (m *MockStorage) SetConnMaxIdleTime(arg0 time.Duration)

SetConnMaxIdleTime mocks base method.

func (*MockStorage) SetConnMaxLifetime

func (m *MockStorage) SetConnMaxLifetime(arg0 time.Duration)

SetConnMaxLifetime mocks base method.

func (*MockStorage) SetMaxIdleConns

func (m *MockStorage) SetMaxIdleConns(arg0 int)

SetMaxIdleConns mocks base method.

func (*MockStorage) SetMaxOpenConns

func (m *MockStorage) SetMaxOpenConns(arg0 int)

SetMaxOpenConns mocks base method.

func (*MockStorage) UpdateNote

func (m *MockStorage) UpdateNote(arg0 context.Context, arg1, arg2 string, arg3 *grafeas_go_proto.Note, arg4 *fieldmaskpb.FieldMask) (*grafeas_go_proto.Note, error)

UpdateNote mocks base method.

func (*MockStorage) UpdateOccurrence

func (m *MockStorage) UpdateOccurrence(arg0 context.Context, arg1, arg2 string, arg3 *grafeas_go_proto.Occurrence, arg4 *fieldmaskpb.FieldMask) (*grafeas_go_proto.Occurrence, error)

UpdateOccurrence mocks base method.

type MockStorageMockRecorder

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

MockStorageMockRecorder is the mock recorder for MockStorage.

func (*MockStorageMockRecorder) BatchCreateNotes

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

BatchCreateNotes indicates an expected call of BatchCreateNotes.

func (*MockStorageMockRecorder) BatchCreateOccurrences

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

BatchCreateOccurrences indicates an expected call of BatchCreateOccurrences.

func (*MockStorageMockRecorder) CreateNote

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

CreateNote indicates an expected call of CreateNote.

func (*MockStorageMockRecorder) CreateOccurrence

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

CreateOccurrence indicates an expected call of CreateOccurrence.

func (*MockStorageMockRecorder) CreateProject

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

CreateProject indicates an expected call of CreateProject.

func (*MockStorageMockRecorder) DeleteNote

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

DeleteNote indicates an expected call of DeleteNote.

func (*MockStorageMockRecorder) DeleteOccurrence

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

DeleteOccurrence indicates an expected call of DeleteOccurrence.

func (*MockStorageMockRecorder) DeleteProject

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

DeleteProject indicates an expected call of DeleteProject.

func (*MockStorageMockRecorder) GetNote

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

GetNote indicates an expected call of GetNote.

func (*MockStorageMockRecorder) GetOccurrence

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

GetOccurrence indicates an expected call of GetOccurrence.

func (*MockStorageMockRecorder) GetOccurrenceNote

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

GetOccurrenceNote indicates an expected call of GetOccurrenceNote.

func (*MockStorageMockRecorder) GetProject

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

GetProject indicates an expected call of GetProject.

func (*MockStorageMockRecorder) GetVulnerabilityOccurrencesSummary

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

GetVulnerabilityOccurrencesSummary indicates an expected call of GetVulnerabilityOccurrencesSummary.

func (*MockStorageMockRecorder) ListNoteOccurrences

func (mr *MockStorageMockRecorder) ListNoteOccurrences(arg0, arg1, arg2, arg3, arg4, arg5 interface{}) *gomock.Call

ListNoteOccurrences indicates an expected call of ListNoteOccurrences.

func (*MockStorageMockRecorder) ListNotes

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

ListNotes indicates an expected call of ListNotes.

func (*MockStorageMockRecorder) ListOccurrences

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

ListOccurrences indicates an expected call of ListOccurrences.

func (*MockStorageMockRecorder) ListProjects

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

ListProjects indicates an expected call of ListProjects.

func (*MockStorageMockRecorder) SetConnMaxIdleTime

func (mr *MockStorageMockRecorder) SetConnMaxIdleTime(arg0 interface{}) *gomock.Call

SetConnMaxIdleTime indicates an expected call of SetConnMaxIdleTime.

func (*MockStorageMockRecorder) SetConnMaxLifetime

func (mr *MockStorageMockRecorder) SetConnMaxLifetime(arg0 interface{}) *gomock.Call

SetConnMaxLifetime indicates an expected call of SetConnMaxLifetime.

func (*MockStorageMockRecorder) SetMaxIdleConns

func (mr *MockStorageMockRecorder) SetMaxIdleConns(arg0 interface{}) *gomock.Call

SetMaxIdleConns indicates an expected call of SetMaxIdleConns.

func (*MockStorageMockRecorder) SetMaxOpenConns

func (mr *MockStorageMockRecorder) SetMaxOpenConns(arg0 interface{}) *gomock.Call

SetMaxOpenConns indicates an expected call of SetMaxOpenConns.

func (*MockStorageMockRecorder) UpdateNote

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

UpdateNote indicates an expected call of UpdateNote.

func (*MockStorageMockRecorder) UpdateOccurrence

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

UpdateOccurrence indicates an expected call of UpdateOccurrence.

Jump to

Keyboard shortcuts

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