mapping

package
v0.0.0-...-73e0568 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package mapping is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MappingRepository

type MappingRepository interface {
	GetSha256(fileContent []byte) string
	Add(peName string, fileContent []byte, modTime time.Time, status string) error
	Remove(fileContent []byte) error
	RemoveMappingFile() error
	GetModTime(filePath string) int64
	GetFilePath(modTime time.Time) string
	GetName(filePath string) string
	Persist() error
	Size() int
	Exists(peName string) bool
	GetAll() map[int]string
	GetAllNames() []string
	GetStatus(name string) string
	GetAllNamesStatus() map[string]string
	UpdateStatus(name, status string) error
}

func NewMappingRepository

func NewMappingRepository(configDir string) (MappingRepository, error)

type MockMappingRepository

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

MockMappingRepository is a mock of MappingRepository interface.

func NewMockMappingRepository

func NewMockMappingRepository(ctrl *gomock.Controller) *MockMappingRepository

NewMockMappingRepository creates a new mock instance.

func (*MockMappingRepository) Add

func (m *MockMappingRepository) Add(arg0 string, arg1 []byte, arg2 time.Time, arg3 string) error

Add mocks base method.

func (*MockMappingRepository) EXPECT

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

func (*MockMappingRepository) Exists

func (m *MockMappingRepository) Exists(arg0 time.Time) bool

Exists mocks base method.

func (*MockMappingRepository) GetAll

func (m *MockMappingRepository) GetAll() map[int]string

GetAll mocks base method.

func (*MockMappingRepository) GetAllNames

func (m *MockMappingRepository) GetAllNames() []string

GetAllNames mocks base method.

func (*MockMappingRepository) GetAllNamesStatus

func (m *MockMappingRepository) GetAllNamesStatus() map[string]string

GetAllNamesStatus mocks base method.

func (*MockMappingRepository) GetFilePath

func (m *MockMappingRepository) GetFilePath(arg0 time.Time) string

GetFilePath mocks base method.

func (*MockMappingRepository) GetModTime

func (m *MockMappingRepository) GetModTime(arg0 string) int64

GetModTime mocks base method.

func (*MockMappingRepository) GetName

func (m *MockMappingRepository) GetName(arg0 string) string

GetName mocks base method.

func (*MockMappingRepository) GetSha256

func (m *MockMappingRepository) GetSha256(arg0 []byte) string

GetSha256 mocks base method.

func (*MockMappingRepository) GetStatus

func (m *MockMappingRepository) GetStatus(arg0 string) string

GetStatus mocks base method.

func (*MockMappingRepository) Persist

func (m *MockMappingRepository) Persist() error

Persist mocks base method.

func (*MockMappingRepository) Remove

func (m *MockMappingRepository) Remove(arg0 []byte) error

Remove mocks base method.

func (*MockMappingRepository) RemoveMappingFile

func (m *MockMappingRepository) RemoveMappingFile() error

RemoveMappingFile mocks base method.

func (*MockMappingRepository) Size

func (m *MockMappingRepository) Size() int

Size mocks base method.

func (*MockMappingRepository) UpdateStatus

func (m *MockMappingRepository) UpdateStatus(arg0, arg1 string) error

UpdateStatus mocks base method.

type MockMappingRepositoryMockRecorder

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

MockMappingRepositoryMockRecorder is the mock recorder for MockMappingRepository.

func (*MockMappingRepositoryMockRecorder) Add

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

Add indicates an expected call of Add.

func (*MockMappingRepositoryMockRecorder) Exists

func (mr *MockMappingRepositoryMockRecorder) Exists(arg0 interface{}) *gomock.Call

Exists indicates an expected call of Exists.

func (*MockMappingRepositoryMockRecorder) GetAll

GetAll indicates an expected call of GetAll.

func (*MockMappingRepositoryMockRecorder) GetAllNames

func (mr *MockMappingRepositoryMockRecorder) GetAllNames() *gomock.Call

GetAllNames indicates an expected call of GetAllNames.

func (*MockMappingRepositoryMockRecorder) GetAllNamesStatus

func (mr *MockMappingRepositoryMockRecorder) GetAllNamesStatus() *gomock.Call

GetAllNamesStatus indicates an expected call of GetAllNamesStatus.

func (*MockMappingRepositoryMockRecorder) GetFilePath

func (mr *MockMappingRepositoryMockRecorder) GetFilePath(arg0 interface{}) *gomock.Call

GetFilePath indicates an expected call of GetFilePath.

func (*MockMappingRepositoryMockRecorder) GetModTime

func (mr *MockMappingRepositoryMockRecorder) GetModTime(arg0 interface{}) *gomock.Call

GetModTime indicates an expected call of GetModTime.

func (*MockMappingRepositoryMockRecorder) GetName

func (mr *MockMappingRepositoryMockRecorder) GetName(arg0 interface{}) *gomock.Call

GetName indicates an expected call of GetName.

func (*MockMappingRepositoryMockRecorder) GetSha256

func (mr *MockMappingRepositoryMockRecorder) GetSha256(arg0 interface{}) *gomock.Call

GetSha256 indicates an expected call of GetSha256.

func (*MockMappingRepositoryMockRecorder) GetStatus

func (mr *MockMappingRepositoryMockRecorder) GetStatus(arg0 interface{}) *gomock.Call

GetStatus indicates an expected call of GetStatus.

func (*MockMappingRepositoryMockRecorder) Persist

Persist indicates an expected call of Persist.

func (*MockMappingRepositoryMockRecorder) Remove

func (mr *MockMappingRepositoryMockRecorder) Remove(arg0 interface{}) *gomock.Call

Remove indicates an expected call of Remove.

func (*MockMappingRepositoryMockRecorder) RemoveMappingFile

func (mr *MockMappingRepositoryMockRecorder) RemoveMappingFile() *gomock.Call

RemoveMappingFile indicates an expected call of RemoveMappingFile.

func (*MockMappingRepositoryMockRecorder) Size

Size indicates an expected call of Size.

func (*MockMappingRepositoryMockRecorder) UpdateStatus

func (mr *MockMappingRepositoryMockRecorder) UpdateStatus(arg0, arg1 interface{}) *gomock.Call

UpdateStatus indicates an expected call of UpdateStatus.

Jump to

Keyboard shortcuts

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