Documentation ¶
Overview ¶
This package contains a mock implementation of the manager.PackageManager interface which always returns positive outcomes and a nil error.
Index ¶
- type MockPackageManager
- func (pm *MockPackageManager) AddRepository(string) error
- func (pm *MockPackageManager) Cleanup() error
- func (pm *MockPackageManager) GetProxySettings() (proxy.Settings, error)
- func (pm *MockPackageManager) Install(...string) error
- func (pm *MockPackageManager) InstallPrerequisite() error
- func (pm *MockPackageManager) IsInstalled(string) bool
- func (pm *MockPackageManager) Purge(...string) error
- func (pm *MockPackageManager) Remove(...string) error
- func (pm *MockPackageManager) RemoveRepository(string) error
- func (pm *MockPackageManager) Search(string) (bool, error)
- func (pm *MockPackageManager) SetProxy(proxy.Settings) error
- func (pm *MockPackageManager) Update() error
- func (pm *MockPackageManager) Upgrade() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockPackageManager ¶
type MockPackageManager struct { }
MockPackageManager is a struct which always returns a positive outcome, constant ProxySettings and a nil error. It satisfies the PackageManager interface.
func (*MockPackageManager) AddRepository ¶
func (pm *MockPackageManager) AddRepository(string) error
AddRepository is defined on the PackageManager interface.
func (*MockPackageManager) Cleanup ¶
func (pm *MockPackageManager) Cleanup() error
Cleanup is defined on the PackageManager interface.
func (*MockPackageManager) GetProxySettings ¶
func (pm *MockPackageManager) GetProxySettings() (proxy.Settings, error)
GetProxySettings is defined on the PackageManager interface.
func (*MockPackageManager) Install ¶
func (pm *MockPackageManager) Install(...string) error
Install is defined on the PackageManager interface.
func (*MockPackageManager) InstallPrerequisite ¶
func (pm *MockPackageManager) InstallPrerequisite() error
InstallPrerequisite is defined on the PackageManager interface.
func (*MockPackageManager) IsInstalled ¶
func (pm *MockPackageManager) IsInstalled(string) bool
IsInstalled is defined on the PackageManager interface.
func (*MockPackageManager) Purge ¶
func (pm *MockPackageManager) Purge(...string) error
Purge is defined on the PackageManager interface.
func (*MockPackageManager) Remove ¶
func (pm *MockPackageManager) Remove(...string) error
Remove is defined on the PackageManager interface.
func (*MockPackageManager) RemoveRepository ¶
func (pm *MockPackageManager) RemoveRepository(string) error
RemoveRepository is defined on the PackageManager interface.
func (*MockPackageManager) Search ¶
func (pm *MockPackageManager) Search(string) (bool, error)
Search is defined on the PackageManager interface.
func (*MockPackageManager) SetProxy ¶
func (pm *MockPackageManager) SetProxy(proxy.Settings) error
SetProxy is defined on the PackageManager interface.
func (*MockPackageManager) Update ¶
func (pm *MockPackageManager) Update() error
Update is defined on the PackageManager interface.
func (*MockPackageManager) Upgrade ¶
func (pm *MockPackageManager) Upgrade() error
Upgrade is defined on the PackageManager interface.