Documentation ¶
Overview ¶
Package filesystem is a generated GoMock package.
Package filesystem is a generated GoMock package.
Index ¶
- type FileConfig
- type FileMetadata
- type FileScanner
- type FileWalker
- type MockFileMetadata
- func (m *MockFileMetadata) EXPECT() *MockFileMetadataMockRecorder
- func (m *MockFileMetadata) GetGroup(path string, fileInfo os.FileInfo) (string, error)
- func (m *MockFileMetadata) GetModifiedTime(path string, fileInfo os.FileInfo) time.Time
- func (m *MockFileMetadata) GetUser(path string, fileInfo os.FileInfo) (string, error)
- type MockFileMetadataMockRecorder
- type MockFileWalker
- type MockFileWalkerMockRecorder
- type WalkedFile
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileConfig ¶ added in v0.5.0
func GetFileConfig ¶ added in v0.5.0
func GetFileConfig() FileConfig
type FileMetadata ¶ added in v0.5.0
type FileMetadata interface { GetUser(path string, fileInfo os.FileInfo) (string, error) GetGroup(path string, fileInfo os.FileInfo) (string, error) }
func GetFileMetadata ¶ added in v0.5.0
func GetFileMetadata() FileMetadata
type FileScanner ¶ added in v0.5.0
type FileScanner struct { Walker FileWalker Metadata FileMetadata Logger scanlog.Logger }
type FileWalker ¶ added in v0.5.0
type FileWalker interface {
Walk() ([]WalkedFile, error)
}
func NewWalker ¶ added in v0.5.0
func NewWalker(config FileConfig, fileMatch scantron.FileMatch, logger scanlog.Logger) (FileWalker, error)
type MockFileMetadata ¶ added in v0.5.0
type MockFileMetadata struct {
// contains filtered or unexported fields
}
MockFileMetadata is a mock of FileMetadata interface
func NewMockFileMetadata ¶ added in v0.5.0
func NewMockFileMetadata(ctrl *gomock.Controller) *MockFileMetadata
NewMockFileMetadata creates a new mock instance
func (*MockFileMetadata) EXPECT ¶ added in v0.5.0
func (m *MockFileMetadata) EXPECT() *MockFileMetadataMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockFileMetadata) GetModifiedTime ¶ added in v0.5.0
GetModifiedTime mocks base method
type MockFileMetadataMockRecorder ¶ added in v0.5.0
type MockFileMetadataMockRecorder struct {
// contains filtered or unexported fields
}
MockFileMetadataMockRecorder is the mock recorder for MockFileMetadata
func (*MockFileMetadataMockRecorder) GetGroup ¶ added in v0.5.0
func (mr *MockFileMetadataMockRecorder) GetGroup(path, fileInfo interface{}) *gomock.Call
GetGroup indicates an expected call of GetGroup
func (*MockFileMetadataMockRecorder) GetModifiedTime ¶ added in v0.5.0
func (mr *MockFileMetadataMockRecorder) GetModifiedTime(path, fileInfo interface{}) *gomock.Call
GetModifiedTime indicates an expected call of GetModifiedTime
func (*MockFileMetadataMockRecorder) GetUser ¶ added in v0.5.0
func (mr *MockFileMetadataMockRecorder) GetUser(path, fileInfo interface{}) *gomock.Call
GetUser indicates an expected call of GetUser
type MockFileWalker ¶ added in v0.5.0
type MockFileWalker struct {
// contains filtered or unexported fields
}
MockFileWalker is a mock of FileWalker interface
func NewMockFileWalker ¶ added in v0.5.0
func NewMockFileWalker(ctrl *gomock.Controller) *MockFileWalker
NewMockFileWalker creates a new mock instance
func (*MockFileWalker) EXPECT ¶ added in v0.5.0
func (m *MockFileWalker) EXPECT() *MockFileWalkerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockFileWalker) Walk ¶ added in v0.5.0
func (m *MockFileWalker) Walk() ([]WalkedFile, error)
Walk mocks base method
type MockFileWalkerMockRecorder ¶ added in v0.5.0
type MockFileWalkerMockRecorder struct {
// contains filtered or unexported fields
}
MockFileWalkerMockRecorder is the mock recorder for MockFileWalker
func (*MockFileWalkerMockRecorder) Walk ¶ added in v0.5.0
func (mr *MockFileWalkerMockRecorder) Walk() *gomock.Call
Walk indicates an expected call of Walk
type WalkedFile ¶ added in v0.5.0
type WalkedFile struct { Path string Info os.FileInfo RegexMatches []scantron.RegexMatch }