repository_mock

package
v0.0.0-...-84afe80 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 17, 2017 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package repository_mock implements the mock for Repository.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockedRepository

type MockedRepository struct {
	mock.Mock
}

func (*MockedRepository) AddPackage

func (repoMock *MockedRepository) AddPackage(context context.T, packageName string, version string, downloader localpackages.DownloadDelegate) error

func (*MockedRepository) GetAction

func (repoMock *MockedRepository) GetAction(context context.T, packageName string, version string, actionName string) (exists bool, actionDocument []byte, workingDir string, err 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 (repoMock *MockedRepository) RemovePackage(context context.T, packageName string, version string) error

func (*MockedRepository) SetInstallState

func (repoMock *MockedRepository) SetInstallState(context context.T, packageName string, version string, state localpackages.InstallState) error

func (*MockedRepository) ValidatePackage

func (repoMock *MockedRepository) ValidatePackage(context context.T, packageName string, version string) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL