Documentation ¶
Overview ¶
Package repository_mock implements the mock for Repository.
Index ¶
- type MockedRepository
- func (repoMock *MockedRepository) AddPackage(context context.T, packageName string, version string, ...) error
- func (repoMock *MockedRepository) GetAction(context context.T, packageName string, version string, actionName string) (exists bool, actionDocument []byte, workingDir string, err error)
- func (repoMock *MockedRepository) GetInstallState(context context.T, packageName string) (state localpackages.InstallState, version string)
- func (repoMock *MockedRepository) GetInstalledVersion(context context.T, packageName string) string
- func (repoMock *MockedRepository) GetInventoryData(context context.T) []model.ApplicationData
- func (repoMock *MockedRepository) RefreshPackage(context context.T, packageName string, version string, ...) error
- func (repoMock *MockedRepository) RemovePackage(context context.T, packageName string, version string) error
- func (repoMock *MockedRepository) SetInstallState(context context.T, packageName string, version string, ...) error
- func (repoMock *MockedRepository) ValidatePackage(context context.T, packageName string, version string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockedRepository ¶
func (*MockedRepository) AddPackage ¶
func (repoMock *MockedRepository) AddPackage(context context.T, packageName string, version string, downloader localpackages.DownloadDelegate) error
func (*MockedRepository) GetInstallState ¶
func (repoMock *MockedRepository) GetInstallState(context context.T, packageName string) (state localpackages.InstallState, version string)
func (*MockedRepository) GetInstalledVersion ¶
func (repoMock *MockedRepository) GetInstalledVersion(context context.T, packageName string) string
func (*MockedRepository) GetInventoryData ¶
func (repoMock *MockedRepository) GetInventoryData(context context.T) []model.ApplicationData
func (*MockedRepository) RefreshPackage ¶
func (repoMock *MockedRepository) RefreshPackage(context context.T, packageName string, version string, downloader localpackages.DownloadDelegate) error
func (*MockedRepository) RemovePackage ¶
func (*MockedRepository) SetInstallState ¶
func (repoMock *MockedRepository) SetInstallState(context context.T, packageName string, version string, state localpackages.InstallState) error
func (*MockedRepository) ValidatePackage ¶
Click to show internal directories.
Click to hide internal directories.