Documentation ¶
Index ¶
- type LockFile
- type LockFile_Expecter
- type LockFile_Read_Call
- type LockFile_Write_Call
- type ModuleConfig
- type ModuleConfig_Expecter
- type ModuleConfig_ReadFromRepo_Call
- func (_c *ModuleConfig_ReadFromRepo_Call) Return(_a0 models.ModuleConfig, _a1 error) *ModuleConfig_ReadFromRepo_Call
- func (_c *ModuleConfig_ReadFromRepo_Call) Run(run func(ctx context.Context, repo repository.Repo, revision models.Revision)) *ModuleConfig_ReadFromRepo_Call
- func (_c *ModuleConfig_ReadFromRepo_Call) RunAndReturn(...) *ModuleConfig_ReadFromRepo_Call
- type Storage
- func (_m *Storage) CreateCacheDownloadDir(_a0 models.CacheDownloadPaths) error
- func (_m *Storage) CreateCacheRepositoryDir(name string) (string, error)
- func (_m *Storage) EXPECT() *Storage_Expecter
- func (_m *Storage) GetCacheDownloadPaths(module models.Module, revision models.Revision) models.CacheDownloadPaths
- func (_m *Storage) GetInstalledModuleHash(moduleName string, revisionVersion string) (models.ModuleHash, error)
- func (_m *Storage) Install(cacheDownloadPaths models.CacheDownloadPaths, module models.Module, ...) (models.ModuleHash, error)
- func (_m *Storage) IsModuleInstalled(module models.Module) (bool, error)
- type Storage_CreateCacheDownloadDir_Call
- func (_c *Storage_CreateCacheDownloadDir_Call) Return(_a0 error) *Storage_CreateCacheDownloadDir_Call
- func (_c *Storage_CreateCacheDownloadDir_Call) Run(run func(_a0 models.CacheDownloadPaths)) *Storage_CreateCacheDownloadDir_Call
- func (_c *Storage_CreateCacheDownloadDir_Call) RunAndReturn(run func(models.CacheDownloadPaths) error) *Storage_CreateCacheDownloadDir_Call
- type Storage_CreateCacheRepositoryDir_Call
- func (_c *Storage_CreateCacheRepositoryDir_Call) Return(_a0 string, _a1 error) *Storage_CreateCacheRepositoryDir_Call
- func (_c *Storage_CreateCacheRepositoryDir_Call) Run(run func(name string)) *Storage_CreateCacheRepositoryDir_Call
- func (_c *Storage_CreateCacheRepositoryDir_Call) RunAndReturn(run func(string) (string, error)) *Storage_CreateCacheRepositoryDir_Call
- type Storage_Expecter
- func (_e *Storage_Expecter) CreateCacheDownloadDir(_a0 interface{}) *Storage_CreateCacheDownloadDir_Call
- func (_e *Storage_Expecter) CreateCacheRepositoryDir(name interface{}) *Storage_CreateCacheRepositoryDir_Call
- func (_e *Storage_Expecter) GetCacheDownloadPaths(module interface{}, revision interface{}) *Storage_GetCacheDownloadPaths_Call
- func (_e *Storage_Expecter) GetInstalledModuleHash(moduleName interface{}, revisionVersion interface{}) *Storage_GetInstalledModuleHash_Call
- func (_e *Storage_Expecter) Install(cacheDownloadPaths interface{}, module interface{}, revision interface{}, ...) *Storage_Install_Call
- func (_e *Storage_Expecter) IsModuleInstalled(module interface{}) *Storage_IsModuleInstalled_Call
- type Storage_GetCacheDownloadPaths_Call
- func (_c *Storage_GetCacheDownloadPaths_Call) Return(_a0 models.CacheDownloadPaths) *Storage_GetCacheDownloadPaths_Call
- func (_c *Storage_GetCacheDownloadPaths_Call) Run(run func(module models.Module, revision models.Revision)) *Storage_GetCacheDownloadPaths_Call
- func (_c *Storage_GetCacheDownloadPaths_Call) RunAndReturn(run func(models.Module, models.Revision) models.CacheDownloadPaths) *Storage_GetCacheDownloadPaths_Call
- type Storage_GetInstalledModuleHash_Call
- func (_c *Storage_GetInstalledModuleHash_Call) Return(_a0 models.ModuleHash, _a1 error) *Storage_GetInstalledModuleHash_Call
- func (_c *Storage_GetInstalledModuleHash_Call) Run(run func(moduleName string, revisionVersion string)) *Storage_GetInstalledModuleHash_Call
- func (_c *Storage_GetInstalledModuleHash_Call) RunAndReturn(run func(string, string) (models.ModuleHash, error)) *Storage_GetInstalledModuleHash_Call
- type Storage_Install_Call
- type Storage_IsModuleInstalled_Call
- func (_c *Storage_IsModuleInstalled_Call) Return(_a0 bool, _a1 error) *Storage_IsModuleInstalled_Call
- func (_c *Storage_IsModuleInstalled_Call) Run(run func(module models.Module)) *Storage_IsModuleInstalled_Call
- func (_c *Storage_IsModuleInstalled_Call) RunAndReturn(run func(models.Module) (bool, error)) *Storage_IsModuleInstalled_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LockFile ¶
LockFile is an autogenerated mock type for the LockFile type
func NewLockFile ¶
NewLockFile creates a new instance of LockFile. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*LockFile) EXPECT ¶
func (_m *LockFile) EXPECT() *LockFile_Expecter
type LockFile_Expecter ¶
type LockFile_Expecter struct {
// contains filtered or unexported fields
}
func (*LockFile_Expecter) Read ¶
func (_e *LockFile_Expecter) Read(moduleName interface{}) *LockFile_Read_Call
Read is a helper method to define mock.On call
- moduleName string
func (*LockFile_Expecter) Write ¶
func (_e *LockFile_Expecter) Write(moduleName interface{}, revisionVersion interface{}, installedPackageHash interface{}) *LockFile_Write_Call
Write is a helper method to define mock.On call
- moduleName string
- revisionVersion string
- installedPackageHash models.ModuleHash
type LockFile_Read_Call ¶
LockFile_Read_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Read'
func (*LockFile_Read_Call) Return ¶
func (_c *LockFile_Read_Call) Return(_a0 models.LockFileInfo, _a1 error) *LockFile_Read_Call
func (*LockFile_Read_Call) Run ¶
func (_c *LockFile_Read_Call) Run(run func(moduleName string)) *LockFile_Read_Call
func (*LockFile_Read_Call) RunAndReturn ¶
func (_c *LockFile_Read_Call) RunAndReturn(run func(string) (models.LockFileInfo, error)) *LockFile_Read_Call
type LockFile_Write_Call ¶
LockFile_Write_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Write'
func (*LockFile_Write_Call) Return ¶
func (_c *LockFile_Write_Call) Return(_a0 error) *LockFile_Write_Call
func (*LockFile_Write_Call) Run ¶
func (_c *LockFile_Write_Call) Run(run func(moduleName string, revisionVersion string, installedPackageHash models.ModuleHash)) *LockFile_Write_Call
func (*LockFile_Write_Call) RunAndReturn ¶
func (_c *LockFile_Write_Call) RunAndReturn(run func(string, string, models.ModuleHash) error) *LockFile_Write_Call
type ModuleConfig ¶
ModuleConfig is an autogenerated mock type for the ModuleConfig type
func NewModuleConfig ¶
func NewModuleConfig(t interface { mock.TestingT Cleanup(func()) }) *ModuleConfig
NewModuleConfig creates a new instance of ModuleConfig. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*ModuleConfig) EXPECT ¶
func (_m *ModuleConfig) EXPECT() *ModuleConfig_Expecter
func (*ModuleConfig) ReadFromRepo ¶
func (_m *ModuleConfig) ReadFromRepo(ctx context.Context, repo repository.Repo, revision models.Revision) (models.ModuleConfig, error)
ReadFromRepo provides a mock function with given fields: ctx, repo, revision
type ModuleConfig_Expecter ¶
type ModuleConfig_Expecter struct {
// contains filtered or unexported fields
}
func (*ModuleConfig_Expecter) ReadFromRepo ¶
func (_e *ModuleConfig_Expecter) ReadFromRepo(ctx interface{}, repo interface{}, revision interface{}) *ModuleConfig_ReadFromRepo_Call
ReadFromRepo is a helper method to define mock.On call
- ctx context.Context
- repo repository.Repo
- revision models.Revision
type ModuleConfig_ReadFromRepo_Call ¶
ModuleConfig_ReadFromRepo_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ReadFromRepo'
func (*ModuleConfig_ReadFromRepo_Call) Return ¶
func (_c *ModuleConfig_ReadFromRepo_Call) Return(_a0 models.ModuleConfig, _a1 error) *ModuleConfig_ReadFromRepo_Call
func (*ModuleConfig_ReadFromRepo_Call) Run ¶
func (_c *ModuleConfig_ReadFromRepo_Call) Run(run func(ctx context.Context, repo repository.Repo, revision models.Revision)) *ModuleConfig_ReadFromRepo_Call
func (*ModuleConfig_ReadFromRepo_Call) RunAndReturn ¶
func (_c *ModuleConfig_ReadFromRepo_Call) RunAndReturn(run func(context.Context, repository.Repo, models.Revision) (models.ModuleConfig, error)) *ModuleConfig_ReadFromRepo_Call
type Storage ¶
Storage is an autogenerated mock type for the Storage type
func NewStorage ¶
NewStorage creates a new instance of Storage. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Storage) CreateCacheDownloadDir ¶
func (_m *Storage) CreateCacheDownloadDir(_a0 models.CacheDownloadPaths) error
CreateCacheDownloadDir provides a mock function with given fields: _a0
func (*Storage) CreateCacheRepositoryDir ¶
CreateCacheRepositoryDir provides a mock function with given fields: name
func (*Storage) EXPECT ¶
func (_m *Storage) EXPECT() *Storage_Expecter
func (*Storage) GetCacheDownloadPaths ¶
func (_m *Storage) GetCacheDownloadPaths(module models.Module, revision models.Revision) models.CacheDownloadPaths
GetCacheDownloadPaths provides a mock function with given fields: module, revision
func (*Storage) GetInstalledModuleHash ¶
func (_m *Storage) GetInstalledModuleHash(moduleName string, revisionVersion string) (models.ModuleHash, error)
GetInstalledModuleHash provides a mock function with given fields: moduleName, revisionVersion
func (*Storage) Install ¶
func (_m *Storage) Install(cacheDownloadPaths models.CacheDownloadPaths, module models.Module, revision models.Revision, moduleConfig models.ModuleConfig) (models.ModuleHash, error)
Install provides a mock function with given fields: cacheDownloadPaths, module, revision, moduleConfig
type Storage_CreateCacheDownloadDir_Call ¶
Storage_CreateCacheDownloadDir_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateCacheDownloadDir'
func (*Storage_CreateCacheDownloadDir_Call) Return ¶
func (_c *Storage_CreateCacheDownloadDir_Call) Return(_a0 error) *Storage_CreateCacheDownloadDir_Call
func (*Storage_CreateCacheDownloadDir_Call) Run ¶
func (_c *Storage_CreateCacheDownloadDir_Call) Run(run func(_a0 models.CacheDownloadPaths)) *Storage_CreateCacheDownloadDir_Call
func (*Storage_CreateCacheDownloadDir_Call) RunAndReturn ¶
func (_c *Storage_CreateCacheDownloadDir_Call) RunAndReturn(run func(models.CacheDownloadPaths) error) *Storage_CreateCacheDownloadDir_Call
type Storage_CreateCacheRepositoryDir_Call ¶
Storage_CreateCacheRepositoryDir_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateCacheRepositoryDir'
func (*Storage_CreateCacheRepositoryDir_Call) Return ¶
func (_c *Storage_CreateCacheRepositoryDir_Call) Return(_a0 string, _a1 error) *Storage_CreateCacheRepositoryDir_Call
func (*Storage_CreateCacheRepositoryDir_Call) Run ¶
func (_c *Storage_CreateCacheRepositoryDir_Call) Run(run func(name string)) *Storage_CreateCacheRepositoryDir_Call
func (*Storage_CreateCacheRepositoryDir_Call) RunAndReturn ¶
func (_c *Storage_CreateCacheRepositoryDir_Call) RunAndReturn(run func(string) (string, error)) *Storage_CreateCacheRepositoryDir_Call
type Storage_Expecter ¶
type Storage_Expecter struct {
// contains filtered or unexported fields
}
func (*Storage_Expecter) CreateCacheDownloadDir ¶
func (_e *Storage_Expecter) CreateCacheDownloadDir(_a0 interface{}) *Storage_CreateCacheDownloadDir_Call
CreateCacheDownloadDir is a helper method to define mock.On call
- _a0 models.CacheDownloadPaths
func (*Storage_Expecter) CreateCacheRepositoryDir ¶
func (_e *Storage_Expecter) CreateCacheRepositoryDir(name interface{}) *Storage_CreateCacheRepositoryDir_Call
CreateCacheRepositoryDir is a helper method to define mock.On call
- name string
func (*Storage_Expecter) GetCacheDownloadPaths ¶
func (_e *Storage_Expecter) GetCacheDownloadPaths(module interface{}, revision interface{}) *Storage_GetCacheDownloadPaths_Call
GetCacheDownloadPaths is a helper method to define mock.On call
- module models.Module
- revision models.Revision
func (*Storage_Expecter) GetInstalledModuleHash ¶
func (_e *Storage_Expecter) GetInstalledModuleHash(moduleName interface{}, revisionVersion interface{}) *Storage_GetInstalledModuleHash_Call
GetInstalledModuleHash is a helper method to define mock.On call
- moduleName string
- revisionVersion string
func (*Storage_Expecter) Install ¶
func (_e *Storage_Expecter) Install(cacheDownloadPaths interface{}, module interface{}, revision interface{}, moduleConfig interface{}) *Storage_Install_Call
Install is a helper method to define mock.On call
- cacheDownloadPaths models.CacheDownloadPaths
- module models.Module
- revision models.Revision
- moduleConfig models.ModuleConfig
func (*Storage_Expecter) IsModuleInstalled ¶
func (_e *Storage_Expecter) IsModuleInstalled(module interface{}) *Storage_IsModuleInstalled_Call
IsModuleInstalled is a helper method to define mock.On call
- module models.Module
type Storage_GetCacheDownloadPaths_Call ¶
Storage_GetCacheDownloadPaths_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCacheDownloadPaths'
func (*Storage_GetCacheDownloadPaths_Call) Return ¶
func (_c *Storage_GetCacheDownloadPaths_Call) Return(_a0 models.CacheDownloadPaths) *Storage_GetCacheDownloadPaths_Call
func (*Storage_GetCacheDownloadPaths_Call) Run ¶
func (_c *Storage_GetCacheDownloadPaths_Call) Run(run func(module models.Module, revision models.Revision)) *Storage_GetCacheDownloadPaths_Call
func (*Storage_GetCacheDownloadPaths_Call) RunAndReturn ¶
func (_c *Storage_GetCacheDownloadPaths_Call) RunAndReturn(run func(models.Module, models.Revision) models.CacheDownloadPaths) *Storage_GetCacheDownloadPaths_Call
type Storage_GetInstalledModuleHash_Call ¶
Storage_GetInstalledModuleHash_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetInstalledModuleHash'
func (*Storage_GetInstalledModuleHash_Call) Return ¶
func (_c *Storage_GetInstalledModuleHash_Call) Return(_a0 models.ModuleHash, _a1 error) *Storage_GetInstalledModuleHash_Call
func (*Storage_GetInstalledModuleHash_Call) Run ¶
func (_c *Storage_GetInstalledModuleHash_Call) Run(run func(moduleName string, revisionVersion string)) *Storage_GetInstalledModuleHash_Call
func (*Storage_GetInstalledModuleHash_Call) RunAndReturn ¶
func (_c *Storage_GetInstalledModuleHash_Call) RunAndReturn(run func(string, string) (models.ModuleHash, error)) *Storage_GetInstalledModuleHash_Call
type Storage_Install_Call ¶
Storage_Install_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Install'
func (*Storage_Install_Call) Return ¶
func (_c *Storage_Install_Call) Return(_a0 models.ModuleHash, _a1 error) *Storage_Install_Call
func (*Storage_Install_Call) Run ¶
func (_c *Storage_Install_Call) Run(run func(cacheDownloadPaths models.CacheDownloadPaths, module models.Module, revision models.Revision, moduleConfig models.ModuleConfig)) *Storage_Install_Call
func (*Storage_Install_Call) RunAndReturn ¶
func (_c *Storage_Install_Call) RunAndReturn(run func(models.CacheDownloadPaths, models.Module, models.Revision, models.ModuleConfig) (models.ModuleHash, error)) *Storage_Install_Call
type Storage_IsModuleInstalled_Call ¶
Storage_IsModuleInstalled_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsModuleInstalled'
func (*Storage_IsModuleInstalled_Call) Return ¶
func (_c *Storage_IsModuleInstalled_Call) Return(_a0 bool, _a1 error) *Storage_IsModuleInstalled_Call
func (*Storage_IsModuleInstalled_Call) Run ¶
func (_c *Storage_IsModuleInstalled_Call) Run(run func(module models.Module)) *Storage_IsModuleInstalled_Call
func (*Storage_IsModuleInstalled_Call) RunAndReturn ¶
func (_c *Storage_IsModuleInstalled_Call) RunAndReturn(run func(models.Module) (bool, error)) *Storage_IsModuleInstalled_Call