Documentation
¶
Overview ¶
Package archivefx is a generated GoMock package.
Index ¶
- Variables
- type ArvSrv
- type IArvSrv
- type IRepository
- type MockIRepository
- func (m *MockIRepository) Create(path string, body []byte) error
- func (m *MockIRepository) CreateDir(path string) error
- func (m *MockIRepository) EXPECT() *MockIRepositoryMockRecorder
- func (m *MockIRepository) HomeDir() (string, error)
- func (m *MockIRepository) IsDir(path string) (bool, error)
- func (m *MockIRepository) IsExist(path string) bool
- func (m *MockIRepository) ListDirs(path string) ([]string, error)
- func (m *MockIRepository) ListFiles(path string) ([]string, error)
- func (m *MockIRepository) Read(path string) ([]byte, error)
- func (m *MockIRepository) Remove(path string) error
- func (m *MockIRepository) WorkDir() (string, error)
- type MockIRepositoryMockRecorder
- func (mr *MockIRepositoryMockRecorder) Create(path, body any) *gomock.Call
- func (mr *MockIRepositoryMockRecorder) CreateDir(path any) *gomock.Call
- func (mr *MockIRepositoryMockRecorder) HomeDir() *gomock.Call
- func (mr *MockIRepositoryMockRecorder) IsDir(path any) *gomock.Call
- func (mr *MockIRepositoryMockRecorder) IsExist(path any) *gomock.Call
- func (mr *MockIRepositoryMockRecorder) ListDirs(path any) *gomock.Call
- func (mr *MockIRepositoryMockRecorder) ListFiles(path any) *gomock.Call
- func (mr *MockIRepositoryMockRecorder) Read(path any) *gomock.Call
- func (mr *MockIRepositoryMockRecorder) Remove(path any) *gomock.Call
- func (mr *MockIRepositoryMockRecorder) WorkDir() *gomock.Call
- type Repository
- func (i *Repository) Create(path string, body []byte) error
- func (i *Repository) CreateDir(path string) error
- func (i *Repository) HomeDir() (string, error)
- func (i *Repository) IsDir(path string) (bool, error)
- func (i *Repository) IsExist(path string) bool
- func (i *Repository) ListDirs(path string) ([]string, error)
- func (i *Repository) ListFiles(path string) ([]string, error)
- func (i *Repository) Read(path string) ([]byte, error)
- func (i *Repository) Remove(path string) error
- func (i *Repository) WorkDir() (string, error)
Constants ¶
This section is empty.
Variables ¶
var Module = fx.Module( "archivefx", fx.Provide( New, NewRepository, ), )
Functions ¶
This section is empty.
Types ¶
type IArvSrv ¶
type IRepository ¶
type IRepository interface { IsExist(path string) bool IsDir(path string) (bool, error) CreateDir(path string) error Create(path string, body []byte) error HomeDir() (string, error) WorkDir() (string, error) Remove(path string) error Read(path string) ([]byte, error) ListDirs(path string) ([]string, error) ListFiles(path string) ([]string, error) }
func NewRepository ¶
func NewRepository() IRepository
type MockIRepository ¶
type MockIRepository struct {
// contains filtered or unexported fields
}
MockIRepository is a mock of IRepository interface.
func NewMockIRepository ¶
func NewMockIRepository(ctrl *gomock.Controller) *MockIRepository
NewMockIRepository creates a new mock instance.
func (*MockIRepository) Create ¶
func (m *MockIRepository) Create(path string, body []byte) error
Create mocks base method.
func (*MockIRepository) CreateDir ¶
func (m *MockIRepository) CreateDir(path string) error
CreateDir mocks base method.
func (*MockIRepository) EXPECT ¶
func (m *MockIRepository) EXPECT() *MockIRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockIRepository) HomeDir ¶
func (m *MockIRepository) HomeDir() (string, error)
HomeDir mocks base method.
func (*MockIRepository) IsDir ¶
func (m *MockIRepository) IsDir(path string) (bool, error)
IsDir mocks base method.
func (*MockIRepository) IsExist ¶
func (m *MockIRepository) IsExist(path string) bool
IsExist mocks base method.
func (*MockIRepository) ListDirs ¶
func (m *MockIRepository) ListDirs(path string) ([]string, error)
ListDirs mocks base method.
func (*MockIRepository) ListFiles ¶
func (m *MockIRepository) ListFiles(path string) ([]string, error)
ListFiles mocks base method.
func (*MockIRepository) Read ¶
func (m *MockIRepository) Read(path string) ([]byte, error)
Read mocks base method.
func (*MockIRepository) Remove ¶
func (m *MockIRepository) Remove(path string) error
Remove mocks base method.
func (*MockIRepository) WorkDir ¶
func (m *MockIRepository) WorkDir() (string, error)
WorkDir mocks base method.
type MockIRepositoryMockRecorder ¶
type MockIRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockIRepositoryMockRecorder is the mock recorder for MockIRepository.
func (*MockIRepositoryMockRecorder) Create ¶
func (mr *MockIRepositoryMockRecorder) Create(path, body any) *gomock.Call
Create indicates an expected call of Create.
func (*MockIRepositoryMockRecorder) CreateDir ¶
func (mr *MockIRepositoryMockRecorder) CreateDir(path any) *gomock.Call
CreateDir indicates an expected call of CreateDir.
func (*MockIRepositoryMockRecorder) HomeDir ¶
func (mr *MockIRepositoryMockRecorder) HomeDir() *gomock.Call
HomeDir indicates an expected call of HomeDir.
func (*MockIRepositoryMockRecorder) IsDir ¶
func (mr *MockIRepositoryMockRecorder) IsDir(path any) *gomock.Call
IsDir indicates an expected call of IsDir.
func (*MockIRepositoryMockRecorder) IsExist ¶
func (mr *MockIRepositoryMockRecorder) IsExist(path any) *gomock.Call
IsExist indicates an expected call of IsExist.
func (*MockIRepositoryMockRecorder) ListDirs ¶
func (mr *MockIRepositoryMockRecorder) ListDirs(path any) *gomock.Call
ListDirs indicates an expected call of ListDirs.
func (*MockIRepositoryMockRecorder) ListFiles ¶
func (mr *MockIRepositoryMockRecorder) ListFiles(path any) *gomock.Call
ListFiles indicates an expected call of ListFiles.
func (*MockIRepositoryMockRecorder) Read ¶
func (mr *MockIRepositoryMockRecorder) Read(path any) *gomock.Call
Read indicates an expected call of Read.
func (*MockIRepositoryMockRecorder) Remove ¶
func (mr *MockIRepositoryMockRecorder) Remove(path any) *gomock.Call
Remove indicates an expected call of Remove.
func (*MockIRepositoryMockRecorder) WorkDir ¶
func (mr *MockIRepositoryMockRecorder) WorkDir() *gomock.Call
WorkDir indicates an expected call of WorkDir.
type Repository ¶
type Repository struct{}
func (*Repository) CreateDir ¶
func (i *Repository) CreateDir(path string) error
func (*Repository) HomeDir ¶
func (i *Repository) HomeDir() (string, error)
func (*Repository) IsExist ¶
func (i *Repository) IsExist(path string) bool
func (*Repository) Remove ¶
func (i *Repository) Remove(path string) error
func (*Repository) WorkDir ¶
func (i *Repository) WorkDir() (string, error)