Documentation ¶
Overview ¶
Package repository_mock implements the mock for Repository.
Index ¶
- type MockedRepository
- func (repoMock *MockedRepository) AddPackage(tracer trace.Tracer, packageName string, version string, ...) error
- func (repoMock *MockedRepository) GetInstallState(tracer trace.Tracer, packageName string) (state localpackages.InstallState, version string)
- func (repoMock *MockedRepository) GetInstalledVersion(tracer trace.Tracer, packageName string) string
- func (repoMock *MockedRepository) GetInstaller(tracer trace.Tracer, configuration contracts.Configuration, packageName string, ...) installer.Installer
- func (repoMock *MockedRepository) GetInventoryData(log log.T) []model.ApplicationData
- func (repoMock *MockedRepository) LoadTraces(tracer trace.Tracer, packageArn string) error
- func (repoMock *MockedRepository) LockPackage(tracer trace.Tracer, packageName string, action string) error
- func (repoMock *MockedRepository) PersistTraces(tracer trace.Tracer, packageArn string) error
- func (repoMock *MockedRepository) ReadManifest(packageName string, packageVersion string) ([]byte, error)
- func (repoMock *MockedRepository) RefreshPackage(tracer trace.Tracer, packageName string, version string, ...) error
- func (repoMock *MockedRepository) RemovePackage(tracer trace.Tracer, packageName string, version string) error
- func (repoMock *MockedRepository) SetInstallState(tracer trace.Tracer, packageName string, version string, ...) error
- func (repoMock *MockedRepository) UnlockPackage(tracer trace.Tracer, packageName string)
- func (repoMock *MockedRepository) ValidatePackage(tracer trace.Tracer, packageName string, version string) error
- func (repoMock *MockedRepository) WriteManifest(packageName string, packageVersion string, content []byte) 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(tracer trace.Tracer, packageName string, version string, packageServiceName string, downloader localpackages.DownloadDelegate) error
func (*MockedRepository) GetInstallState ¶
func (repoMock *MockedRepository) GetInstallState(tracer trace.Tracer, packageName string) (state localpackages.InstallState, version string)
func (*MockedRepository) GetInstalledVersion ¶
func (repoMock *MockedRepository) GetInstalledVersion(tracer trace.Tracer, packageName string) string
func (*MockedRepository) GetInstaller ¶
func (repoMock *MockedRepository) GetInstaller(tracer trace.Tracer, configuration contracts.Configuration, packageName string, version string) installer.Installer
func (*MockedRepository) GetInventoryData ¶
func (repoMock *MockedRepository) GetInventoryData(log log.T) []model.ApplicationData
func (*MockedRepository) LoadTraces ¶
func (repoMock *MockedRepository) LoadTraces(tracer trace.Tracer, packageArn string) error
func (*MockedRepository) LockPackage ¶
func (*MockedRepository) PersistTraces ¶
func (repoMock *MockedRepository) PersistTraces(tracer trace.Tracer, packageArn string) error
func (*MockedRepository) ReadManifest ¶
func (repoMock *MockedRepository) ReadManifest(packageName string, packageVersion string) ([]byte, error)
func (*MockedRepository) RefreshPackage ¶
func (repoMock *MockedRepository) RefreshPackage(tracer trace.Tracer, packageName string, version string, packageServiceName string, downloader localpackages.DownloadDelegate) error
func (*MockedRepository) RemovePackage ¶
func (*MockedRepository) SetInstallState ¶
func (repoMock *MockedRepository) SetInstallState(tracer trace.Tracer, packageName string, version string, state localpackages.InstallState) error
func (*MockedRepository) UnlockPackage ¶
func (repoMock *MockedRepository) UnlockPackage(tracer trace.Tracer, packageName string)
func (*MockedRepository) ValidatePackage ¶
func (*MockedRepository) WriteManifest ¶
func (repoMock *MockedRepository) WriteManifest(packageName string, packageVersion string, content []byte) error
Click to show internal directories.
Click to hide internal directories.