packaging: github.com/juju/packaging/manager/testing Index | Files

package testing

import "github.com/juju/packaging/manager/testing"

This package contains a mock implementation of the manager.PackageManager interface which always returns positive outcomes and a nil error.

Index

Package Files

manager.go

type MockPackageManager Uses

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 Uses

func (pm *MockPackageManager) AddRepository(string) error

AddRepository is defined on the PackageManager interface.

func (*MockPackageManager) Cleanup Uses

func (pm *MockPackageManager) Cleanup() error

Cleanup is defined on the PackageManager interface.

func (*MockPackageManager) GetProxySettings Uses

func (pm *MockPackageManager) GetProxySettings() (proxy.Settings, error)

GetProxySettings is defined on the PackageManager interface.

func (*MockPackageManager) Install Uses

func (pm *MockPackageManager) Install(...string) error

Install is defined on the PackageManager interface.

func (*MockPackageManager) InstallPrerequisite Uses

func (pm *MockPackageManager) InstallPrerequisite() error

InstallPrerequisite is defined on the PackageManager interface.

func (*MockPackageManager) IsInstalled Uses

func (pm *MockPackageManager) IsInstalled(string) bool

IsInstalled is defined on the PackageManager interface.

func (*MockPackageManager) Purge Uses

func (pm *MockPackageManager) Purge(...string) error

Purge is defined on the PackageManager interface.

func (*MockPackageManager) Remove Uses

func (pm *MockPackageManager) Remove(...string) error

Remove is defined on the PackageManager interface.

func (*MockPackageManager) RemoveRepository Uses

func (pm *MockPackageManager) RemoveRepository(string) error

RemoveRepository is defined on the PackageManager interface.

func (*MockPackageManager) Search Uses

func (pm *MockPackageManager) Search(string) (bool, error)

Search is defined on the PackageManager interface.

func (*MockPackageManager) SetProxy Uses

func (pm *MockPackageManager) SetProxy(proxy.Settings) error

SetProxy is defined on the PackageManager interface.

func (*MockPackageManager) Update Uses

func (pm *MockPackageManager) Update() error

Update is defined on the PackageManager interface.

func (*MockPackageManager) Upgrade Uses

func (pm *MockPackageManager) Upgrade() error

Upgrade is defined on the PackageManager interface.

Package testing imports 1 packages (graph). Updated 2019-10-09. Refresh now. Tools for package owners.