repository_mock

package
v0.0.0-...-a9ed6da Latest Latest
Warning

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

Go to latest
Published: May 7, 2018 License: Apache-2.0 Imports: 7 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(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 (repoMock *MockedRepository) LockPackage(tracer trace.Tracer, packageName string, action string) error

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 (repoMock *MockedRepository) RemovePackage(tracer trace.Tracer, packageName string, version string) error

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 (repoMock *MockedRepository) ValidatePackage(tracer trace.Tracer, packageName string, version string) error

func (*MockedRepository) WriteManifest

func (repoMock *MockedRepository) WriteManifest(packageName string, packageVersion string, content []byte) error

Jump to

Keyboard shortcuts

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