biz

package
v0.0.0-...-d8a4e70 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2024 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppRepo

type AppRepo struct {
	mock.Mock
}

AppRepo is an autogenerated mock type for the AppRepo type

func NewAppRepo

func NewAppRepo(t interface {
	mock.TestingT
	Cleanup(func())
}) *AppRepo

NewAppRepo creates a new instance of AppRepo. 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 (*AppRepo) All

func (_m *AppRepo) All() api.Apps

All provides a mock function with no fields

func (*AppRepo) EXPECT

func (_m *AppRepo) EXPECT() *AppRepo_Expecter

func (*AppRepo) Get

func (_m *AppRepo) Get(slug string) (*api.App, error)

Get provides a mock function with given fields: slug

func (*AppRepo) GetHomeShow

func (_m *AppRepo) GetHomeShow() ([]map[string]string, error)

GetHomeShow provides a mock function with no fields

func (*AppRepo) GetInstalled

func (_m *AppRepo) GetInstalled(slug string) (*biz.App, error)

GetInstalled provides a mock function with given fields: slug

func (*AppRepo) GetInstalledAll

func (_m *AppRepo) GetInstalledAll(query string, cond ...string) ([]*biz.App, error)

GetInstalledAll provides a mock function with given fields: query, cond

func (*AppRepo) Install

func (_m *AppRepo) Install(channel string, slug string) error

Install provides a mock function with given fields: channel, slug

func (*AppRepo) Installed

func (_m *AppRepo) Installed() ([]*biz.App, error)

Installed provides a mock function with no fields

func (*AppRepo) IsInstalled

func (_m *AppRepo) IsInstalled(query string, cond ...string) (bool, error)

IsInstalled provides a mock function with given fields: query, cond

func (*AppRepo) UnInstall

func (_m *AppRepo) UnInstall(slug string) error

UnInstall provides a mock function with given fields: slug

func (*AppRepo) Update

func (_m *AppRepo) Update(slug string) error

Update provides a mock function with given fields: slug

func (*AppRepo) UpdateExist

func (_m *AppRepo) UpdateExist(slug string) bool

UpdateExist provides a mock function with given fields: slug

func (*AppRepo) UpdateShow

func (_m *AppRepo) UpdateShow(slug string, show bool) error

UpdateShow provides a mock function with given fields: slug, show

type AppRepo_All_Call

type AppRepo_All_Call struct {
	*mock.Call
}

AppRepo_All_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'All'

func (*AppRepo_All_Call) Return

func (_c *AppRepo_All_Call) Return(_a0 api.Apps) *AppRepo_All_Call

func (*AppRepo_All_Call) Run

func (_c *AppRepo_All_Call) Run(run func()) *AppRepo_All_Call

func (*AppRepo_All_Call) RunAndReturn

func (_c *AppRepo_All_Call) RunAndReturn(run func() api.Apps) *AppRepo_All_Call

type AppRepo_Expecter

type AppRepo_Expecter struct {
	// contains filtered or unexported fields
}

func (*AppRepo_Expecter) All

All is a helper method to define mock.On call

func (*AppRepo_Expecter) Get

func (_e *AppRepo_Expecter) Get(slug interface{}) *AppRepo_Get_Call

Get is a helper method to define mock.On call

  • slug string

func (*AppRepo_Expecter) GetHomeShow

func (_e *AppRepo_Expecter) GetHomeShow() *AppRepo_GetHomeShow_Call

GetHomeShow is a helper method to define mock.On call

func (*AppRepo_Expecter) GetInstalled

func (_e *AppRepo_Expecter) GetInstalled(slug interface{}) *AppRepo_GetInstalled_Call

GetInstalled is a helper method to define mock.On call

  • slug string

func (*AppRepo_Expecter) GetInstalledAll

func (_e *AppRepo_Expecter) GetInstalledAll(query interface{}, cond ...interface{}) *AppRepo_GetInstalledAll_Call

GetInstalledAll is a helper method to define mock.On call

  • query string
  • cond ...string

func (*AppRepo_Expecter) Install

func (_e *AppRepo_Expecter) Install(channel interface{}, slug interface{}) *AppRepo_Install_Call

Install is a helper method to define mock.On call

  • channel string
  • slug string

func (*AppRepo_Expecter) Installed

func (_e *AppRepo_Expecter) Installed() *AppRepo_Installed_Call

Installed is a helper method to define mock.On call

func (*AppRepo_Expecter) IsInstalled

func (_e *AppRepo_Expecter) IsInstalled(query interface{}, cond ...interface{}) *AppRepo_IsInstalled_Call

IsInstalled is a helper method to define mock.On call

  • query string
  • cond ...string

func (*AppRepo_Expecter) UnInstall

func (_e *AppRepo_Expecter) UnInstall(slug interface{}) *AppRepo_UnInstall_Call

UnInstall is a helper method to define mock.On call

  • slug string

func (*AppRepo_Expecter) Update

func (_e *AppRepo_Expecter) Update(slug interface{}) *AppRepo_Update_Call

Update is a helper method to define mock.On call

  • slug string

func (*AppRepo_Expecter) UpdateExist

func (_e *AppRepo_Expecter) UpdateExist(slug interface{}) *AppRepo_UpdateExist_Call

UpdateExist is a helper method to define mock.On call

  • slug string

func (*AppRepo_Expecter) UpdateShow

func (_e *AppRepo_Expecter) UpdateShow(slug interface{}, show interface{}) *AppRepo_UpdateShow_Call

UpdateShow is a helper method to define mock.On call

  • slug string
  • show bool

type AppRepo_GetHomeShow_Call

type AppRepo_GetHomeShow_Call struct {
	*mock.Call
}

AppRepo_GetHomeShow_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetHomeShow'

func (*AppRepo_GetHomeShow_Call) Return

func (*AppRepo_GetHomeShow_Call) Run

func (*AppRepo_GetHomeShow_Call) RunAndReturn

func (_c *AppRepo_GetHomeShow_Call) RunAndReturn(run func() ([]map[string]string, error)) *AppRepo_GetHomeShow_Call

type AppRepo_GetInstalledAll_Call

type AppRepo_GetInstalledAll_Call struct {
	*mock.Call
}

AppRepo_GetInstalledAll_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetInstalledAll'

func (*AppRepo_GetInstalledAll_Call) Return

func (*AppRepo_GetInstalledAll_Call) Run

func (_c *AppRepo_GetInstalledAll_Call) Run(run func(query string, cond ...string)) *AppRepo_GetInstalledAll_Call

func (*AppRepo_GetInstalledAll_Call) RunAndReturn

func (_c *AppRepo_GetInstalledAll_Call) RunAndReturn(run func(string, ...string) ([]*biz.App, error)) *AppRepo_GetInstalledAll_Call

type AppRepo_GetInstalled_Call

type AppRepo_GetInstalled_Call struct {
	*mock.Call
}

AppRepo_GetInstalled_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetInstalled'

func (*AppRepo_GetInstalled_Call) Return

func (*AppRepo_GetInstalled_Call) Run

func (*AppRepo_GetInstalled_Call) RunAndReturn

func (_c *AppRepo_GetInstalled_Call) RunAndReturn(run func(string) (*biz.App, error)) *AppRepo_GetInstalled_Call

type AppRepo_Get_Call

type AppRepo_Get_Call struct {
	*mock.Call
}

AppRepo_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'

func (*AppRepo_Get_Call) Return

func (_c *AppRepo_Get_Call) Return(_a0 *api.App, _a1 error) *AppRepo_Get_Call

func (*AppRepo_Get_Call) Run

func (_c *AppRepo_Get_Call) Run(run func(slug string)) *AppRepo_Get_Call

func (*AppRepo_Get_Call) RunAndReturn

func (_c *AppRepo_Get_Call) RunAndReturn(run func(string) (*api.App, error)) *AppRepo_Get_Call

type AppRepo_Install_Call

type AppRepo_Install_Call struct {
	*mock.Call
}

AppRepo_Install_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Install'

func (*AppRepo_Install_Call) Return

func (*AppRepo_Install_Call) Run

func (_c *AppRepo_Install_Call) Run(run func(channel string, slug string)) *AppRepo_Install_Call

func (*AppRepo_Install_Call) RunAndReturn

func (_c *AppRepo_Install_Call) RunAndReturn(run func(string, string) error) *AppRepo_Install_Call

type AppRepo_Installed_Call

type AppRepo_Installed_Call struct {
	*mock.Call
}

AppRepo_Installed_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Installed'

func (*AppRepo_Installed_Call) Return

func (_c *AppRepo_Installed_Call) Return(_a0 []*biz.App, _a1 error) *AppRepo_Installed_Call

func (*AppRepo_Installed_Call) Run

func (_c *AppRepo_Installed_Call) Run(run func()) *AppRepo_Installed_Call

func (*AppRepo_Installed_Call) RunAndReturn

func (_c *AppRepo_Installed_Call) RunAndReturn(run func() ([]*biz.App, error)) *AppRepo_Installed_Call

type AppRepo_IsInstalled_Call

type AppRepo_IsInstalled_Call struct {
	*mock.Call
}

AppRepo_IsInstalled_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsInstalled'

func (*AppRepo_IsInstalled_Call) Return

func (*AppRepo_IsInstalled_Call) Run

func (_c *AppRepo_IsInstalled_Call) Run(run func(query string, cond ...string)) *AppRepo_IsInstalled_Call

func (*AppRepo_IsInstalled_Call) RunAndReturn

func (_c *AppRepo_IsInstalled_Call) RunAndReturn(run func(string, ...string) (bool, error)) *AppRepo_IsInstalled_Call

type AppRepo_UnInstall_Call

type AppRepo_UnInstall_Call struct {
	*mock.Call
}

AppRepo_UnInstall_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UnInstall'

func (*AppRepo_UnInstall_Call) Return

func (*AppRepo_UnInstall_Call) Run

func (_c *AppRepo_UnInstall_Call) Run(run func(slug string)) *AppRepo_UnInstall_Call

func (*AppRepo_UnInstall_Call) RunAndReturn

func (_c *AppRepo_UnInstall_Call) RunAndReturn(run func(string) error) *AppRepo_UnInstall_Call

type AppRepo_UpdateExist_Call

type AppRepo_UpdateExist_Call struct {
	*mock.Call
}

AppRepo_UpdateExist_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateExist'

func (*AppRepo_UpdateExist_Call) Return

func (*AppRepo_UpdateExist_Call) Run

func (_c *AppRepo_UpdateExist_Call) Run(run func(slug string)) *AppRepo_UpdateExist_Call

func (*AppRepo_UpdateExist_Call) RunAndReturn

func (_c *AppRepo_UpdateExist_Call) RunAndReturn(run func(string) bool) *AppRepo_UpdateExist_Call

type AppRepo_UpdateShow_Call

type AppRepo_UpdateShow_Call struct {
	*mock.Call
}

AppRepo_UpdateShow_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateShow'

func (*AppRepo_UpdateShow_Call) Return

func (*AppRepo_UpdateShow_Call) Run

func (_c *AppRepo_UpdateShow_Call) Run(run func(slug string, show bool)) *AppRepo_UpdateShow_Call

func (*AppRepo_UpdateShow_Call) RunAndReturn

func (_c *AppRepo_UpdateShow_Call) RunAndReturn(run func(string, bool) error) *AppRepo_UpdateShow_Call

type AppRepo_Update_Call

type AppRepo_Update_Call struct {
	*mock.Call
}

AppRepo_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'

func (*AppRepo_Update_Call) Return

func (*AppRepo_Update_Call) Run

func (_c *AppRepo_Update_Call) Run(run func(slug string)) *AppRepo_Update_Call

func (*AppRepo_Update_Call) RunAndReturn

func (_c *AppRepo_Update_Call) RunAndReturn(run func(string) error) *AppRepo_Update_Call

type BackupRepo

type BackupRepo struct {
	mock.Mock
}

BackupRepo is an autogenerated mock type for the BackupRepo type

func NewBackupRepo

func NewBackupRepo(t interface {
	mock.TestingT
	Cleanup(func())
}) *BackupRepo

NewBackupRepo creates a new instance of BackupRepo. 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 (*BackupRepo) ClearExpired

func (_m *BackupRepo) ClearExpired(path string, prefix string, save int) error

ClearExpired provides a mock function with given fields: path, prefix, save

func (*BackupRepo) Create

func (_m *BackupRepo) Create(typ biz.BackupType, target string, path ...string) error

Create provides a mock function with given fields: typ, target, path

func (*BackupRepo) CutoffLog

func (_m *BackupRepo) CutoffLog(path string, target string) error

CutoffLog provides a mock function with given fields: path, target

func (*BackupRepo) Delete

func (_m *BackupRepo) Delete(typ biz.BackupType, name string) error

Delete provides a mock function with given fields: typ, name

func (*BackupRepo) EXPECT

func (_m *BackupRepo) EXPECT() *BackupRepo_Expecter

func (*BackupRepo) FixPanel

func (_m *BackupRepo) FixPanel() error

FixPanel provides a mock function with no fields

func (*BackupRepo) GetPath

func (_m *BackupRepo) GetPath(typ biz.BackupType) (string, error)

GetPath provides a mock function with given fields: typ

func (*BackupRepo) List

func (_m *BackupRepo) List(typ biz.BackupType) ([]*types.BackupFile, error)

List provides a mock function with given fields: typ

func (*BackupRepo) Restore

func (_m *BackupRepo) Restore(typ biz.BackupType, backup string, target string) error

Restore provides a mock function with given fields: typ, backup, target

func (*BackupRepo) UpdatePanel

func (_m *BackupRepo) UpdatePanel(version string, url string, checksum string) error

UpdatePanel provides a mock function with given fields: version, url, checksum

type BackupRepo_ClearExpired_Call

type BackupRepo_ClearExpired_Call struct {
	*mock.Call
}

BackupRepo_ClearExpired_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ClearExpired'

func (*BackupRepo_ClearExpired_Call) Return

func (*BackupRepo_ClearExpired_Call) Run

func (_c *BackupRepo_ClearExpired_Call) Run(run func(path string, prefix string, save int)) *BackupRepo_ClearExpired_Call

func (*BackupRepo_ClearExpired_Call) RunAndReturn

type BackupRepo_Create_Call

type BackupRepo_Create_Call struct {
	*mock.Call
}

BackupRepo_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'

func (*BackupRepo_Create_Call) Return

func (*BackupRepo_Create_Call) Run

func (_c *BackupRepo_Create_Call) Run(run func(typ biz.BackupType, target string, path ...string)) *BackupRepo_Create_Call

func (*BackupRepo_Create_Call) RunAndReturn

type BackupRepo_CutoffLog_Call

type BackupRepo_CutoffLog_Call struct {
	*mock.Call
}

BackupRepo_CutoffLog_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CutoffLog'

func (*BackupRepo_CutoffLog_Call) Return

func (*BackupRepo_CutoffLog_Call) Run

func (_c *BackupRepo_CutoffLog_Call) Run(run func(path string, target string)) *BackupRepo_CutoffLog_Call

func (*BackupRepo_CutoffLog_Call) RunAndReturn

type BackupRepo_Delete_Call

type BackupRepo_Delete_Call struct {
	*mock.Call
}

BackupRepo_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'

func (*BackupRepo_Delete_Call) Return

func (*BackupRepo_Delete_Call) Run

func (_c *BackupRepo_Delete_Call) Run(run func(typ biz.BackupType, name string)) *BackupRepo_Delete_Call

func (*BackupRepo_Delete_Call) RunAndReturn

type BackupRepo_Expecter

type BackupRepo_Expecter struct {
	// contains filtered or unexported fields
}

func (*BackupRepo_Expecter) ClearExpired

func (_e *BackupRepo_Expecter) ClearExpired(path interface{}, prefix interface{}, save interface{}) *BackupRepo_ClearExpired_Call

ClearExpired is a helper method to define mock.On call

  • path string
  • prefix string
  • save int

func (*BackupRepo_Expecter) Create

func (_e *BackupRepo_Expecter) Create(typ interface{}, target interface{}, path ...interface{}) *BackupRepo_Create_Call

Create is a helper method to define mock.On call

  • typ biz.BackupType
  • target string
  • path ...string

func (*BackupRepo_Expecter) CutoffLog

func (_e *BackupRepo_Expecter) CutoffLog(path interface{}, target interface{}) *BackupRepo_CutoffLog_Call

CutoffLog is a helper method to define mock.On call

  • path string
  • target string

func (*BackupRepo_Expecter) Delete

func (_e *BackupRepo_Expecter) Delete(typ interface{}, name interface{}) *BackupRepo_Delete_Call

Delete is a helper method to define mock.On call

  • typ biz.BackupType
  • name string

func (*BackupRepo_Expecter) FixPanel

FixPanel is a helper method to define mock.On call

func (*BackupRepo_Expecter) GetPath

func (_e *BackupRepo_Expecter) GetPath(typ interface{}) *BackupRepo_GetPath_Call

GetPath is a helper method to define mock.On call

  • typ biz.BackupType

func (*BackupRepo_Expecter) List

func (_e *BackupRepo_Expecter) List(typ interface{}) *BackupRepo_List_Call

List is a helper method to define mock.On call

  • typ biz.BackupType

func (*BackupRepo_Expecter) Restore

func (_e *BackupRepo_Expecter) Restore(typ interface{}, backup interface{}, target interface{}) *BackupRepo_Restore_Call

Restore is a helper method to define mock.On call

  • typ biz.BackupType
  • backup string
  • target string

func (*BackupRepo_Expecter) UpdatePanel

func (_e *BackupRepo_Expecter) UpdatePanel(version interface{}, url interface{}, checksum interface{}) *BackupRepo_UpdatePanel_Call

UpdatePanel is a helper method to define mock.On call

  • version string
  • url string
  • checksum string

type BackupRepo_FixPanel_Call

type BackupRepo_FixPanel_Call struct {
	*mock.Call
}

BackupRepo_FixPanel_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FixPanel'

func (*BackupRepo_FixPanel_Call) Return

func (*BackupRepo_FixPanel_Call) Run

func (*BackupRepo_FixPanel_Call) RunAndReturn

func (_c *BackupRepo_FixPanel_Call) RunAndReturn(run func() error) *BackupRepo_FixPanel_Call

type BackupRepo_GetPath_Call

type BackupRepo_GetPath_Call struct {
	*mock.Call
}

BackupRepo_GetPath_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPath'

func (*BackupRepo_GetPath_Call) Return

func (*BackupRepo_GetPath_Call) Run

func (*BackupRepo_GetPath_Call) RunAndReturn

type BackupRepo_List_Call

type BackupRepo_List_Call struct {
	*mock.Call
}

BackupRepo_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'

func (*BackupRepo_List_Call) Return

func (*BackupRepo_List_Call) Run

func (_c *BackupRepo_List_Call) Run(run func(typ biz.BackupType)) *BackupRepo_List_Call

func (*BackupRepo_List_Call) RunAndReturn

func (_c *BackupRepo_List_Call) RunAndReturn(run func(biz.BackupType) ([]*types.BackupFile, error)) *BackupRepo_List_Call

type BackupRepo_Restore_Call

type BackupRepo_Restore_Call struct {
	*mock.Call
}

BackupRepo_Restore_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Restore'

func (*BackupRepo_Restore_Call) Return

func (*BackupRepo_Restore_Call) Run

func (_c *BackupRepo_Restore_Call) Run(run func(typ biz.BackupType, backup string, target string)) *BackupRepo_Restore_Call

func (*BackupRepo_Restore_Call) RunAndReturn

type BackupRepo_UpdatePanel_Call

type BackupRepo_UpdatePanel_Call struct {
	*mock.Call
}

BackupRepo_UpdatePanel_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdatePanel'

func (*BackupRepo_UpdatePanel_Call) Return

func (*BackupRepo_UpdatePanel_Call) Run

func (_c *BackupRepo_UpdatePanel_Call) Run(run func(version string, url string, checksum string)) *BackupRepo_UpdatePanel_Call

func (*BackupRepo_UpdatePanel_Call) RunAndReturn

type CacheRepo

type CacheRepo struct {
	mock.Mock
}

CacheRepo is an autogenerated mock type for the CacheRepo type

func NewCacheRepo

func NewCacheRepo(t interface {
	mock.TestingT
	Cleanup(func())
}) *CacheRepo

NewCacheRepo creates a new instance of CacheRepo. 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 (*CacheRepo) EXPECT

func (_m *CacheRepo) EXPECT() *CacheRepo_Expecter

func (*CacheRepo) Get

func (_m *CacheRepo) Get(key biz.CacheKey, defaultValue ...string) (string, error)

Get provides a mock function with given fields: key, defaultValue

func (*CacheRepo) Set

func (_m *CacheRepo) Set(key biz.CacheKey, value string) error

Set provides a mock function with given fields: key, value

func (*CacheRepo) UpdateApps

func (_m *CacheRepo) UpdateApps() error

UpdateApps provides a mock function with no fields

func (*CacheRepo) UpdateRewrites

func (_m *CacheRepo) UpdateRewrites() error

UpdateRewrites provides a mock function with no fields

type CacheRepo_Expecter

type CacheRepo_Expecter struct {
	// contains filtered or unexported fields
}

func (*CacheRepo_Expecter) Get

func (_e *CacheRepo_Expecter) Get(key interface{}, defaultValue ...interface{}) *CacheRepo_Get_Call

Get is a helper method to define mock.On call

  • key biz.CacheKey
  • defaultValue ...string

func (*CacheRepo_Expecter) Set

func (_e *CacheRepo_Expecter) Set(key interface{}, value interface{}) *CacheRepo_Set_Call

Set is a helper method to define mock.On call

  • key biz.CacheKey
  • value string

func (*CacheRepo_Expecter) UpdateApps

UpdateApps is a helper method to define mock.On call

func (*CacheRepo_Expecter) UpdateRewrites

func (_e *CacheRepo_Expecter) UpdateRewrites() *CacheRepo_UpdateRewrites_Call

UpdateRewrites is a helper method to define mock.On call

type CacheRepo_Get_Call

type CacheRepo_Get_Call struct {
	*mock.Call
}

CacheRepo_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'

func (*CacheRepo_Get_Call) Return

func (_c *CacheRepo_Get_Call) Return(_a0 string, _a1 error) *CacheRepo_Get_Call

func (*CacheRepo_Get_Call) Run

func (_c *CacheRepo_Get_Call) Run(run func(key biz.CacheKey, defaultValue ...string)) *CacheRepo_Get_Call

func (*CacheRepo_Get_Call) RunAndReturn

func (_c *CacheRepo_Get_Call) RunAndReturn(run func(biz.CacheKey, ...string) (string, error)) *CacheRepo_Get_Call

type CacheRepo_Set_Call

type CacheRepo_Set_Call struct {
	*mock.Call
}

CacheRepo_Set_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Set'

func (*CacheRepo_Set_Call) Return

func (_c *CacheRepo_Set_Call) Return(_a0 error) *CacheRepo_Set_Call

func (*CacheRepo_Set_Call) Run

func (_c *CacheRepo_Set_Call) Run(run func(key biz.CacheKey, value string)) *CacheRepo_Set_Call

func (*CacheRepo_Set_Call) RunAndReturn

func (_c *CacheRepo_Set_Call) RunAndReturn(run func(biz.CacheKey, string) error) *CacheRepo_Set_Call

type CacheRepo_UpdateApps_Call

type CacheRepo_UpdateApps_Call struct {
	*mock.Call
}

CacheRepo_UpdateApps_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateApps'

func (*CacheRepo_UpdateApps_Call) Return

func (*CacheRepo_UpdateApps_Call) Run

func (*CacheRepo_UpdateApps_Call) RunAndReturn

func (_c *CacheRepo_UpdateApps_Call) RunAndReturn(run func() error) *CacheRepo_UpdateApps_Call

type CacheRepo_UpdateRewrites_Call

type CacheRepo_UpdateRewrites_Call struct {
	*mock.Call
}

CacheRepo_UpdateRewrites_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateRewrites'

func (*CacheRepo_UpdateRewrites_Call) Return

func (*CacheRepo_UpdateRewrites_Call) Run

func (*CacheRepo_UpdateRewrites_Call) RunAndReturn

type CertAccountRepo

type CertAccountRepo struct {
	mock.Mock
}

CertAccountRepo is an autogenerated mock type for the CertAccountRepo type

func NewCertAccountRepo

func NewCertAccountRepo(t interface {
	mock.TestingT
	Cleanup(func())
}) *CertAccountRepo

NewCertAccountRepo creates a new instance of CertAccountRepo. 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 (*CertAccountRepo) Create

Create provides a mock function with given fields: req

func (*CertAccountRepo) Delete

func (_m *CertAccountRepo) Delete(id uint) error

Delete provides a mock function with given fields: id

func (*CertAccountRepo) EXPECT

func (*CertAccountRepo) Get

func (_m *CertAccountRepo) Get(id uint) (*biz.CertAccount, error)

Get provides a mock function with given fields: id

func (*CertAccountRepo) GetDefault

func (_m *CertAccountRepo) GetDefault(userID uint) (*biz.CertAccount, error)

GetDefault provides a mock function with given fields: userID

func (*CertAccountRepo) List

func (_m *CertAccountRepo) List(page uint, limit uint) ([]*biz.CertAccount, int64, error)

List provides a mock function with given fields: page, limit

func (*CertAccountRepo) Update

Update provides a mock function with given fields: req

type CertAccountRepo_Create_Call

type CertAccountRepo_Create_Call struct {
	*mock.Call
}

CertAccountRepo_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'

func (*CertAccountRepo_Create_Call) Return

func (*CertAccountRepo_Create_Call) Run

func (*CertAccountRepo_Create_Call) RunAndReturn

type CertAccountRepo_Delete_Call

type CertAccountRepo_Delete_Call struct {
	*mock.Call
}

CertAccountRepo_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'

func (*CertAccountRepo_Delete_Call) Return

func (*CertAccountRepo_Delete_Call) Run

func (*CertAccountRepo_Delete_Call) RunAndReturn

type CertAccountRepo_Expecter

type CertAccountRepo_Expecter struct {
	// contains filtered or unexported fields
}

func (*CertAccountRepo_Expecter) Create

func (_e *CertAccountRepo_Expecter) Create(req interface{}) *CertAccountRepo_Create_Call

Create is a helper method to define mock.On call

  • req *request.CertAccountCreate

func (*CertAccountRepo_Expecter) Delete

func (_e *CertAccountRepo_Expecter) Delete(id interface{}) *CertAccountRepo_Delete_Call

Delete is a helper method to define mock.On call

  • id uint

func (*CertAccountRepo_Expecter) Get

func (_e *CertAccountRepo_Expecter) Get(id interface{}) *CertAccountRepo_Get_Call

Get is a helper method to define mock.On call

  • id uint

func (*CertAccountRepo_Expecter) GetDefault

func (_e *CertAccountRepo_Expecter) GetDefault(userID interface{}) *CertAccountRepo_GetDefault_Call

GetDefault is a helper method to define mock.On call

  • userID uint

func (*CertAccountRepo_Expecter) List

func (_e *CertAccountRepo_Expecter) List(page interface{}, limit interface{}) *CertAccountRepo_List_Call

List is a helper method to define mock.On call

  • page uint
  • limit uint

func (*CertAccountRepo_Expecter) Update

func (_e *CertAccountRepo_Expecter) Update(req interface{}) *CertAccountRepo_Update_Call

Update is a helper method to define mock.On call

  • req *request.CertAccountUpdate

type CertAccountRepo_GetDefault_Call

type CertAccountRepo_GetDefault_Call struct {
	*mock.Call
}

CertAccountRepo_GetDefault_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDefault'

func (*CertAccountRepo_GetDefault_Call) Return

func (*CertAccountRepo_GetDefault_Call) Run

func (*CertAccountRepo_GetDefault_Call) RunAndReturn

type CertAccountRepo_Get_Call

type CertAccountRepo_Get_Call struct {
	*mock.Call
}

CertAccountRepo_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'

func (*CertAccountRepo_Get_Call) Return

func (*CertAccountRepo_Get_Call) Run

func (*CertAccountRepo_Get_Call) RunAndReturn

type CertAccountRepo_List_Call

type CertAccountRepo_List_Call struct {
	*mock.Call
}

CertAccountRepo_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'

func (*CertAccountRepo_List_Call) Return

func (*CertAccountRepo_List_Call) Run

func (_c *CertAccountRepo_List_Call) Run(run func(page uint, limit uint)) *CertAccountRepo_List_Call

func (*CertAccountRepo_List_Call) RunAndReturn

type CertAccountRepo_Update_Call

type CertAccountRepo_Update_Call struct {
	*mock.Call
}

CertAccountRepo_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'

func (*CertAccountRepo_Update_Call) Return

func (*CertAccountRepo_Update_Call) Run

func (*CertAccountRepo_Update_Call) RunAndReturn

type CertDNSRepo

type CertDNSRepo struct {
	mock.Mock
}

CertDNSRepo is an autogenerated mock type for the CertDNSRepo type

func NewCertDNSRepo

func NewCertDNSRepo(t interface {
	mock.TestingT
	Cleanup(func())
}) *CertDNSRepo

NewCertDNSRepo creates a new instance of CertDNSRepo. 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 (*CertDNSRepo) Create

func (_m *CertDNSRepo) Create(req *request.CertDNSCreate) (*biz.CertDNS, error)

Create provides a mock function with given fields: req

func (*CertDNSRepo) Delete

func (_m *CertDNSRepo) Delete(id uint) error

Delete provides a mock function with given fields: id

func (*CertDNSRepo) EXPECT

func (_m *CertDNSRepo) EXPECT() *CertDNSRepo_Expecter

func (*CertDNSRepo) Get

func (_m *CertDNSRepo) Get(id uint) (*biz.CertDNS, error)

Get provides a mock function with given fields: id

func (*CertDNSRepo) List

func (_m *CertDNSRepo) List(page uint, limit uint) ([]*biz.CertDNS, int64, error)

List provides a mock function with given fields: page, limit

func (*CertDNSRepo) Update

func (_m *CertDNSRepo) Update(req *request.CertDNSUpdate) error

Update provides a mock function with given fields: req

type CertDNSRepo_Create_Call

type CertDNSRepo_Create_Call struct {
	*mock.Call
}

CertDNSRepo_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'

func (*CertDNSRepo_Create_Call) Return

func (*CertDNSRepo_Create_Call) Run

func (*CertDNSRepo_Create_Call) RunAndReturn

type CertDNSRepo_Delete_Call

type CertDNSRepo_Delete_Call struct {
	*mock.Call
}

CertDNSRepo_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'

func (*CertDNSRepo_Delete_Call) Return

func (*CertDNSRepo_Delete_Call) Run

func (_c *CertDNSRepo_Delete_Call) Run(run func(id uint)) *CertDNSRepo_Delete_Call

func (*CertDNSRepo_Delete_Call) RunAndReturn

func (_c *CertDNSRepo_Delete_Call) RunAndReturn(run func(uint) error) *CertDNSRepo_Delete_Call

type CertDNSRepo_Expecter

type CertDNSRepo_Expecter struct {
	// contains filtered or unexported fields
}

func (*CertDNSRepo_Expecter) Create

func (_e *CertDNSRepo_Expecter) Create(req interface{}) *CertDNSRepo_Create_Call

Create is a helper method to define mock.On call

  • req *request.CertDNSCreate

func (*CertDNSRepo_Expecter) Delete

func (_e *CertDNSRepo_Expecter) Delete(id interface{}) *CertDNSRepo_Delete_Call

Delete is a helper method to define mock.On call

  • id uint

func (*CertDNSRepo_Expecter) Get

func (_e *CertDNSRepo_Expecter) Get(id interface{}) *CertDNSRepo_Get_Call

Get is a helper method to define mock.On call

  • id uint

func (*CertDNSRepo_Expecter) List

func (_e *CertDNSRepo_Expecter) List(page interface{}, limit interface{}) *CertDNSRepo_List_Call

List is a helper method to define mock.On call

  • page uint
  • limit uint

func (*CertDNSRepo_Expecter) Update

func (_e *CertDNSRepo_Expecter) Update(req interface{}) *CertDNSRepo_Update_Call

Update is a helper method to define mock.On call

  • req *request.CertDNSUpdate

type CertDNSRepo_Get_Call

type CertDNSRepo_Get_Call struct {
	*mock.Call
}

CertDNSRepo_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'

func (*CertDNSRepo_Get_Call) Return

func (*CertDNSRepo_Get_Call) Run

func (_c *CertDNSRepo_Get_Call) Run(run func(id uint)) *CertDNSRepo_Get_Call

func (*CertDNSRepo_Get_Call) RunAndReturn

func (_c *CertDNSRepo_Get_Call) RunAndReturn(run func(uint) (*biz.CertDNS, error)) *CertDNSRepo_Get_Call

type CertDNSRepo_List_Call

type CertDNSRepo_List_Call struct {
	*mock.Call
}

CertDNSRepo_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'

func (*CertDNSRepo_List_Call) Return

func (_c *CertDNSRepo_List_Call) Return(_a0 []*biz.CertDNS, _a1 int64, _a2 error) *CertDNSRepo_List_Call

func (*CertDNSRepo_List_Call) Run

func (_c *CertDNSRepo_List_Call) Run(run func(page uint, limit uint)) *CertDNSRepo_List_Call

func (*CertDNSRepo_List_Call) RunAndReturn

func (_c *CertDNSRepo_List_Call) RunAndReturn(run func(uint, uint) ([]*biz.CertDNS, int64, error)) *CertDNSRepo_List_Call

type CertDNSRepo_Update_Call

type CertDNSRepo_Update_Call struct {
	*mock.Call
}

CertDNSRepo_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'

func (*CertDNSRepo_Update_Call) Return

func (*CertDNSRepo_Update_Call) Run

func (*CertDNSRepo_Update_Call) RunAndReturn

type CertRepo

type CertRepo struct {
	mock.Mock
}

CertRepo is an autogenerated mock type for the CertRepo type

func NewCertRepo

func NewCertRepo(t interface {
	mock.TestingT
	Cleanup(func())
}) *CertRepo

NewCertRepo creates a new instance of CertRepo. 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 (*CertRepo) Create

func (_m *CertRepo) Create(req *request.CertCreate) (*biz.Cert, error)

Create provides a mock function with given fields: req

func (*CertRepo) Delete

func (_m *CertRepo) Delete(id uint) error

Delete provides a mock function with given fields: id

func (*CertRepo) Deploy

func (_m *CertRepo) Deploy(ID uint, WebsiteID uint) error

Deploy provides a mock function with given fields: ID, WebsiteID

func (*CertRepo) EXPECT

func (_m *CertRepo) EXPECT() *CertRepo_Expecter

func (*CertRepo) Get

func (_m *CertRepo) Get(id uint) (*biz.Cert, error)

Get provides a mock function with given fields: id

func (*CertRepo) GetByWebsite

func (_m *CertRepo) GetByWebsite(WebsiteID uint) (*biz.Cert, error)

GetByWebsite provides a mock function with given fields: WebsiteID

func (*CertRepo) List

func (_m *CertRepo) List(page uint, limit uint) ([]*types.CertList, int64, error)

List provides a mock function with given fields: page, limit

func (*CertRepo) ManualDNS

func (_m *CertRepo) ManualDNS(id uint) ([]acme.DNSRecord, error)

ManualDNS provides a mock function with given fields: id

func (*CertRepo) ObtainAuto

func (_m *CertRepo) ObtainAuto(id uint) (*acme.Certificate, error)

ObtainAuto provides a mock function with given fields: id

func (*CertRepo) ObtainManual

func (_m *CertRepo) ObtainManual(id uint) (*acme.Certificate, error)

ObtainManual provides a mock function with given fields: id

func (*CertRepo) ObtainSelfSigned

func (_m *CertRepo) ObtainSelfSigned(id uint) error

ObtainSelfSigned provides a mock function with given fields: id

func (*CertRepo) Renew

func (_m *CertRepo) Renew(id uint) (*acme.Certificate, error)

Renew provides a mock function with given fields: id

func (*CertRepo) Update

func (_m *CertRepo) Update(req *request.CertUpdate) error

Update provides a mock function with given fields: req

func (*CertRepo) Upload

func (_m *CertRepo) Upload(req *request.CertUpload) (*biz.Cert, error)

Upload provides a mock function with given fields: req

type CertRepo_Create_Call

type CertRepo_Create_Call struct {
	*mock.Call
}

CertRepo_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'

func (*CertRepo_Create_Call) Return

func (_c *CertRepo_Create_Call) Return(_a0 *biz.Cert, _a1 error) *CertRepo_Create_Call

func (*CertRepo_Create_Call) Run

func (*CertRepo_Create_Call) RunAndReturn

func (_c *CertRepo_Create_Call) RunAndReturn(run func(*request.CertCreate) (*biz.Cert, error)) *CertRepo_Create_Call

type CertRepo_Delete_Call

type CertRepo_Delete_Call struct {
	*mock.Call
}

CertRepo_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'

func (*CertRepo_Delete_Call) Return

func (*CertRepo_Delete_Call) Run

func (_c *CertRepo_Delete_Call) Run(run func(id uint)) *CertRepo_Delete_Call

func (*CertRepo_Delete_Call) RunAndReturn

func (_c *CertRepo_Delete_Call) RunAndReturn(run func(uint) error) *CertRepo_Delete_Call

type CertRepo_Deploy_Call

type CertRepo_Deploy_Call struct {
	*mock.Call
}

CertRepo_Deploy_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Deploy'

func (*CertRepo_Deploy_Call) Return

func (*CertRepo_Deploy_Call) Run

func (_c *CertRepo_Deploy_Call) Run(run func(ID uint, WebsiteID uint)) *CertRepo_Deploy_Call

func (*CertRepo_Deploy_Call) RunAndReturn

func (_c *CertRepo_Deploy_Call) RunAndReturn(run func(uint, uint) error) *CertRepo_Deploy_Call

type CertRepo_Expecter

type CertRepo_Expecter struct {
	// contains filtered or unexported fields
}

func (*CertRepo_Expecter) Create

func (_e *CertRepo_Expecter) Create(req interface{}) *CertRepo_Create_Call

Create is a helper method to define mock.On call

  • req *request.CertCreate

func (*CertRepo_Expecter) Delete

func (_e *CertRepo_Expecter) Delete(id interface{}) *CertRepo_Delete_Call

Delete is a helper method to define mock.On call

  • id uint

func (*CertRepo_Expecter) Deploy

func (_e *CertRepo_Expecter) Deploy(ID interface{}, WebsiteID interface{}) *CertRepo_Deploy_Call

Deploy is a helper method to define mock.On call

  • ID uint
  • WebsiteID uint

func (*CertRepo_Expecter) Get

func (_e *CertRepo_Expecter) Get(id interface{}) *CertRepo_Get_Call

Get is a helper method to define mock.On call

  • id uint

func (*CertRepo_Expecter) GetByWebsite

func (_e *CertRepo_Expecter) GetByWebsite(WebsiteID interface{}) *CertRepo_GetByWebsite_Call

GetByWebsite is a helper method to define mock.On call

  • WebsiteID uint

func (*CertRepo_Expecter) List

func (_e *CertRepo_Expecter) List(page interface{}, limit interface{}) *CertRepo_List_Call

List is a helper method to define mock.On call

  • page uint
  • limit uint

func (*CertRepo_Expecter) ManualDNS

func (_e *CertRepo_Expecter) ManualDNS(id interface{}) *CertRepo_ManualDNS_Call

ManualDNS is a helper method to define mock.On call

  • id uint

func (*CertRepo_Expecter) ObtainAuto

func (_e *CertRepo_Expecter) ObtainAuto(id interface{}) *CertRepo_ObtainAuto_Call

ObtainAuto is a helper method to define mock.On call

  • id uint

func (*CertRepo_Expecter) ObtainManual

func (_e *CertRepo_Expecter) ObtainManual(id interface{}) *CertRepo_ObtainManual_Call

ObtainManual is a helper method to define mock.On call

  • id uint

func (*CertRepo_Expecter) ObtainSelfSigned

func (_e *CertRepo_Expecter) ObtainSelfSigned(id interface{}) *CertRepo_ObtainSelfSigned_Call

ObtainSelfSigned is a helper method to define mock.On call

  • id uint

func (*CertRepo_Expecter) Renew

func (_e *CertRepo_Expecter) Renew(id interface{}) *CertRepo_Renew_Call

Renew is a helper method to define mock.On call

  • id uint

func (*CertRepo_Expecter) Update

func (_e *CertRepo_Expecter) Update(req interface{}) *CertRepo_Update_Call

Update is a helper method to define mock.On call

  • req *request.CertUpdate

func (*CertRepo_Expecter) Upload

func (_e *CertRepo_Expecter) Upload(req interface{}) *CertRepo_Upload_Call

Upload is a helper method to define mock.On call

  • req *request.CertUpload

type CertRepo_GetByWebsite_Call

type CertRepo_GetByWebsite_Call struct {
	*mock.Call
}

CertRepo_GetByWebsite_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByWebsite'

func (*CertRepo_GetByWebsite_Call) Return

func (*CertRepo_GetByWebsite_Call) Run

func (_c *CertRepo_GetByWebsite_Call) Run(run func(WebsiteID uint)) *CertRepo_GetByWebsite_Call

func (*CertRepo_GetByWebsite_Call) RunAndReturn

func (_c *CertRepo_GetByWebsite_Call) RunAndReturn(run func(uint) (*biz.Cert, error)) *CertRepo_GetByWebsite_Call

type CertRepo_Get_Call

type CertRepo_Get_Call struct {
	*mock.Call
}

CertRepo_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'

func (*CertRepo_Get_Call) Return

func (_c *CertRepo_Get_Call) Return(_a0 *biz.Cert, _a1 error) *CertRepo_Get_Call

func (*CertRepo_Get_Call) Run

func (_c *CertRepo_Get_Call) Run(run func(id uint)) *CertRepo_Get_Call

func (*CertRepo_Get_Call) RunAndReturn

func (_c *CertRepo_Get_Call) RunAndReturn(run func(uint) (*biz.Cert, error)) *CertRepo_Get_Call

type CertRepo_List_Call

type CertRepo_List_Call struct {
	*mock.Call
}

CertRepo_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'

func (*CertRepo_List_Call) Return

func (_c *CertRepo_List_Call) Return(_a0 []*types.CertList, _a1 int64, _a2 error) *CertRepo_List_Call

func (*CertRepo_List_Call) Run

func (_c *CertRepo_List_Call) Run(run func(page uint, limit uint)) *CertRepo_List_Call

func (*CertRepo_List_Call) RunAndReturn

func (_c *CertRepo_List_Call) RunAndReturn(run func(uint, uint) ([]*types.CertList, int64, error)) *CertRepo_List_Call

type CertRepo_ManualDNS_Call

type CertRepo_ManualDNS_Call struct {
	*mock.Call
}

CertRepo_ManualDNS_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ManualDNS'

func (*CertRepo_ManualDNS_Call) Return

func (*CertRepo_ManualDNS_Call) Run

func (_c *CertRepo_ManualDNS_Call) Run(run func(id uint)) *CertRepo_ManualDNS_Call

func (*CertRepo_ManualDNS_Call) RunAndReturn

func (_c *CertRepo_ManualDNS_Call) RunAndReturn(run func(uint) ([]acme.DNSRecord, error)) *CertRepo_ManualDNS_Call

type CertRepo_ObtainAuto_Call

type CertRepo_ObtainAuto_Call struct {
	*mock.Call
}

CertRepo_ObtainAuto_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ObtainAuto'

func (*CertRepo_ObtainAuto_Call) Return

func (*CertRepo_ObtainAuto_Call) Run

func (*CertRepo_ObtainAuto_Call) RunAndReturn

type CertRepo_ObtainManual_Call

type CertRepo_ObtainManual_Call struct {
	*mock.Call
}

CertRepo_ObtainManual_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ObtainManual'

func (*CertRepo_ObtainManual_Call) Return

func (*CertRepo_ObtainManual_Call) Run

func (*CertRepo_ObtainManual_Call) RunAndReturn

type CertRepo_ObtainSelfSigned_Call

type CertRepo_ObtainSelfSigned_Call struct {
	*mock.Call
}

CertRepo_ObtainSelfSigned_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ObtainSelfSigned'

func (*CertRepo_ObtainSelfSigned_Call) Return

func (*CertRepo_ObtainSelfSigned_Call) Run

func (*CertRepo_ObtainSelfSigned_Call) RunAndReturn

type CertRepo_Renew_Call

type CertRepo_Renew_Call struct {
	*mock.Call
}

CertRepo_Renew_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Renew'

func (*CertRepo_Renew_Call) Return

func (*CertRepo_Renew_Call) Run

func (_c *CertRepo_Renew_Call) Run(run func(id uint)) *CertRepo_Renew_Call

func (*CertRepo_Renew_Call) RunAndReturn

func (_c *CertRepo_Renew_Call) RunAndReturn(run func(uint) (*acme.Certificate, error)) *CertRepo_Renew_Call

type CertRepo_Update_Call

type CertRepo_Update_Call struct {
	*mock.Call
}

CertRepo_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'

func (*CertRepo_Update_Call) Return

func (*CertRepo_Update_Call) Run

func (*CertRepo_Update_Call) RunAndReturn

func (_c *CertRepo_Update_Call) RunAndReturn(run func(*request.CertUpdate) error) *CertRepo_Update_Call

type CertRepo_Upload_Call

type CertRepo_Upload_Call struct {
	*mock.Call
}

CertRepo_Upload_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Upload'

func (*CertRepo_Upload_Call) Return

func (_c *CertRepo_Upload_Call) Return(_a0 *biz.Cert, _a1 error) *CertRepo_Upload_Call

func (*CertRepo_Upload_Call) Run

func (*CertRepo_Upload_Call) RunAndReturn

func (_c *CertRepo_Upload_Call) RunAndReturn(run func(*request.CertUpload) (*biz.Cert, error)) *CertRepo_Upload_Call

type ContainerImageRepo

type ContainerImageRepo struct {
	mock.Mock
}

ContainerImageRepo is an autogenerated mock type for the ContainerImageRepo type

func NewContainerImageRepo

func NewContainerImageRepo(t interface {
	mock.TestingT
	Cleanup(func())
}) *ContainerImageRepo

NewContainerImageRepo creates a new instance of ContainerImageRepo. 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 (*ContainerImageRepo) EXPECT

func (*ContainerImageRepo) List

func (_m *ContainerImageRepo) List() ([]types.ContainerImage, error)

List provides a mock function with no fields

func (*ContainerImageRepo) Prune

func (_m *ContainerImageRepo) Prune() error

Prune provides a mock function with no fields

func (*ContainerImageRepo) Pull

Pull provides a mock function with given fields: req

func (*ContainerImageRepo) Remove

func (_m *ContainerImageRepo) Remove(id string) error

Remove provides a mock function with given fields: id

type ContainerImageRepo_Expecter

type ContainerImageRepo_Expecter struct {
	// contains filtered or unexported fields
}

func (*ContainerImageRepo_Expecter) List

List is a helper method to define mock.On call

func (*ContainerImageRepo_Expecter) Prune

Prune is a helper method to define mock.On call

func (*ContainerImageRepo_Expecter) Pull

func (_e *ContainerImageRepo_Expecter) Pull(req interface{}) *ContainerImageRepo_Pull_Call

Pull is a helper method to define mock.On call

  • req *request.ContainerImagePull

func (*ContainerImageRepo_Expecter) Remove

func (_e *ContainerImageRepo_Expecter) Remove(id interface{}) *ContainerImageRepo_Remove_Call

Remove is a helper method to define mock.On call

  • id string

type ContainerImageRepo_List_Call

type ContainerImageRepo_List_Call struct {
	*mock.Call
}

ContainerImageRepo_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'

func (*ContainerImageRepo_List_Call) Return

func (*ContainerImageRepo_List_Call) Run

func (*ContainerImageRepo_List_Call) RunAndReturn

type ContainerImageRepo_Prune_Call

type ContainerImageRepo_Prune_Call struct {
	*mock.Call
}

ContainerImageRepo_Prune_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Prune'

func (*ContainerImageRepo_Prune_Call) Return

func (*ContainerImageRepo_Prune_Call) Run

func (*ContainerImageRepo_Prune_Call) RunAndReturn

type ContainerImageRepo_Pull_Call

type ContainerImageRepo_Pull_Call struct {
	*mock.Call
}

ContainerImageRepo_Pull_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Pull'

func (*ContainerImageRepo_Pull_Call) Return

func (*ContainerImageRepo_Pull_Call) Run

func (*ContainerImageRepo_Pull_Call) RunAndReturn

type ContainerImageRepo_Remove_Call

type ContainerImageRepo_Remove_Call struct {
	*mock.Call
}

ContainerImageRepo_Remove_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Remove'

func (*ContainerImageRepo_Remove_Call) Return

func (*ContainerImageRepo_Remove_Call) Run

func (*ContainerImageRepo_Remove_Call) RunAndReturn

type ContainerNetworkRepo

type ContainerNetworkRepo struct {
	mock.Mock
}

ContainerNetworkRepo is an autogenerated mock type for the ContainerNetworkRepo type

func NewContainerNetworkRepo

func NewContainerNetworkRepo(t interface {
	mock.TestingT
	Cleanup(func())
}) *ContainerNetworkRepo

NewContainerNetworkRepo creates a new instance of ContainerNetworkRepo. 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 (*ContainerNetworkRepo) Create

Create provides a mock function with given fields: req

func (*ContainerNetworkRepo) EXPECT

func (*ContainerNetworkRepo) List

List provides a mock function with no fields

func (*ContainerNetworkRepo) Prune

func (_m *ContainerNetworkRepo) Prune() error

Prune provides a mock function with no fields

func (*ContainerNetworkRepo) Remove

func (_m *ContainerNetworkRepo) Remove(id string) error

Remove provides a mock function with given fields: id

type ContainerNetworkRepo_Create_Call

type ContainerNetworkRepo_Create_Call struct {
	*mock.Call
}

ContainerNetworkRepo_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'

func (*ContainerNetworkRepo_Create_Call) Return

func (*ContainerNetworkRepo_Create_Call) Run

func (*ContainerNetworkRepo_Create_Call) RunAndReturn

type ContainerNetworkRepo_Expecter

type ContainerNetworkRepo_Expecter struct {
	// contains filtered or unexported fields
}

func (*ContainerNetworkRepo_Expecter) Create

Create is a helper method to define mock.On call

  • req *request.ContainerNetworkCreate

func (*ContainerNetworkRepo_Expecter) List

List is a helper method to define mock.On call

func (*ContainerNetworkRepo_Expecter) Prune

Prune is a helper method to define mock.On call

func (*ContainerNetworkRepo_Expecter) Remove

Remove is a helper method to define mock.On call

  • id string

type ContainerNetworkRepo_List_Call

type ContainerNetworkRepo_List_Call struct {
	*mock.Call
}

ContainerNetworkRepo_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'

func (*ContainerNetworkRepo_List_Call) Return

func (*ContainerNetworkRepo_List_Call) Run

func (*ContainerNetworkRepo_List_Call) RunAndReturn

type ContainerNetworkRepo_Prune_Call

type ContainerNetworkRepo_Prune_Call struct {
	*mock.Call
}

ContainerNetworkRepo_Prune_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Prune'

func (*ContainerNetworkRepo_Prune_Call) Return

func (*ContainerNetworkRepo_Prune_Call) Run

func (*ContainerNetworkRepo_Prune_Call) RunAndReturn

type ContainerNetworkRepo_Remove_Call

type ContainerNetworkRepo_Remove_Call struct {
	*mock.Call
}

ContainerNetworkRepo_Remove_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Remove'

func (*ContainerNetworkRepo_Remove_Call) Return

func (*ContainerNetworkRepo_Remove_Call) Run

func (*ContainerNetworkRepo_Remove_Call) RunAndReturn

type ContainerRepo

type ContainerRepo struct {
	mock.Mock
}

ContainerRepo is an autogenerated mock type for the ContainerRepo type

func NewContainerRepo

func NewContainerRepo(t interface {
	mock.TestingT
	Cleanup(func())
}) *ContainerRepo

NewContainerRepo creates a new instance of ContainerRepo. 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 (*ContainerRepo) Create

func (_m *ContainerRepo) Create(req *request.ContainerCreate) (string, error)

Create provides a mock function with given fields: req

func (*ContainerRepo) EXPECT

func (_m *ContainerRepo) EXPECT() *ContainerRepo_Expecter

func (*ContainerRepo) Kill

func (_m *ContainerRepo) Kill(id string) error

Kill provides a mock function with given fields: id

func (*ContainerRepo) ListAll

func (_m *ContainerRepo) ListAll() ([]types.Container, error)

ListAll provides a mock function with no fields

func (*ContainerRepo) ListByName

func (_m *ContainerRepo) ListByName(name string) ([]types.Container, error)

ListByName provides a mock function with given fields: name

func (*ContainerRepo) Logs

func (_m *ContainerRepo) Logs(id string) (string, error)

Logs provides a mock function with given fields: id

func (*ContainerRepo) Pause

func (_m *ContainerRepo) Pause(id string) error

Pause provides a mock function with given fields: id

func (*ContainerRepo) Prune

func (_m *ContainerRepo) Prune() error

Prune provides a mock function with no fields

func (*ContainerRepo) Remove

func (_m *ContainerRepo) Remove(id string) error

Remove provides a mock function with given fields: id

func (*ContainerRepo) Rename

func (_m *ContainerRepo) Rename(id string, newName string) error

Rename provides a mock function with given fields: id, newName

func (*ContainerRepo) Restart

func (_m *ContainerRepo) Restart(id string) error

Restart provides a mock function with given fields: id

func (*ContainerRepo) Start

func (_m *ContainerRepo) Start(id string) error

Start provides a mock function with given fields: id

func (*ContainerRepo) Stop

func (_m *ContainerRepo) Stop(id string) error

Stop provides a mock function with given fields: id

func (*ContainerRepo) Unpause

func (_m *ContainerRepo) Unpause(id string) error

Unpause provides a mock function with given fields: id

type ContainerRepo_Create_Call

type ContainerRepo_Create_Call struct {
	*mock.Call
}

ContainerRepo_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'

func (*ContainerRepo_Create_Call) Return

func (*ContainerRepo_Create_Call) Run

func (*ContainerRepo_Create_Call) RunAndReturn

type ContainerRepo_Expecter

type ContainerRepo_Expecter struct {
	// contains filtered or unexported fields
}

func (*ContainerRepo_Expecter) Create

func (_e *ContainerRepo_Expecter) Create(req interface{}) *ContainerRepo_Create_Call

Create is a helper method to define mock.On call

  • req *request.ContainerCreate

func (*ContainerRepo_Expecter) Kill

func (_e *ContainerRepo_Expecter) Kill(id interface{}) *ContainerRepo_Kill_Call

Kill is a helper method to define mock.On call

  • id string

func (*ContainerRepo_Expecter) ListAll

ListAll is a helper method to define mock.On call

func (*ContainerRepo_Expecter) ListByName

func (_e *ContainerRepo_Expecter) ListByName(name interface{}) *ContainerRepo_ListByName_Call

ListByName is a helper method to define mock.On call

  • name string

func (*ContainerRepo_Expecter) Logs

func (_e *ContainerRepo_Expecter) Logs(id interface{}) *ContainerRepo_Logs_Call

Logs is a helper method to define mock.On call

  • id string

func (*ContainerRepo_Expecter) Pause

func (_e *ContainerRepo_Expecter) Pause(id interface{}) *ContainerRepo_Pause_Call

Pause is a helper method to define mock.On call

  • id string

func (*ContainerRepo_Expecter) Prune

Prune is a helper method to define mock.On call

func (*ContainerRepo_Expecter) Remove

func (_e *ContainerRepo_Expecter) Remove(id interface{}) *ContainerRepo_Remove_Call

Remove is a helper method to define mock.On call

  • id string

func (*ContainerRepo_Expecter) Rename

func (_e *ContainerRepo_Expecter) Rename(id interface{}, newName interface{}) *ContainerRepo_Rename_Call

Rename is a helper method to define mock.On call

  • id string
  • newName string

func (*ContainerRepo_Expecter) Restart

func (_e *ContainerRepo_Expecter) Restart(id interface{}) *ContainerRepo_Restart_Call

Restart is a helper method to define mock.On call

  • id string

func (*ContainerRepo_Expecter) Start

func (_e *ContainerRepo_Expecter) Start(id interface{}) *ContainerRepo_Start_Call

Start is a helper method to define mock.On call

  • id string

func (*ContainerRepo_Expecter) Stop

func (_e *ContainerRepo_Expecter) Stop(id interface{}) *ContainerRepo_Stop_Call

Stop is a helper method to define mock.On call

  • id string

func (*ContainerRepo_Expecter) Unpause

func (_e *ContainerRepo_Expecter) Unpause(id interface{}) *ContainerRepo_Unpause_Call

Unpause is a helper method to define mock.On call

  • id string

type ContainerRepo_Kill_Call

type ContainerRepo_Kill_Call struct {
	*mock.Call
}

ContainerRepo_Kill_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Kill'

func (*ContainerRepo_Kill_Call) Return

func (*ContainerRepo_Kill_Call) Run

func (*ContainerRepo_Kill_Call) RunAndReturn

func (_c *ContainerRepo_Kill_Call) RunAndReturn(run func(string) error) *ContainerRepo_Kill_Call

type ContainerRepo_ListAll_Call

type ContainerRepo_ListAll_Call struct {
	*mock.Call
}

ContainerRepo_ListAll_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListAll'

func (*ContainerRepo_ListAll_Call) Return

func (*ContainerRepo_ListAll_Call) Run

func (*ContainerRepo_ListAll_Call) RunAndReturn

func (_c *ContainerRepo_ListAll_Call) RunAndReturn(run func() ([]types.Container, error)) *ContainerRepo_ListAll_Call

type ContainerRepo_ListByName_Call

type ContainerRepo_ListByName_Call struct {
	*mock.Call
}

ContainerRepo_ListByName_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListByName'

func (*ContainerRepo_ListByName_Call) Return

func (*ContainerRepo_ListByName_Call) Run

func (*ContainerRepo_ListByName_Call) RunAndReturn

type ContainerRepo_Logs_Call

type ContainerRepo_Logs_Call struct {
	*mock.Call
}

ContainerRepo_Logs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Logs'

func (*ContainerRepo_Logs_Call) Return

func (*ContainerRepo_Logs_Call) Run

func (*ContainerRepo_Logs_Call) RunAndReturn

func (_c *ContainerRepo_Logs_Call) RunAndReturn(run func(string) (string, error)) *ContainerRepo_Logs_Call

type ContainerRepo_Pause_Call

type ContainerRepo_Pause_Call struct {
	*mock.Call
}

ContainerRepo_Pause_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Pause'

func (*ContainerRepo_Pause_Call) Return

func (*ContainerRepo_Pause_Call) Run

func (*ContainerRepo_Pause_Call) RunAndReturn

func (_c *ContainerRepo_Pause_Call) RunAndReturn(run func(string) error) *ContainerRepo_Pause_Call

type ContainerRepo_Prune_Call

type ContainerRepo_Prune_Call struct {
	*mock.Call
}

ContainerRepo_Prune_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Prune'

func (*ContainerRepo_Prune_Call) Return

func (*ContainerRepo_Prune_Call) Run

func (*ContainerRepo_Prune_Call) RunAndReturn

func (_c *ContainerRepo_Prune_Call) RunAndReturn(run func() error) *ContainerRepo_Prune_Call

type ContainerRepo_Remove_Call

type ContainerRepo_Remove_Call struct {
	*mock.Call
}

ContainerRepo_Remove_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Remove'

func (*ContainerRepo_Remove_Call) Return

func (*ContainerRepo_Remove_Call) Run

func (*ContainerRepo_Remove_Call) RunAndReturn

func (_c *ContainerRepo_Remove_Call) RunAndReturn(run func(string) error) *ContainerRepo_Remove_Call

type ContainerRepo_Rename_Call

type ContainerRepo_Rename_Call struct {
	*mock.Call
}

ContainerRepo_Rename_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Rename'

func (*ContainerRepo_Rename_Call) Return

func (*ContainerRepo_Rename_Call) Run

func (_c *ContainerRepo_Rename_Call) Run(run func(id string, newName string)) *ContainerRepo_Rename_Call

func (*ContainerRepo_Rename_Call) RunAndReturn

type ContainerRepo_Restart_Call

type ContainerRepo_Restart_Call struct {
	*mock.Call
}

ContainerRepo_Restart_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Restart'

func (*ContainerRepo_Restart_Call) Return

func (*ContainerRepo_Restart_Call) Run

func (*ContainerRepo_Restart_Call) RunAndReturn

type ContainerRepo_Start_Call

type ContainerRepo_Start_Call struct {
	*mock.Call
}

ContainerRepo_Start_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Start'

func (*ContainerRepo_Start_Call) Return

func (*ContainerRepo_Start_Call) Run

func (*ContainerRepo_Start_Call) RunAndReturn

func (_c *ContainerRepo_Start_Call) RunAndReturn(run func(string) error) *ContainerRepo_Start_Call

type ContainerRepo_Stop_Call

type ContainerRepo_Stop_Call struct {
	*mock.Call
}

ContainerRepo_Stop_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Stop'

func (*ContainerRepo_Stop_Call) Return

func (*ContainerRepo_Stop_Call) Run

func (*ContainerRepo_Stop_Call) RunAndReturn

func (_c *ContainerRepo_Stop_Call) RunAndReturn(run func(string) error) *ContainerRepo_Stop_Call

type ContainerRepo_Unpause_Call

type ContainerRepo_Unpause_Call struct {
	*mock.Call
}

ContainerRepo_Unpause_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Unpause'

func (*ContainerRepo_Unpause_Call) Return

func (*ContainerRepo_Unpause_Call) Run

func (*ContainerRepo_Unpause_Call) RunAndReturn

type ContainerVolumeRepo

type ContainerVolumeRepo struct {
	mock.Mock
}

ContainerVolumeRepo is an autogenerated mock type for the ContainerVolumeRepo type

func NewContainerVolumeRepo

func NewContainerVolumeRepo(t interface {
	mock.TestingT
	Cleanup(func())
}) *ContainerVolumeRepo

NewContainerVolumeRepo creates a new instance of ContainerVolumeRepo. 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 (*ContainerVolumeRepo) Create

Create provides a mock function with given fields: req

func (*ContainerVolumeRepo) EXPECT

func (*ContainerVolumeRepo) List

List provides a mock function with no fields

func (*ContainerVolumeRepo) Prune

func (_m *ContainerVolumeRepo) Prune() error

Prune provides a mock function with no fields

func (*ContainerVolumeRepo) Remove

func (_m *ContainerVolumeRepo) Remove(id string) error

Remove provides a mock function with given fields: id

type ContainerVolumeRepo_Create_Call

type ContainerVolumeRepo_Create_Call struct {
	*mock.Call
}

ContainerVolumeRepo_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'

func (*ContainerVolumeRepo_Create_Call) Return

func (*ContainerVolumeRepo_Create_Call) Run

func (*ContainerVolumeRepo_Create_Call) RunAndReturn

type ContainerVolumeRepo_Expecter

type ContainerVolumeRepo_Expecter struct {
	// contains filtered or unexported fields
}

func (*ContainerVolumeRepo_Expecter) Create

Create is a helper method to define mock.On call

  • req *request.ContainerVolumeCreate

func (*ContainerVolumeRepo_Expecter) List

List is a helper method to define mock.On call

func (*ContainerVolumeRepo_Expecter) Prune

Prune is a helper method to define mock.On call

func (*ContainerVolumeRepo_Expecter) Remove

Remove is a helper method to define mock.On call

  • id string

type ContainerVolumeRepo_List_Call

type ContainerVolumeRepo_List_Call struct {
	*mock.Call
}

ContainerVolumeRepo_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'

func (*ContainerVolumeRepo_List_Call) Return

func (*ContainerVolumeRepo_List_Call) Run

func (*ContainerVolumeRepo_List_Call) RunAndReturn

type ContainerVolumeRepo_Prune_Call

type ContainerVolumeRepo_Prune_Call struct {
	*mock.Call
}

ContainerVolumeRepo_Prune_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Prune'

func (*ContainerVolumeRepo_Prune_Call) Return

func (*ContainerVolumeRepo_Prune_Call) Run

func (*ContainerVolumeRepo_Prune_Call) RunAndReturn

type ContainerVolumeRepo_Remove_Call

type ContainerVolumeRepo_Remove_Call struct {
	*mock.Call
}

ContainerVolumeRepo_Remove_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Remove'

func (*ContainerVolumeRepo_Remove_Call) Return

func (*ContainerVolumeRepo_Remove_Call) Run

func (*ContainerVolumeRepo_Remove_Call) RunAndReturn

type CronRepo

type CronRepo struct {
	mock.Mock
}

CronRepo is an autogenerated mock type for the CronRepo type

func NewCronRepo

func NewCronRepo(t interface {
	mock.TestingT
	Cleanup(func())
}) *CronRepo

NewCronRepo creates a new instance of CronRepo. 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 (*CronRepo) Count

func (_m *CronRepo) Count() (int64, error)

Count provides a mock function with no fields

func (*CronRepo) Create

func (_m *CronRepo) Create(req *request.CronCreate) error

Create provides a mock function with given fields: req

func (*CronRepo) Delete

func (_m *CronRepo) Delete(id uint) error

Delete provides a mock function with given fields: id

func (*CronRepo) EXPECT

func (_m *CronRepo) EXPECT() *CronRepo_Expecter

func (*CronRepo) Get

func (_m *CronRepo) Get(id uint) (*biz.Cron, error)

Get provides a mock function with given fields: id

func (*CronRepo) List

func (_m *CronRepo) List(page uint, limit uint) ([]*biz.Cron, int64, error)

List provides a mock function with given fields: page, limit

func (*CronRepo) Status

func (_m *CronRepo) Status(id uint, status bool) error

Status provides a mock function with given fields: id, status

func (*CronRepo) Update

func (_m *CronRepo) Update(req *request.CronUpdate) error

Update provides a mock function with given fields: req

type CronRepo_Count_Call

type CronRepo_Count_Call struct {
	*mock.Call
}

CronRepo_Count_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Count'

func (*CronRepo_Count_Call) Return

func (_c *CronRepo_Count_Call) Return(_a0 int64, _a1 error) *CronRepo_Count_Call

func (*CronRepo_Count_Call) Run

func (_c *CronRepo_Count_Call) Run(run func()) *CronRepo_Count_Call

func (*CronRepo_Count_Call) RunAndReturn

func (_c *CronRepo_Count_Call) RunAndReturn(run func() (int64, error)) *CronRepo_Count_Call

type CronRepo_Create_Call

type CronRepo_Create_Call struct {
	*mock.Call
}

CronRepo_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'

func (*CronRepo_Create_Call) Return

func (*CronRepo_Create_Call) Run

func (*CronRepo_Create_Call) RunAndReturn

func (_c *CronRepo_Create_Call) RunAndReturn(run func(*request.CronCreate) error) *CronRepo_Create_Call

type CronRepo_Delete_Call

type CronRepo_Delete_Call struct {
	*mock.Call
}

CronRepo_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'

func (*CronRepo_Delete_Call) Return

func (*CronRepo_Delete_Call) Run

func (_c *CronRepo_Delete_Call) Run(run func(id uint)) *CronRepo_Delete_Call

func (*CronRepo_Delete_Call) RunAndReturn

func (_c *CronRepo_Delete_Call) RunAndReturn(run func(uint) error) *CronRepo_Delete_Call

type CronRepo_Expecter

type CronRepo_Expecter struct {
	// contains filtered or unexported fields
}

func (*CronRepo_Expecter) Count

Count is a helper method to define mock.On call

func (*CronRepo_Expecter) Create

func (_e *CronRepo_Expecter) Create(req interface{}) *CronRepo_Create_Call

Create is a helper method to define mock.On call

  • req *request.CronCreate

func (*CronRepo_Expecter) Delete

func (_e *CronRepo_Expecter) Delete(id interface{}) *CronRepo_Delete_Call

Delete is a helper method to define mock.On call

  • id uint

func (*CronRepo_Expecter) Get

func (_e *CronRepo_Expecter) Get(id interface{}) *CronRepo_Get_Call

Get is a helper method to define mock.On call

  • id uint

func (*CronRepo_Expecter) List

func (_e *CronRepo_Expecter) List(page interface{}, limit interface{}) *CronRepo_List_Call

List is a helper method to define mock.On call

  • page uint
  • limit uint

func (*CronRepo_Expecter) Status

func (_e *CronRepo_Expecter) Status(id interface{}, status interface{}) *CronRepo_Status_Call

Status is a helper method to define mock.On call

  • id uint
  • status bool

func (*CronRepo_Expecter) Update

func (_e *CronRepo_Expecter) Update(req interface{}) *CronRepo_Update_Call

Update is a helper method to define mock.On call

  • req *request.CronUpdate

type CronRepo_Get_Call

type CronRepo_Get_Call struct {
	*mock.Call
}

CronRepo_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'

func (*CronRepo_Get_Call) Return

func (_c *CronRepo_Get_Call) Return(_a0 *biz.Cron, _a1 error) *CronRepo_Get_Call

func (*CronRepo_Get_Call) Run

func (_c *CronRepo_Get_Call) Run(run func(id uint)) *CronRepo_Get_Call

func (*CronRepo_Get_Call) RunAndReturn

func (_c *CronRepo_Get_Call) RunAndReturn(run func(uint) (*biz.Cron, error)) *CronRepo_Get_Call

type CronRepo_List_Call

type CronRepo_List_Call struct {
	*mock.Call
}

CronRepo_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'

func (*CronRepo_List_Call) Return

func (_c *CronRepo_List_Call) Return(_a0 []*biz.Cron, _a1 int64, _a2 error) *CronRepo_List_Call

func (*CronRepo_List_Call) Run

func (_c *CronRepo_List_Call) Run(run func(page uint, limit uint)) *CronRepo_List_Call

func (*CronRepo_List_Call) RunAndReturn

func (_c *CronRepo_List_Call) RunAndReturn(run func(uint, uint) ([]*biz.Cron, int64, error)) *CronRepo_List_Call

type CronRepo_Status_Call

type CronRepo_Status_Call struct {
	*mock.Call
}

CronRepo_Status_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Status'

func (*CronRepo_Status_Call) Return

func (*CronRepo_Status_Call) Run

func (_c *CronRepo_Status_Call) Run(run func(id uint, status bool)) *CronRepo_Status_Call

func (*CronRepo_Status_Call) RunAndReturn

func (_c *CronRepo_Status_Call) RunAndReturn(run func(uint, bool) error) *CronRepo_Status_Call

type CronRepo_Update_Call

type CronRepo_Update_Call struct {
	*mock.Call
}

CronRepo_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'

func (*CronRepo_Update_Call) Return

func (*CronRepo_Update_Call) Run

func (*CronRepo_Update_Call) RunAndReturn

func (_c *CronRepo_Update_Call) RunAndReturn(run func(*request.CronUpdate) error) *CronRepo_Update_Call

type DatabaseRepo

type DatabaseRepo struct {
	mock.Mock
}

DatabaseRepo is an autogenerated mock type for the DatabaseRepo type

func NewDatabaseRepo

func NewDatabaseRepo(t interface {
	mock.TestingT
	Cleanup(func())
}) *DatabaseRepo

NewDatabaseRepo creates a new instance of DatabaseRepo. 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 (*DatabaseRepo) Comment

func (_m *DatabaseRepo) Comment(req *request.DatabaseComment) error

Comment provides a mock function with given fields: req

func (*DatabaseRepo) Create

func (_m *DatabaseRepo) Create(req *request.DatabaseCreate) error

Create provides a mock function with given fields: req

func (*DatabaseRepo) Delete

func (_m *DatabaseRepo) Delete(serverID uint, name string) error

Delete provides a mock function with given fields: serverID, name

func (*DatabaseRepo) EXPECT

func (_m *DatabaseRepo) EXPECT() *DatabaseRepo_Expecter

func (*DatabaseRepo) List

func (_m *DatabaseRepo) List(page uint, limit uint) ([]*biz.Database, int64, error)

List provides a mock function with given fields: page, limit

type DatabaseRepo_Comment_Call

type DatabaseRepo_Comment_Call struct {
	*mock.Call
}

DatabaseRepo_Comment_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Comment'

func (*DatabaseRepo_Comment_Call) Return

func (*DatabaseRepo_Comment_Call) Run

func (*DatabaseRepo_Comment_Call) RunAndReturn

type DatabaseRepo_Create_Call

type DatabaseRepo_Create_Call struct {
	*mock.Call
}

DatabaseRepo_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'

func (*DatabaseRepo_Create_Call) Return

func (*DatabaseRepo_Create_Call) Run

func (*DatabaseRepo_Create_Call) RunAndReturn

type DatabaseRepo_Delete_Call

type DatabaseRepo_Delete_Call struct {
	*mock.Call
}

DatabaseRepo_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'

func (*DatabaseRepo_Delete_Call) Return

func (*DatabaseRepo_Delete_Call) Run

func (_c *DatabaseRepo_Delete_Call) Run(run func(serverID uint, name string)) *DatabaseRepo_Delete_Call

func (*DatabaseRepo_Delete_Call) RunAndReturn

func (_c *DatabaseRepo_Delete_Call) RunAndReturn(run func(uint, string) error) *DatabaseRepo_Delete_Call

type DatabaseRepo_Expecter

type DatabaseRepo_Expecter struct {
	// contains filtered or unexported fields
}

func (*DatabaseRepo_Expecter) Comment

func (_e *DatabaseRepo_Expecter) Comment(req interface{}) *DatabaseRepo_Comment_Call

Comment is a helper method to define mock.On call

  • req *request.DatabaseComment

func (*DatabaseRepo_Expecter) Create

func (_e *DatabaseRepo_Expecter) Create(req interface{}) *DatabaseRepo_Create_Call

Create is a helper method to define mock.On call

  • req *request.DatabaseCreate

func (*DatabaseRepo_Expecter) Delete

func (_e *DatabaseRepo_Expecter) Delete(serverID interface{}, name interface{}) *DatabaseRepo_Delete_Call

Delete is a helper method to define mock.On call

  • serverID uint
  • name string

func (*DatabaseRepo_Expecter) List

func (_e *DatabaseRepo_Expecter) List(page interface{}, limit interface{}) *DatabaseRepo_List_Call

List is a helper method to define mock.On call

  • page uint
  • limit uint

type DatabaseRepo_List_Call

type DatabaseRepo_List_Call struct {
	*mock.Call
}

DatabaseRepo_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'

func (*DatabaseRepo_List_Call) Return

func (_c *DatabaseRepo_List_Call) Return(_a0 []*biz.Database, _a1 int64, _a2 error) *DatabaseRepo_List_Call

func (*DatabaseRepo_List_Call) Run

func (_c *DatabaseRepo_List_Call) Run(run func(page uint, limit uint)) *DatabaseRepo_List_Call

func (*DatabaseRepo_List_Call) RunAndReturn

func (_c *DatabaseRepo_List_Call) RunAndReturn(run func(uint, uint) ([]*biz.Database, int64, error)) *DatabaseRepo_List_Call

type DatabaseServerRepo

type DatabaseServerRepo struct {
	mock.Mock
}

DatabaseServerRepo is an autogenerated mock type for the DatabaseServerRepo type

func NewDatabaseServerRepo

func NewDatabaseServerRepo(t interface {
	mock.TestingT
	Cleanup(func())
}) *DatabaseServerRepo

NewDatabaseServerRepo creates a new instance of DatabaseServerRepo. 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 (*DatabaseServerRepo) ClearUsers

func (_m *DatabaseServerRepo) ClearUsers(id uint) error

ClearUsers provides a mock function with given fields: id

func (*DatabaseServerRepo) Count

func (_m *DatabaseServerRepo) Count() (int64, error)

Count provides a mock function with no fields

func (*DatabaseServerRepo) Create

Create provides a mock function with given fields: req

func (*DatabaseServerRepo) Delete

func (_m *DatabaseServerRepo) Delete(id uint) error

Delete provides a mock function with given fields: id

func (*DatabaseServerRepo) EXPECT

func (*DatabaseServerRepo) Get

Get provides a mock function with given fields: id

func (*DatabaseServerRepo) GetByName

func (_m *DatabaseServerRepo) GetByName(name string) (*biz.DatabaseServer, error)

GetByName provides a mock function with given fields: name

func (*DatabaseServerRepo) List

func (_m *DatabaseServerRepo) List(page uint, limit uint) ([]*biz.DatabaseServer, int64, error)

List provides a mock function with given fields: page, limit

func (*DatabaseServerRepo) Sync

func (_m *DatabaseServerRepo) Sync(id uint) error

Sync provides a mock function with given fields: id

func (*DatabaseServerRepo) Update

Update provides a mock function with given fields: req

func (*DatabaseServerRepo) UpdateRemark

UpdateRemark provides a mock function with given fields: req

type DatabaseServerRepo_ClearUsers_Call

type DatabaseServerRepo_ClearUsers_Call struct {
	*mock.Call
}

DatabaseServerRepo_ClearUsers_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ClearUsers'

func (*DatabaseServerRepo_ClearUsers_Call) Return

func (*DatabaseServerRepo_ClearUsers_Call) Run

func (*DatabaseServerRepo_ClearUsers_Call) RunAndReturn

type DatabaseServerRepo_Count_Call

type DatabaseServerRepo_Count_Call struct {
	*mock.Call
}

DatabaseServerRepo_Count_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Count'

func (*DatabaseServerRepo_Count_Call) Return

func (*DatabaseServerRepo_Count_Call) Run

func (*DatabaseServerRepo_Count_Call) RunAndReturn

type DatabaseServerRepo_Create_Call

type DatabaseServerRepo_Create_Call struct {
	*mock.Call
}

DatabaseServerRepo_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'

func (*DatabaseServerRepo_Create_Call) Return

func (*DatabaseServerRepo_Create_Call) Run

func (*DatabaseServerRepo_Create_Call) RunAndReturn

type DatabaseServerRepo_Delete_Call

type DatabaseServerRepo_Delete_Call struct {
	*mock.Call
}

DatabaseServerRepo_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'

func (*DatabaseServerRepo_Delete_Call) Return

func (*DatabaseServerRepo_Delete_Call) Run

func (*DatabaseServerRepo_Delete_Call) RunAndReturn

type DatabaseServerRepo_Expecter

type DatabaseServerRepo_Expecter struct {
	// contains filtered or unexported fields
}

func (*DatabaseServerRepo_Expecter) ClearUsers

func (_e *DatabaseServerRepo_Expecter) ClearUsers(id interface{}) *DatabaseServerRepo_ClearUsers_Call

ClearUsers is a helper method to define mock.On call

  • id uint

func (*DatabaseServerRepo_Expecter) Count

Count is a helper method to define mock.On call

func (*DatabaseServerRepo_Expecter) Create

func (_e *DatabaseServerRepo_Expecter) Create(req interface{}) *DatabaseServerRepo_Create_Call

Create is a helper method to define mock.On call

  • req *request.DatabaseServerCreate

func (*DatabaseServerRepo_Expecter) Delete

func (_e *DatabaseServerRepo_Expecter) Delete(id interface{}) *DatabaseServerRepo_Delete_Call

Delete is a helper method to define mock.On call

  • id uint

func (*DatabaseServerRepo_Expecter) Get

Get is a helper method to define mock.On call

  • id uint

func (*DatabaseServerRepo_Expecter) GetByName

func (_e *DatabaseServerRepo_Expecter) GetByName(name interface{}) *DatabaseServerRepo_GetByName_Call

GetByName is a helper method to define mock.On call

  • name string

func (*DatabaseServerRepo_Expecter) List

func (_e *DatabaseServerRepo_Expecter) List(page interface{}, limit interface{}) *DatabaseServerRepo_List_Call

List is a helper method to define mock.On call

  • page uint
  • limit uint

func (*DatabaseServerRepo_Expecter) Sync

Sync is a helper method to define mock.On call

  • id uint

func (*DatabaseServerRepo_Expecter) Update

func (_e *DatabaseServerRepo_Expecter) Update(req interface{}) *DatabaseServerRepo_Update_Call

Update is a helper method to define mock.On call

  • req *request.DatabaseServerUpdate

func (*DatabaseServerRepo_Expecter) UpdateRemark

func (_e *DatabaseServerRepo_Expecter) UpdateRemark(req interface{}) *DatabaseServerRepo_UpdateRemark_Call

UpdateRemark is a helper method to define mock.On call

  • req *request.DatabaseServerUpdateRemark

type DatabaseServerRepo_GetByName_Call

type DatabaseServerRepo_GetByName_Call struct {
	*mock.Call
}

DatabaseServerRepo_GetByName_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByName'

func (*DatabaseServerRepo_GetByName_Call) Return

func (*DatabaseServerRepo_GetByName_Call) Run

func (*DatabaseServerRepo_GetByName_Call) RunAndReturn

type DatabaseServerRepo_Get_Call

type DatabaseServerRepo_Get_Call struct {
	*mock.Call
}

DatabaseServerRepo_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'

func (*DatabaseServerRepo_Get_Call) Return

func (*DatabaseServerRepo_Get_Call) Run

func (*DatabaseServerRepo_Get_Call) RunAndReturn

type DatabaseServerRepo_List_Call

type DatabaseServerRepo_List_Call struct {
	*mock.Call
}

DatabaseServerRepo_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'

func (*DatabaseServerRepo_List_Call) Return

func (*DatabaseServerRepo_List_Call) Run

func (_c *DatabaseServerRepo_List_Call) Run(run func(page uint, limit uint)) *DatabaseServerRepo_List_Call

func (*DatabaseServerRepo_List_Call) RunAndReturn

type DatabaseServerRepo_Sync_Call

type DatabaseServerRepo_Sync_Call struct {
	*mock.Call
}

DatabaseServerRepo_Sync_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Sync'

func (*DatabaseServerRepo_Sync_Call) Return

func (*DatabaseServerRepo_Sync_Call) Run

func (*DatabaseServerRepo_Sync_Call) RunAndReturn

type DatabaseServerRepo_UpdateRemark_Call

type DatabaseServerRepo_UpdateRemark_Call struct {
	*mock.Call
}

DatabaseServerRepo_UpdateRemark_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateRemark'

func (*DatabaseServerRepo_UpdateRemark_Call) Return

func (*DatabaseServerRepo_UpdateRemark_Call) Run

func (*DatabaseServerRepo_UpdateRemark_Call) RunAndReturn

type DatabaseServerRepo_Update_Call

type DatabaseServerRepo_Update_Call struct {
	*mock.Call
}

DatabaseServerRepo_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'

func (*DatabaseServerRepo_Update_Call) Return

func (*DatabaseServerRepo_Update_Call) Run

func (*DatabaseServerRepo_Update_Call) RunAndReturn

type DatabaseUserRepo

type DatabaseUserRepo struct {
	mock.Mock
}

DatabaseUserRepo is an autogenerated mock type for the DatabaseUserRepo type

func NewDatabaseUserRepo

func NewDatabaseUserRepo(t interface {
	mock.TestingT
	Cleanup(func())
}) *DatabaseUserRepo

NewDatabaseUserRepo creates a new instance of DatabaseUserRepo. 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 (*DatabaseUserRepo) Count

func (_m *DatabaseUserRepo) Count() (int64, error)

Count provides a mock function with no fields

func (*DatabaseUserRepo) Create

Create provides a mock function with given fields: req

func (*DatabaseUserRepo) Delete

func (_m *DatabaseUserRepo) Delete(id uint) error

Delete provides a mock function with given fields: id

func (*DatabaseUserRepo) DeleteByNames

func (_m *DatabaseUserRepo) DeleteByNames(serverID uint, names []string) error

DeleteByNames provides a mock function with given fields: serverID, names

func (*DatabaseUserRepo) EXPECT

func (*DatabaseUserRepo) Get

func (_m *DatabaseUserRepo) Get(id uint) (*biz.DatabaseUser, error)

Get provides a mock function with given fields: id

func (*DatabaseUserRepo) List

func (_m *DatabaseUserRepo) List(page uint, limit uint) ([]*biz.DatabaseUser, int64, error)

List provides a mock function with given fields: page, limit

func (*DatabaseUserRepo) Update

Update provides a mock function with given fields: req

func (*DatabaseUserRepo) UpdateRemark

func (_m *DatabaseUserRepo) UpdateRemark(req *request.DatabaseUserUpdateRemark) error

UpdateRemark provides a mock function with given fields: req

type DatabaseUserRepo_Count_Call

type DatabaseUserRepo_Count_Call struct {
	*mock.Call
}

DatabaseUserRepo_Count_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Count'

func (*DatabaseUserRepo_Count_Call) Return

func (*DatabaseUserRepo_Count_Call) Run

func (*DatabaseUserRepo_Count_Call) RunAndReturn

func (_c *DatabaseUserRepo_Count_Call) RunAndReturn(run func() (int64, error)) *DatabaseUserRepo_Count_Call

type DatabaseUserRepo_Create_Call

type DatabaseUserRepo_Create_Call struct {
	*mock.Call
}

DatabaseUserRepo_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'

func (*DatabaseUserRepo_Create_Call) Return

func (*DatabaseUserRepo_Create_Call) Run

func (*DatabaseUserRepo_Create_Call) RunAndReturn

type DatabaseUserRepo_DeleteByNames_Call

type DatabaseUserRepo_DeleteByNames_Call struct {
	*mock.Call
}

DatabaseUserRepo_DeleteByNames_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteByNames'

func (*DatabaseUserRepo_DeleteByNames_Call) Return

func (*DatabaseUserRepo_DeleteByNames_Call) Run

func (*DatabaseUserRepo_DeleteByNames_Call) RunAndReturn

type DatabaseUserRepo_Delete_Call

type DatabaseUserRepo_Delete_Call struct {
	*mock.Call
}

DatabaseUserRepo_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'

func (*DatabaseUserRepo_Delete_Call) Return

func (*DatabaseUserRepo_Delete_Call) Run

func (*DatabaseUserRepo_Delete_Call) RunAndReturn

type DatabaseUserRepo_Expecter

type DatabaseUserRepo_Expecter struct {
	// contains filtered or unexported fields
}

func (*DatabaseUserRepo_Expecter) Count

Count is a helper method to define mock.On call

func (*DatabaseUserRepo_Expecter) Create

func (_e *DatabaseUserRepo_Expecter) Create(req interface{}) *DatabaseUserRepo_Create_Call

Create is a helper method to define mock.On call

  • req *request.DatabaseUserCreate

func (*DatabaseUserRepo_Expecter) Delete

func (_e *DatabaseUserRepo_Expecter) Delete(id interface{}) *DatabaseUserRepo_Delete_Call

Delete is a helper method to define mock.On call

  • id uint

func (*DatabaseUserRepo_Expecter) DeleteByNames

func (_e *DatabaseUserRepo_Expecter) DeleteByNames(serverID interface{}, names interface{}) *DatabaseUserRepo_DeleteByNames_Call

DeleteByNames is a helper method to define mock.On call

  • serverID uint
  • names []string

func (*DatabaseUserRepo_Expecter) Get

func (_e *DatabaseUserRepo_Expecter) Get(id interface{}) *DatabaseUserRepo_Get_Call

Get is a helper method to define mock.On call

  • id uint

func (*DatabaseUserRepo_Expecter) List

func (_e *DatabaseUserRepo_Expecter) List(page interface{}, limit interface{}) *DatabaseUserRepo_List_Call

List is a helper method to define mock.On call

  • page uint
  • limit uint

func (*DatabaseUserRepo_Expecter) Update

func (_e *DatabaseUserRepo_Expecter) Update(req interface{}) *DatabaseUserRepo_Update_Call

Update is a helper method to define mock.On call

  • req *request.DatabaseUserUpdate

func (*DatabaseUserRepo_Expecter) UpdateRemark

func (_e *DatabaseUserRepo_Expecter) UpdateRemark(req interface{}) *DatabaseUserRepo_UpdateRemark_Call

UpdateRemark is a helper method to define mock.On call

  • req *request.DatabaseUserUpdateRemark

type DatabaseUserRepo_Get_Call

type DatabaseUserRepo_Get_Call struct {
	*mock.Call
}

DatabaseUserRepo_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'

func (*DatabaseUserRepo_Get_Call) Return

func (*DatabaseUserRepo_Get_Call) Run

func (*DatabaseUserRepo_Get_Call) RunAndReturn

type DatabaseUserRepo_List_Call

type DatabaseUserRepo_List_Call struct {
	*mock.Call
}

DatabaseUserRepo_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'

func (*DatabaseUserRepo_List_Call) Return

func (*DatabaseUserRepo_List_Call) Run

func (_c *DatabaseUserRepo_List_Call) Run(run func(page uint, limit uint)) *DatabaseUserRepo_List_Call

func (*DatabaseUserRepo_List_Call) RunAndReturn

type DatabaseUserRepo_UpdateRemark_Call

type DatabaseUserRepo_UpdateRemark_Call struct {
	*mock.Call
}

DatabaseUserRepo_UpdateRemark_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateRemark'

func (*DatabaseUserRepo_UpdateRemark_Call) Return

func (*DatabaseUserRepo_UpdateRemark_Call) Run

func (*DatabaseUserRepo_UpdateRemark_Call) RunAndReturn

type DatabaseUserRepo_Update_Call

type DatabaseUserRepo_Update_Call struct {
	*mock.Call
}

DatabaseUserRepo_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'

func (*DatabaseUserRepo_Update_Call) Return

func (*DatabaseUserRepo_Update_Call) Run

func (*DatabaseUserRepo_Update_Call) RunAndReturn

type MonitorRepo

type MonitorRepo struct {
	mock.Mock
}

MonitorRepo is an autogenerated mock type for the MonitorRepo type

func NewMonitorRepo

func NewMonitorRepo(t interface {
	mock.TestingT
	Cleanup(func())
}) *MonitorRepo

NewMonitorRepo creates a new instance of MonitorRepo. 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 (*MonitorRepo) Clear

func (_m *MonitorRepo) Clear() error

Clear provides a mock function with no fields

func (*MonitorRepo) EXPECT

func (_m *MonitorRepo) EXPECT() *MonitorRepo_Expecter

func (*MonitorRepo) GetSetting

func (_m *MonitorRepo) GetSetting() (*request.MonitorSetting, error)

GetSetting provides a mock function with no fields

func (*MonitorRepo) List

func (_m *MonitorRepo) List(start time.Time, end time.Time) ([]*biz.Monitor, error)

List provides a mock function with given fields: start, end

func (*MonitorRepo) UpdateSetting

func (_m *MonitorRepo) UpdateSetting(setting *request.MonitorSetting) error

UpdateSetting provides a mock function with given fields: setting

type MonitorRepo_Clear_Call

type MonitorRepo_Clear_Call struct {
	*mock.Call
}

MonitorRepo_Clear_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Clear'

func (*MonitorRepo_Clear_Call) Return

func (*MonitorRepo_Clear_Call) Run

func (_c *MonitorRepo_Clear_Call) Run(run func()) *MonitorRepo_Clear_Call

func (*MonitorRepo_Clear_Call) RunAndReturn

func (_c *MonitorRepo_Clear_Call) RunAndReturn(run func() error) *MonitorRepo_Clear_Call

type MonitorRepo_Expecter

type MonitorRepo_Expecter struct {
	// contains filtered or unexported fields
}

func (*MonitorRepo_Expecter) Clear

Clear is a helper method to define mock.On call

func (*MonitorRepo_Expecter) GetSetting

GetSetting is a helper method to define mock.On call

func (*MonitorRepo_Expecter) List

func (_e *MonitorRepo_Expecter) List(start interface{}, end interface{}) *MonitorRepo_List_Call

List is a helper method to define mock.On call

  • start time.Time
  • end time.Time

func (*MonitorRepo_Expecter) UpdateSetting

func (_e *MonitorRepo_Expecter) UpdateSetting(setting interface{}) *MonitorRepo_UpdateSetting_Call

UpdateSetting is a helper method to define mock.On call

  • setting *request.MonitorSetting

type MonitorRepo_GetSetting_Call

type MonitorRepo_GetSetting_Call struct {
	*mock.Call
}

MonitorRepo_GetSetting_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetSetting'

func (*MonitorRepo_GetSetting_Call) Return

func (*MonitorRepo_GetSetting_Call) Run

func (*MonitorRepo_GetSetting_Call) RunAndReturn

type MonitorRepo_List_Call

type MonitorRepo_List_Call struct {
	*mock.Call
}

MonitorRepo_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'

func (*MonitorRepo_List_Call) Return

func (_c *MonitorRepo_List_Call) Return(_a0 []*biz.Monitor, _a1 error) *MonitorRepo_List_Call

func (*MonitorRepo_List_Call) Run

func (_c *MonitorRepo_List_Call) Run(run func(start time.Time, end time.Time)) *MonitorRepo_List_Call

func (*MonitorRepo_List_Call) RunAndReturn

func (_c *MonitorRepo_List_Call) RunAndReturn(run func(time.Time, time.Time) ([]*biz.Monitor, error)) *MonitorRepo_List_Call

type MonitorRepo_UpdateSetting_Call

type MonitorRepo_UpdateSetting_Call struct {
	*mock.Call
}

MonitorRepo_UpdateSetting_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateSetting'

func (*MonitorRepo_UpdateSetting_Call) Return

func (*MonitorRepo_UpdateSetting_Call) Run

func (*MonitorRepo_UpdateSetting_Call) RunAndReturn

type SSHRepo

type SSHRepo struct {
	mock.Mock
}

SSHRepo is an autogenerated mock type for the SSHRepo type

func NewSSHRepo

func NewSSHRepo(t interface {
	mock.TestingT
	Cleanup(func())
}) *SSHRepo

NewSSHRepo creates a new instance of SSHRepo. 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 (*SSHRepo) Create

func (_m *SSHRepo) Create(req *request.SSHCreate) error

Create provides a mock function with given fields: req

func (*SSHRepo) Delete

func (_m *SSHRepo) Delete(id uint) error

Delete provides a mock function with given fields: id

func (*SSHRepo) EXPECT

func (_m *SSHRepo) EXPECT() *SSHRepo_Expecter

func (*SSHRepo) Get

func (_m *SSHRepo) Get(id uint) (*biz.SSH, error)

Get provides a mock function with given fields: id

func (*SSHRepo) List

func (_m *SSHRepo) List(page uint, limit uint) ([]*biz.SSH, int64, error)

List provides a mock function with given fields: page, limit

func (*SSHRepo) Update

func (_m *SSHRepo) Update(req *request.SSHUpdate) error

Update provides a mock function with given fields: req

type SSHRepo_Create_Call

type SSHRepo_Create_Call struct {
	*mock.Call
}

SSHRepo_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'

func (*SSHRepo_Create_Call) Return

func (*SSHRepo_Create_Call) Run

func (_c *SSHRepo_Create_Call) Run(run func(req *request.SSHCreate)) *SSHRepo_Create_Call

func (*SSHRepo_Create_Call) RunAndReturn

func (_c *SSHRepo_Create_Call) RunAndReturn(run func(*request.SSHCreate) error) *SSHRepo_Create_Call

type SSHRepo_Delete_Call

type SSHRepo_Delete_Call struct {
	*mock.Call
}

SSHRepo_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'

func (*SSHRepo_Delete_Call) Return

func (*SSHRepo_Delete_Call) Run

func (_c *SSHRepo_Delete_Call) Run(run func(id uint)) *SSHRepo_Delete_Call

func (*SSHRepo_Delete_Call) RunAndReturn

func (_c *SSHRepo_Delete_Call) RunAndReturn(run func(uint) error) *SSHRepo_Delete_Call

type SSHRepo_Expecter

type SSHRepo_Expecter struct {
	// contains filtered or unexported fields
}

func (*SSHRepo_Expecter) Create

func (_e *SSHRepo_Expecter) Create(req interface{}) *SSHRepo_Create_Call

Create is a helper method to define mock.On call

  • req *request.SSHCreate

func (*SSHRepo_Expecter) Delete

func (_e *SSHRepo_Expecter) Delete(id interface{}) *SSHRepo_Delete_Call

Delete is a helper method to define mock.On call

  • id uint

func (*SSHRepo_Expecter) Get

func (_e *SSHRepo_Expecter) Get(id interface{}) *SSHRepo_Get_Call

Get is a helper method to define mock.On call

  • id uint

func (*SSHRepo_Expecter) List

func (_e *SSHRepo_Expecter) List(page interface{}, limit interface{}) *SSHRepo_List_Call

List is a helper method to define mock.On call

  • page uint
  • limit uint

func (*SSHRepo_Expecter) Update

func (_e *SSHRepo_Expecter) Update(req interface{}) *SSHRepo_Update_Call

Update is a helper method to define mock.On call

  • req *request.SSHUpdate

type SSHRepo_Get_Call

type SSHRepo_Get_Call struct {
	*mock.Call
}

SSHRepo_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'

func (*SSHRepo_Get_Call) Return

func (_c *SSHRepo_Get_Call) Return(_a0 *biz.SSH, _a1 error) *SSHRepo_Get_Call

func (*SSHRepo_Get_Call) Run

func (_c *SSHRepo_Get_Call) Run(run func(id uint)) *SSHRepo_Get_Call

func (*SSHRepo_Get_Call) RunAndReturn

func (_c *SSHRepo_Get_Call) RunAndReturn(run func(uint) (*biz.SSH, error)) *SSHRepo_Get_Call

type SSHRepo_List_Call

type SSHRepo_List_Call struct {
	*mock.Call
}

SSHRepo_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'

func (*SSHRepo_List_Call) Return

func (_c *SSHRepo_List_Call) Return(_a0 []*biz.SSH, _a1 int64, _a2 error) *SSHRepo_List_Call

func (*SSHRepo_List_Call) Run

func (_c *SSHRepo_List_Call) Run(run func(page uint, limit uint)) *SSHRepo_List_Call

func (*SSHRepo_List_Call) RunAndReturn

func (_c *SSHRepo_List_Call) RunAndReturn(run func(uint, uint) ([]*biz.SSH, int64, error)) *SSHRepo_List_Call

type SSHRepo_Update_Call

type SSHRepo_Update_Call struct {
	*mock.Call
}

SSHRepo_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'

func (*SSHRepo_Update_Call) Return

func (*SSHRepo_Update_Call) Run

func (_c *SSHRepo_Update_Call) Run(run func(req *request.SSHUpdate)) *SSHRepo_Update_Call

func (*SSHRepo_Update_Call) RunAndReturn

func (_c *SSHRepo_Update_Call) RunAndReturn(run func(*request.SSHUpdate) error) *SSHRepo_Update_Call

type SafeRepo

type SafeRepo struct {
	mock.Mock
}

SafeRepo is an autogenerated mock type for the SafeRepo type

func NewSafeRepo

func NewSafeRepo(t interface {
	mock.TestingT
	Cleanup(func())
}) *SafeRepo

NewSafeRepo creates a new instance of SafeRepo. 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 (*SafeRepo) EXPECT

func (_m *SafeRepo) EXPECT() *SafeRepo_Expecter

func (*SafeRepo) GetPingStatus

func (_m *SafeRepo) GetPingStatus() (bool, error)

GetPingStatus provides a mock function with no fields

func (*SafeRepo) GetSSH

func (_m *SafeRepo) GetSSH() (uint, bool, error)

GetSSH provides a mock function with no fields

func (*SafeRepo) UpdatePingStatus

func (_m *SafeRepo) UpdatePingStatus(status bool) error

UpdatePingStatus provides a mock function with given fields: status

func (*SafeRepo) UpdateSSH

func (_m *SafeRepo) UpdateSSH(port uint, status bool) error

UpdateSSH provides a mock function with given fields: port, status

type SafeRepo_Expecter

type SafeRepo_Expecter struct {
	// contains filtered or unexported fields
}

func (*SafeRepo_Expecter) GetPingStatus

func (_e *SafeRepo_Expecter) GetPingStatus() *SafeRepo_GetPingStatus_Call

GetPingStatus is a helper method to define mock.On call

func (*SafeRepo_Expecter) GetSSH

GetSSH is a helper method to define mock.On call

func (*SafeRepo_Expecter) UpdatePingStatus

func (_e *SafeRepo_Expecter) UpdatePingStatus(status interface{}) *SafeRepo_UpdatePingStatus_Call

UpdatePingStatus is a helper method to define mock.On call

  • status bool

func (*SafeRepo_Expecter) UpdateSSH

func (_e *SafeRepo_Expecter) UpdateSSH(port interface{}, status interface{}) *SafeRepo_UpdateSSH_Call

UpdateSSH is a helper method to define mock.On call

  • port uint
  • status bool

type SafeRepo_GetPingStatus_Call

type SafeRepo_GetPingStatus_Call struct {
	*mock.Call
}

SafeRepo_GetPingStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPingStatus'

func (*SafeRepo_GetPingStatus_Call) Return

func (*SafeRepo_GetPingStatus_Call) Run

func (*SafeRepo_GetPingStatus_Call) RunAndReturn

func (_c *SafeRepo_GetPingStatus_Call) RunAndReturn(run func() (bool, error)) *SafeRepo_GetPingStatus_Call

type SafeRepo_GetSSH_Call

type SafeRepo_GetSSH_Call struct {
	*mock.Call
}

SafeRepo_GetSSH_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetSSH'

func (*SafeRepo_GetSSH_Call) Return

func (_c *SafeRepo_GetSSH_Call) Return(_a0 uint, _a1 bool, _a2 error) *SafeRepo_GetSSH_Call

func (*SafeRepo_GetSSH_Call) Run

func (_c *SafeRepo_GetSSH_Call) Run(run func()) *SafeRepo_GetSSH_Call

func (*SafeRepo_GetSSH_Call) RunAndReturn

func (_c *SafeRepo_GetSSH_Call) RunAndReturn(run func() (uint, bool, error)) *SafeRepo_GetSSH_Call

type SafeRepo_UpdatePingStatus_Call

type SafeRepo_UpdatePingStatus_Call struct {
	*mock.Call
}

SafeRepo_UpdatePingStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdatePingStatus'

func (*SafeRepo_UpdatePingStatus_Call) Return

func (*SafeRepo_UpdatePingStatus_Call) Run

func (*SafeRepo_UpdatePingStatus_Call) RunAndReturn

type SafeRepo_UpdateSSH_Call

type SafeRepo_UpdateSSH_Call struct {
	*mock.Call
}

SafeRepo_UpdateSSH_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateSSH'

func (*SafeRepo_UpdateSSH_Call) Return

func (*SafeRepo_UpdateSSH_Call) Run

func (_c *SafeRepo_UpdateSSH_Call) Run(run func(port uint, status bool)) *SafeRepo_UpdateSSH_Call

func (*SafeRepo_UpdateSSH_Call) RunAndReturn

func (_c *SafeRepo_UpdateSSH_Call) RunAndReturn(run func(uint, bool) error) *SafeRepo_UpdateSSH_Call

type SettingRepo

type SettingRepo struct {
	mock.Mock
}

SettingRepo is an autogenerated mock type for the SettingRepo type

func NewSettingRepo

func NewSettingRepo(t interface {
	mock.TestingT
	Cleanup(func())
}) *SettingRepo

NewSettingRepo creates a new instance of SettingRepo. 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 (*SettingRepo) Delete

func (_m *SettingRepo) Delete(key biz.SettingKey) error

Delete provides a mock function with given fields: key

func (*SettingRepo) EXPECT

func (_m *SettingRepo) EXPECT() *SettingRepo_Expecter

func (*SettingRepo) Get

func (_m *SettingRepo) Get(key biz.SettingKey, defaultValue ...string) (string, error)

Get provides a mock function with given fields: key, defaultValue

func (*SettingRepo) GetBool

func (_m *SettingRepo) GetBool(key biz.SettingKey, defaultValue ...bool) (bool, error)

GetBool provides a mock function with given fields: key, defaultValue

func (*SettingRepo) GetPanelSetting

func (_m *SettingRepo) GetPanelSetting(ctx context.Context) (*request.PanelSetting, error)

GetPanelSetting provides a mock function with given fields: ctx

func (*SettingRepo) Set

func (_m *SettingRepo) Set(key biz.SettingKey, value string) error

Set provides a mock function with given fields: key, value

func (*SettingRepo) UpdatePanelSetting

func (_m *SettingRepo) UpdatePanelSetting(ctx context.Context, setting *request.PanelSetting) (bool, error)

UpdatePanelSetting provides a mock function with given fields: ctx, setting

type SettingRepo_Delete_Call

type SettingRepo_Delete_Call struct {
	*mock.Call
}

SettingRepo_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'

func (*SettingRepo_Delete_Call) Return

func (*SettingRepo_Delete_Call) Run

func (*SettingRepo_Delete_Call) RunAndReturn

type SettingRepo_Expecter

type SettingRepo_Expecter struct {
	// contains filtered or unexported fields
}

func (*SettingRepo_Expecter) Delete

func (_e *SettingRepo_Expecter) Delete(key interface{}) *SettingRepo_Delete_Call

Delete is a helper method to define mock.On call

  • key biz.SettingKey

func (*SettingRepo_Expecter) Get

func (_e *SettingRepo_Expecter) Get(key interface{}, defaultValue ...interface{}) *SettingRepo_Get_Call

Get is a helper method to define mock.On call

  • key biz.SettingKey
  • defaultValue ...string

func (*SettingRepo_Expecter) GetBool

func (_e *SettingRepo_Expecter) GetBool(key interface{}, defaultValue ...interface{}) *SettingRepo_GetBool_Call

GetBool is a helper method to define mock.On call

  • key biz.SettingKey
  • defaultValue ...bool

func (*SettingRepo_Expecter) GetPanelSetting

func (_e *SettingRepo_Expecter) GetPanelSetting(ctx interface{}) *SettingRepo_GetPanelSetting_Call

GetPanelSetting is a helper method to define mock.On call

  • ctx context.Context

func (*SettingRepo_Expecter) Set

func (_e *SettingRepo_Expecter) Set(key interface{}, value interface{}) *SettingRepo_Set_Call

Set is a helper method to define mock.On call

  • key biz.SettingKey
  • value string

func (*SettingRepo_Expecter) UpdatePanelSetting

func (_e *SettingRepo_Expecter) UpdatePanelSetting(ctx interface{}, setting interface{}) *SettingRepo_UpdatePanelSetting_Call

UpdatePanelSetting is a helper method to define mock.On call

  • ctx context.Context
  • setting *request.PanelSetting

type SettingRepo_GetBool_Call

type SettingRepo_GetBool_Call struct {
	*mock.Call
}

SettingRepo_GetBool_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetBool'

func (*SettingRepo_GetBool_Call) Return

func (*SettingRepo_GetBool_Call) Run

func (_c *SettingRepo_GetBool_Call) Run(run func(key biz.SettingKey, defaultValue ...bool)) *SettingRepo_GetBool_Call

func (*SettingRepo_GetBool_Call) RunAndReturn

func (_c *SettingRepo_GetBool_Call) RunAndReturn(run func(biz.SettingKey, ...bool) (bool, error)) *SettingRepo_GetBool_Call

type SettingRepo_GetPanelSetting_Call

type SettingRepo_GetPanelSetting_Call struct {
	*mock.Call
}

SettingRepo_GetPanelSetting_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPanelSetting'

func (*SettingRepo_GetPanelSetting_Call) Return

func (*SettingRepo_GetPanelSetting_Call) Run

func (*SettingRepo_GetPanelSetting_Call) RunAndReturn

type SettingRepo_Get_Call

type SettingRepo_Get_Call struct {
	*mock.Call
}

SettingRepo_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'

func (*SettingRepo_Get_Call) Return

func (_c *SettingRepo_Get_Call) Return(_a0 string, _a1 error) *SettingRepo_Get_Call

func (*SettingRepo_Get_Call) Run

func (_c *SettingRepo_Get_Call) Run(run func(key biz.SettingKey, defaultValue ...string)) *SettingRepo_Get_Call

func (*SettingRepo_Get_Call) RunAndReturn

func (_c *SettingRepo_Get_Call) RunAndReturn(run func(biz.SettingKey, ...string) (string, error)) *SettingRepo_Get_Call

type SettingRepo_Set_Call

type SettingRepo_Set_Call struct {
	*mock.Call
}

SettingRepo_Set_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Set'

func (*SettingRepo_Set_Call) Return

func (*SettingRepo_Set_Call) Run

func (_c *SettingRepo_Set_Call) Run(run func(key biz.SettingKey, value string)) *SettingRepo_Set_Call

func (*SettingRepo_Set_Call) RunAndReturn

func (_c *SettingRepo_Set_Call) RunAndReturn(run func(biz.SettingKey, string) error) *SettingRepo_Set_Call

type SettingRepo_UpdatePanelSetting_Call

type SettingRepo_UpdatePanelSetting_Call struct {
	*mock.Call
}

SettingRepo_UpdatePanelSetting_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdatePanelSetting'

func (*SettingRepo_UpdatePanelSetting_Call) Return

func (*SettingRepo_UpdatePanelSetting_Call) Run

func (*SettingRepo_UpdatePanelSetting_Call) RunAndReturn

type TaskRepo

type TaskRepo struct {
	mock.Mock
}

TaskRepo is an autogenerated mock type for the TaskRepo type

func NewTaskRepo

func NewTaskRepo(t interface {
	mock.TestingT
	Cleanup(func())
}) *TaskRepo

NewTaskRepo creates a new instance of TaskRepo. 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 (*TaskRepo) Delete

func (_m *TaskRepo) Delete(id uint) error

Delete provides a mock function with given fields: id

func (*TaskRepo) EXPECT

func (_m *TaskRepo) EXPECT() *TaskRepo_Expecter

func (*TaskRepo) Get

func (_m *TaskRepo) Get(id uint) (*biz.Task, error)

Get provides a mock function with given fields: id

func (*TaskRepo) HasRunningTask

func (_m *TaskRepo) HasRunningTask() bool

HasRunningTask provides a mock function with no fields

func (*TaskRepo) List

func (_m *TaskRepo) List(page uint, limit uint) ([]*biz.Task, int64, error)

List provides a mock function with given fields: page, limit

func (*TaskRepo) Push

func (_m *TaskRepo) Push(task *biz.Task) error

Push provides a mock function with given fields: task

func (*TaskRepo) UpdateStatus

func (_m *TaskRepo) UpdateStatus(id uint, status biz.TaskStatus) error

UpdateStatus provides a mock function with given fields: id, status

type TaskRepo_Delete_Call

type TaskRepo_Delete_Call struct {
	*mock.Call
}

TaskRepo_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'

func (*TaskRepo_Delete_Call) Return

func (*TaskRepo_Delete_Call) Run

func (_c *TaskRepo_Delete_Call) Run(run func(id uint)) *TaskRepo_Delete_Call

func (*TaskRepo_Delete_Call) RunAndReturn

func (_c *TaskRepo_Delete_Call) RunAndReturn(run func(uint) error) *TaskRepo_Delete_Call

type TaskRepo_Expecter

type TaskRepo_Expecter struct {
	// contains filtered or unexported fields
}

func (*TaskRepo_Expecter) Delete

func (_e *TaskRepo_Expecter) Delete(id interface{}) *TaskRepo_Delete_Call

Delete is a helper method to define mock.On call

  • id uint

func (*TaskRepo_Expecter) Get

func (_e *TaskRepo_Expecter) Get(id interface{}) *TaskRepo_Get_Call

Get is a helper method to define mock.On call

  • id uint

func (*TaskRepo_Expecter) HasRunningTask

func (_e *TaskRepo_Expecter) HasRunningTask() *TaskRepo_HasRunningTask_Call

HasRunningTask is a helper method to define mock.On call

func (*TaskRepo_Expecter) List

func (_e *TaskRepo_Expecter) List(page interface{}, limit interface{}) *TaskRepo_List_Call

List is a helper method to define mock.On call

  • page uint
  • limit uint

func (*TaskRepo_Expecter) Push

func (_e *TaskRepo_Expecter) Push(task interface{}) *TaskRepo_Push_Call

Push is a helper method to define mock.On call

  • task *biz.Task

func (*TaskRepo_Expecter) UpdateStatus

func (_e *TaskRepo_Expecter) UpdateStatus(id interface{}, status interface{}) *TaskRepo_UpdateStatus_Call

UpdateStatus is a helper method to define mock.On call

  • id uint
  • status biz.TaskStatus

type TaskRepo_Get_Call

type TaskRepo_Get_Call struct {
	*mock.Call
}

TaskRepo_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'

func (*TaskRepo_Get_Call) Return

func (_c *TaskRepo_Get_Call) Return(_a0 *biz.Task, _a1 error) *TaskRepo_Get_Call

func (*TaskRepo_Get_Call) Run

func (_c *TaskRepo_Get_Call) Run(run func(id uint)) *TaskRepo_Get_Call

func (*TaskRepo_Get_Call) RunAndReturn

func (_c *TaskRepo_Get_Call) RunAndReturn(run func(uint) (*biz.Task, error)) *TaskRepo_Get_Call

type TaskRepo_HasRunningTask_Call

type TaskRepo_HasRunningTask_Call struct {
	*mock.Call
}

TaskRepo_HasRunningTask_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HasRunningTask'

func (*TaskRepo_HasRunningTask_Call) Return

func (*TaskRepo_HasRunningTask_Call) Run

func (*TaskRepo_HasRunningTask_Call) RunAndReturn

func (_c *TaskRepo_HasRunningTask_Call) RunAndReturn(run func() bool) *TaskRepo_HasRunningTask_Call

type TaskRepo_List_Call

type TaskRepo_List_Call struct {
	*mock.Call
}

TaskRepo_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'

func (*TaskRepo_List_Call) Return

func (_c *TaskRepo_List_Call) Return(_a0 []*biz.Task, _a1 int64, _a2 error) *TaskRepo_List_Call

func (*TaskRepo_List_Call) Run

func (_c *TaskRepo_List_Call) Run(run func(page uint, limit uint)) *TaskRepo_List_Call

func (*TaskRepo_List_Call) RunAndReturn

func (_c *TaskRepo_List_Call) RunAndReturn(run func(uint, uint) ([]*biz.Task, int64, error)) *TaskRepo_List_Call

type TaskRepo_Push_Call

type TaskRepo_Push_Call struct {
	*mock.Call
}

TaskRepo_Push_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Push'

func (*TaskRepo_Push_Call) Return

func (_c *TaskRepo_Push_Call) Return(_a0 error) *TaskRepo_Push_Call

func (*TaskRepo_Push_Call) Run

func (_c *TaskRepo_Push_Call) Run(run func(task *biz.Task)) *TaskRepo_Push_Call

func (*TaskRepo_Push_Call) RunAndReturn

func (_c *TaskRepo_Push_Call) RunAndReturn(run func(*biz.Task) error) *TaskRepo_Push_Call

type TaskRepo_UpdateStatus_Call

type TaskRepo_UpdateStatus_Call struct {
	*mock.Call
}

TaskRepo_UpdateStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateStatus'

func (*TaskRepo_UpdateStatus_Call) Return

func (*TaskRepo_UpdateStatus_Call) Run

func (*TaskRepo_UpdateStatus_Call) RunAndReturn

type UserRepo

type UserRepo struct {
	mock.Mock
}

UserRepo is an autogenerated mock type for the UserRepo type

func NewUserRepo

func NewUserRepo(t interface {
	mock.TestingT
	Cleanup(func())
}) *UserRepo

NewUserRepo creates a new instance of UserRepo. 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 (*UserRepo) CheckPassword

func (_m *UserRepo) CheckPassword(username string, password string) (*biz.User, error)

CheckPassword provides a mock function with given fields: username, password

func (*UserRepo) Create

func (_m *UserRepo) Create(username string, password string) (*biz.User, error)

Create provides a mock function with given fields: username, password

func (*UserRepo) EXPECT

func (_m *UserRepo) EXPECT() *UserRepo_Expecter

func (*UserRepo) Get

func (_m *UserRepo) Get(id uint) (*biz.User, error)

Get provides a mock function with given fields: id

func (*UserRepo) Save

func (_m *UserRepo) Save(user *biz.User) error

Save provides a mock function with given fields: user

type UserRepo_CheckPassword_Call

type UserRepo_CheckPassword_Call struct {
	*mock.Call
}

UserRepo_CheckPassword_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CheckPassword'

func (*UserRepo_CheckPassword_Call) Return

func (*UserRepo_CheckPassword_Call) Run

func (_c *UserRepo_CheckPassword_Call) Run(run func(username string, password string)) *UserRepo_CheckPassword_Call

func (*UserRepo_CheckPassword_Call) RunAndReturn

type UserRepo_Create_Call

type UserRepo_Create_Call struct {
	*mock.Call
}

UserRepo_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'

func (*UserRepo_Create_Call) Return

func (_c *UserRepo_Create_Call) Return(_a0 *biz.User, _a1 error) *UserRepo_Create_Call

func (*UserRepo_Create_Call) Run

func (_c *UserRepo_Create_Call) Run(run func(username string, password string)) *UserRepo_Create_Call

func (*UserRepo_Create_Call) RunAndReturn

func (_c *UserRepo_Create_Call) RunAndReturn(run func(string, string) (*biz.User, error)) *UserRepo_Create_Call

type UserRepo_Expecter

type UserRepo_Expecter struct {
	// contains filtered or unexported fields
}

func (*UserRepo_Expecter) CheckPassword

func (_e *UserRepo_Expecter) CheckPassword(username interface{}, password interface{}) *UserRepo_CheckPassword_Call

CheckPassword is a helper method to define mock.On call

  • username string
  • password string

func (*UserRepo_Expecter) Create

func (_e *UserRepo_Expecter) Create(username interface{}, password interface{}) *UserRepo_Create_Call

Create is a helper method to define mock.On call

  • username string
  • password string

func (*UserRepo_Expecter) Get

func (_e *UserRepo_Expecter) Get(id interface{}) *UserRepo_Get_Call

Get is a helper method to define mock.On call

  • id uint

func (*UserRepo_Expecter) Save

func (_e *UserRepo_Expecter) Save(user interface{}) *UserRepo_Save_Call

Save is a helper method to define mock.On call

  • user *biz.User

type UserRepo_Get_Call

type UserRepo_Get_Call struct {
	*mock.Call
}

UserRepo_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'

func (*UserRepo_Get_Call) Return

func (_c *UserRepo_Get_Call) Return(_a0 *biz.User, _a1 error) *UserRepo_Get_Call

func (*UserRepo_Get_Call) Run

func (_c *UserRepo_Get_Call) Run(run func(id uint)) *UserRepo_Get_Call

func (*UserRepo_Get_Call) RunAndReturn

func (_c *UserRepo_Get_Call) RunAndReturn(run func(uint) (*biz.User, error)) *UserRepo_Get_Call

type UserRepo_Save_Call

type UserRepo_Save_Call struct {
	*mock.Call
}

UserRepo_Save_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Save'

func (*UserRepo_Save_Call) Return

func (_c *UserRepo_Save_Call) Return(_a0 error) *UserRepo_Save_Call

func (*UserRepo_Save_Call) Run

func (_c *UserRepo_Save_Call) Run(run func(user *biz.User)) *UserRepo_Save_Call

func (*UserRepo_Save_Call) RunAndReturn

func (_c *UserRepo_Save_Call) RunAndReturn(run func(*biz.User) error) *UserRepo_Save_Call

type WebsiteRepo

type WebsiteRepo struct {
	mock.Mock
}

WebsiteRepo is an autogenerated mock type for the WebsiteRepo type

func NewWebsiteRepo

func NewWebsiteRepo(t interface {
	mock.TestingT
	Cleanup(func())
}) *WebsiteRepo

NewWebsiteRepo creates a new instance of WebsiteRepo. 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 (*WebsiteRepo) ClearLog

func (_m *WebsiteRepo) ClearLog(id uint) error

ClearLog provides a mock function with given fields: id

func (*WebsiteRepo) Count

func (_m *WebsiteRepo) Count() (int64, error)

Count provides a mock function with no fields

func (*WebsiteRepo) Create

func (_m *WebsiteRepo) Create(req *request.WebsiteCreate) (*biz.Website, error)

Create provides a mock function with given fields: req

func (*WebsiteRepo) Delete

func (_m *WebsiteRepo) Delete(req *request.WebsiteDelete) error

Delete provides a mock function with given fields: req

func (*WebsiteRepo) EXPECT

func (_m *WebsiteRepo) EXPECT() *WebsiteRepo_Expecter

func (*WebsiteRepo) Get

func (_m *WebsiteRepo) Get(id uint) (*types.WebsiteSetting, error)

Get provides a mock function with given fields: id

func (*WebsiteRepo) GetByName

func (_m *WebsiteRepo) GetByName(name string) (*types.WebsiteSetting, error)

GetByName provides a mock function with given fields: name

func (*WebsiteRepo) GetRewrites

func (_m *WebsiteRepo) GetRewrites() (map[string]string, error)

GetRewrites provides a mock function with no fields

func (*WebsiteRepo) List

func (_m *WebsiteRepo) List(page uint, limit uint) ([]*biz.Website, int64, error)

List provides a mock function with given fields: page, limit

func (*WebsiteRepo) ObtainCert

func (_m *WebsiteRepo) ObtainCert(ctx context.Context, id uint) error

ObtainCert provides a mock function with given fields: ctx, id

func (*WebsiteRepo) ResetConfig

func (_m *WebsiteRepo) ResetConfig(id uint) error

ResetConfig provides a mock function with given fields: id

func (*WebsiteRepo) Update

func (_m *WebsiteRepo) Update(req *request.WebsiteUpdate) error

Update provides a mock function with given fields: req

func (*WebsiteRepo) UpdateDefaultConfig

func (_m *WebsiteRepo) UpdateDefaultConfig(req *request.WebsiteDefaultConfig) error

UpdateDefaultConfig provides a mock function with given fields: req

func (*WebsiteRepo) UpdateRemark

func (_m *WebsiteRepo) UpdateRemark(id uint, remark string) error

UpdateRemark provides a mock function with given fields: id, remark

func (*WebsiteRepo) UpdateStatus

func (_m *WebsiteRepo) UpdateStatus(id uint, status bool) error

UpdateStatus provides a mock function with given fields: id, status

type WebsiteRepo_ClearLog_Call

type WebsiteRepo_ClearLog_Call struct {
	*mock.Call
}

WebsiteRepo_ClearLog_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ClearLog'

func (*WebsiteRepo_ClearLog_Call) Return

func (*WebsiteRepo_ClearLog_Call) Run

func (*WebsiteRepo_ClearLog_Call) RunAndReturn

func (_c *WebsiteRepo_ClearLog_Call) RunAndReturn(run func(uint) error) *WebsiteRepo_ClearLog_Call

type WebsiteRepo_Count_Call

type WebsiteRepo_Count_Call struct {
	*mock.Call
}

WebsiteRepo_Count_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Count'

func (*WebsiteRepo_Count_Call) Return

func (*WebsiteRepo_Count_Call) Run

func (_c *WebsiteRepo_Count_Call) Run(run func()) *WebsiteRepo_Count_Call

func (*WebsiteRepo_Count_Call) RunAndReturn

func (_c *WebsiteRepo_Count_Call) RunAndReturn(run func() (int64, error)) *WebsiteRepo_Count_Call

type WebsiteRepo_Create_Call

type WebsiteRepo_Create_Call struct {
	*mock.Call
}

WebsiteRepo_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'

func (*WebsiteRepo_Create_Call) Return

func (*WebsiteRepo_Create_Call) Run

func (*WebsiteRepo_Create_Call) RunAndReturn

type WebsiteRepo_Delete_Call

type WebsiteRepo_Delete_Call struct {
	*mock.Call
}

WebsiteRepo_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'

func (*WebsiteRepo_Delete_Call) Return

func (*WebsiteRepo_Delete_Call) Run

func (*WebsiteRepo_Delete_Call) RunAndReturn

type WebsiteRepo_Expecter

type WebsiteRepo_Expecter struct {
	// contains filtered or unexported fields
}

func (*WebsiteRepo_Expecter) ClearLog

func (_e *WebsiteRepo_Expecter) ClearLog(id interface{}) *WebsiteRepo_ClearLog_Call

ClearLog is a helper method to define mock.On call

  • id uint

func (*WebsiteRepo_Expecter) Count

Count is a helper method to define mock.On call

func (*WebsiteRepo_Expecter) Create

func (_e *WebsiteRepo_Expecter) Create(req interface{}) *WebsiteRepo_Create_Call

Create is a helper method to define mock.On call

  • req *request.WebsiteCreate

func (*WebsiteRepo_Expecter) Delete

func (_e *WebsiteRepo_Expecter) Delete(req interface{}) *WebsiteRepo_Delete_Call

Delete is a helper method to define mock.On call

  • req *request.WebsiteDelete

func (*WebsiteRepo_Expecter) Get

func (_e *WebsiteRepo_Expecter) Get(id interface{}) *WebsiteRepo_Get_Call

Get is a helper method to define mock.On call

  • id uint

func (*WebsiteRepo_Expecter) GetByName

func (_e *WebsiteRepo_Expecter) GetByName(name interface{}) *WebsiteRepo_GetByName_Call

GetByName is a helper method to define mock.On call

  • name string

func (*WebsiteRepo_Expecter) GetRewrites

GetRewrites is a helper method to define mock.On call

func (*WebsiteRepo_Expecter) List

func (_e *WebsiteRepo_Expecter) List(page interface{}, limit interface{}) *WebsiteRepo_List_Call

List is a helper method to define mock.On call

  • page uint
  • limit uint

func (*WebsiteRepo_Expecter) ObtainCert

func (_e *WebsiteRepo_Expecter) ObtainCert(ctx interface{}, id interface{}) *WebsiteRepo_ObtainCert_Call

ObtainCert is a helper method to define mock.On call

  • ctx context.Context
  • id uint

func (*WebsiteRepo_Expecter) ResetConfig

func (_e *WebsiteRepo_Expecter) ResetConfig(id interface{}) *WebsiteRepo_ResetConfig_Call

ResetConfig is a helper method to define mock.On call

  • id uint

func (*WebsiteRepo_Expecter) Update

func (_e *WebsiteRepo_Expecter) Update(req interface{}) *WebsiteRepo_Update_Call

Update is a helper method to define mock.On call

  • req *request.WebsiteUpdate

func (*WebsiteRepo_Expecter) UpdateDefaultConfig

func (_e *WebsiteRepo_Expecter) UpdateDefaultConfig(req interface{}) *WebsiteRepo_UpdateDefaultConfig_Call

UpdateDefaultConfig is a helper method to define mock.On call

  • req *request.WebsiteDefaultConfig

func (*WebsiteRepo_Expecter) UpdateRemark

func (_e *WebsiteRepo_Expecter) UpdateRemark(id interface{}, remark interface{}) *WebsiteRepo_UpdateRemark_Call

UpdateRemark is a helper method to define mock.On call

  • id uint
  • remark string

func (*WebsiteRepo_Expecter) UpdateStatus

func (_e *WebsiteRepo_Expecter) UpdateStatus(id interface{}, status interface{}) *WebsiteRepo_UpdateStatus_Call

UpdateStatus is a helper method to define mock.On call

  • id uint
  • status bool

type WebsiteRepo_GetByName_Call

type WebsiteRepo_GetByName_Call struct {
	*mock.Call
}

WebsiteRepo_GetByName_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByName'

func (*WebsiteRepo_GetByName_Call) Return

func (*WebsiteRepo_GetByName_Call) Run

func (*WebsiteRepo_GetByName_Call) RunAndReturn

type WebsiteRepo_GetRewrites_Call

type WebsiteRepo_GetRewrites_Call struct {
	*mock.Call
}

WebsiteRepo_GetRewrites_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetRewrites'

func (*WebsiteRepo_GetRewrites_Call) Return

func (*WebsiteRepo_GetRewrites_Call) Run

func (*WebsiteRepo_GetRewrites_Call) RunAndReturn

func (_c *WebsiteRepo_GetRewrites_Call) RunAndReturn(run func() (map[string]string, error)) *WebsiteRepo_GetRewrites_Call

type WebsiteRepo_Get_Call

type WebsiteRepo_Get_Call struct {
	*mock.Call
}

WebsiteRepo_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'

func (*WebsiteRepo_Get_Call) Return

func (*WebsiteRepo_Get_Call) Run

func (_c *WebsiteRepo_Get_Call) Run(run func(id uint)) *WebsiteRepo_Get_Call

func (*WebsiteRepo_Get_Call) RunAndReturn

func (_c *WebsiteRepo_Get_Call) RunAndReturn(run func(uint) (*types.WebsiteSetting, error)) *WebsiteRepo_Get_Call

type WebsiteRepo_List_Call

type WebsiteRepo_List_Call struct {
	*mock.Call
}

WebsiteRepo_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'

func (*WebsiteRepo_List_Call) Return

func (_c *WebsiteRepo_List_Call) Return(_a0 []*biz.Website, _a1 int64, _a2 error) *WebsiteRepo_List_Call

func (*WebsiteRepo_List_Call) Run

func (_c *WebsiteRepo_List_Call) Run(run func(page uint, limit uint)) *WebsiteRepo_List_Call

func (*WebsiteRepo_List_Call) RunAndReturn

func (_c *WebsiteRepo_List_Call) RunAndReturn(run func(uint, uint) ([]*biz.Website, int64, error)) *WebsiteRepo_List_Call

type WebsiteRepo_ObtainCert_Call

type WebsiteRepo_ObtainCert_Call struct {
	*mock.Call
}

WebsiteRepo_ObtainCert_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ObtainCert'

func (*WebsiteRepo_ObtainCert_Call) Return

func (*WebsiteRepo_ObtainCert_Call) Run

func (*WebsiteRepo_ObtainCert_Call) RunAndReturn

type WebsiteRepo_ResetConfig_Call

type WebsiteRepo_ResetConfig_Call struct {
	*mock.Call
}

WebsiteRepo_ResetConfig_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ResetConfig'

func (*WebsiteRepo_ResetConfig_Call) Return

func (*WebsiteRepo_ResetConfig_Call) Run

func (*WebsiteRepo_ResetConfig_Call) RunAndReturn

type WebsiteRepo_UpdateDefaultConfig_Call

type WebsiteRepo_UpdateDefaultConfig_Call struct {
	*mock.Call
}

WebsiteRepo_UpdateDefaultConfig_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateDefaultConfig'

func (*WebsiteRepo_UpdateDefaultConfig_Call) Return

func (*WebsiteRepo_UpdateDefaultConfig_Call) Run

func (*WebsiteRepo_UpdateDefaultConfig_Call) RunAndReturn

type WebsiteRepo_UpdateRemark_Call

type WebsiteRepo_UpdateRemark_Call struct {
	*mock.Call
}

WebsiteRepo_UpdateRemark_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateRemark'

func (*WebsiteRepo_UpdateRemark_Call) Return

func (*WebsiteRepo_UpdateRemark_Call) Run

func (*WebsiteRepo_UpdateRemark_Call) RunAndReturn

type WebsiteRepo_UpdateStatus_Call

type WebsiteRepo_UpdateStatus_Call struct {
	*mock.Call
}

WebsiteRepo_UpdateStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateStatus'

func (*WebsiteRepo_UpdateStatus_Call) Return

func (*WebsiteRepo_UpdateStatus_Call) Run

func (*WebsiteRepo_UpdateStatus_Call) RunAndReturn

type WebsiteRepo_Update_Call

type WebsiteRepo_Update_Call struct {
	*mock.Call
}

WebsiteRepo_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'

func (*WebsiteRepo_Update_Call) Return

func (*WebsiteRepo_Update_Call) Run

func (*WebsiteRepo_Update_Call) RunAndReturn

Jump to

Keyboard shortcuts

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