Documentation ¶
Index ¶
- type AppRepo
- func (_m *AppRepo) All() api.Apps
- func (_m *AppRepo) EXPECT() *AppRepo_Expecter
- func (_m *AppRepo) Get(slug string) (*api.App, error)
- func (_m *AppRepo) GetHomeShow() ([]map[string]string, error)
- func (_m *AppRepo) GetInstalled(slug string) (*biz.App, error)
- func (_m *AppRepo) GetInstalledAll(query string, cond ...string) ([]*biz.App, error)
- func (_m *AppRepo) Install(channel string, slug string) error
- func (_m *AppRepo) Installed() ([]*biz.App, error)
- func (_m *AppRepo) IsInstalled(query string, cond ...string) (bool, error)
- func (_m *AppRepo) UnInstall(slug string) error
- func (_m *AppRepo) Update(slug string) error
- func (_m *AppRepo) UpdateExist(slug string) bool
- func (_m *AppRepo) UpdateShow(slug string, show bool) error
- type AppRepo_All_Call
- type AppRepo_Expecter
- func (_e *AppRepo_Expecter) All() *AppRepo_All_Call
- func (_e *AppRepo_Expecter) Get(slug interface{}) *AppRepo_Get_Call
- func (_e *AppRepo_Expecter) GetHomeShow() *AppRepo_GetHomeShow_Call
- func (_e *AppRepo_Expecter) GetInstalled(slug interface{}) *AppRepo_GetInstalled_Call
- func (_e *AppRepo_Expecter) GetInstalledAll(query interface{}, cond ...interface{}) *AppRepo_GetInstalledAll_Call
- func (_e *AppRepo_Expecter) Install(channel interface{}, slug interface{}) *AppRepo_Install_Call
- func (_e *AppRepo_Expecter) Installed() *AppRepo_Installed_Call
- func (_e *AppRepo_Expecter) IsInstalled(query interface{}, cond ...interface{}) *AppRepo_IsInstalled_Call
- func (_e *AppRepo_Expecter) UnInstall(slug interface{}) *AppRepo_UnInstall_Call
- func (_e *AppRepo_Expecter) Update(slug interface{}) *AppRepo_Update_Call
- func (_e *AppRepo_Expecter) UpdateExist(slug interface{}) *AppRepo_UpdateExist_Call
- func (_e *AppRepo_Expecter) UpdateShow(slug interface{}, show interface{}) *AppRepo_UpdateShow_Call
- type AppRepo_GetHomeShow_Call
- type AppRepo_GetInstalledAll_Call
- func (_c *AppRepo_GetInstalledAll_Call) Return(_a0 []*biz.App, _a1 error) *AppRepo_GetInstalledAll_Call
- func (_c *AppRepo_GetInstalledAll_Call) Run(run func(query string, cond ...string)) *AppRepo_GetInstalledAll_Call
- func (_c *AppRepo_GetInstalledAll_Call) RunAndReturn(run func(string, ...string) ([]*biz.App, error)) *AppRepo_GetInstalledAll_Call
- type AppRepo_GetInstalled_Call
- type AppRepo_Get_Call
- type AppRepo_Install_Call
- type AppRepo_Installed_Call
- type AppRepo_IsInstalled_Call
- func (_c *AppRepo_IsInstalled_Call) Return(_a0 bool, _a1 error) *AppRepo_IsInstalled_Call
- func (_c *AppRepo_IsInstalled_Call) Run(run func(query string, cond ...string)) *AppRepo_IsInstalled_Call
- func (_c *AppRepo_IsInstalled_Call) RunAndReturn(run func(string, ...string) (bool, error)) *AppRepo_IsInstalled_Call
- type AppRepo_UnInstall_Call
- type AppRepo_UpdateExist_Call
- type AppRepo_UpdateShow_Call
- type AppRepo_Update_Call
- type BackupRepo
- func (_m *BackupRepo) ClearExpired(path string, prefix string, save int) error
- func (_m *BackupRepo) Create(typ biz.BackupType, target string, path ...string) error
- func (_m *BackupRepo) CutoffLog(path string, target string) error
- func (_m *BackupRepo) Delete(typ biz.BackupType, name string) error
- func (_m *BackupRepo) EXPECT() *BackupRepo_Expecter
- func (_m *BackupRepo) FixPanel() error
- func (_m *BackupRepo) GetPath(typ biz.BackupType) (string, error)
- func (_m *BackupRepo) List(typ biz.BackupType) ([]*types.BackupFile, error)
- func (_m *BackupRepo) Restore(typ biz.BackupType, backup string, target string) error
- func (_m *BackupRepo) UpdatePanel(version string, url string, checksum string) error
- type BackupRepo_ClearExpired_Call
- func (_c *BackupRepo_ClearExpired_Call) Return(_a0 error) *BackupRepo_ClearExpired_Call
- func (_c *BackupRepo_ClearExpired_Call) Run(run func(path string, prefix string, save int)) *BackupRepo_ClearExpired_Call
- func (_c *BackupRepo_ClearExpired_Call) RunAndReturn(run func(string, string, int) error) *BackupRepo_ClearExpired_Call
- type BackupRepo_Create_Call
- func (_c *BackupRepo_Create_Call) Return(_a0 error) *BackupRepo_Create_Call
- func (_c *BackupRepo_Create_Call) Run(run func(typ biz.BackupType, target string, path ...string)) *BackupRepo_Create_Call
- func (_c *BackupRepo_Create_Call) RunAndReturn(run func(biz.BackupType, string, ...string) error) *BackupRepo_Create_Call
- type BackupRepo_CutoffLog_Call
- type BackupRepo_Delete_Call
- type BackupRepo_Expecter
- func (_e *BackupRepo_Expecter) ClearExpired(path interface{}, prefix interface{}, save interface{}) *BackupRepo_ClearExpired_Call
- func (_e *BackupRepo_Expecter) Create(typ interface{}, target interface{}, path ...interface{}) *BackupRepo_Create_Call
- func (_e *BackupRepo_Expecter) CutoffLog(path interface{}, target interface{}) *BackupRepo_CutoffLog_Call
- func (_e *BackupRepo_Expecter) Delete(typ interface{}, name interface{}) *BackupRepo_Delete_Call
- func (_e *BackupRepo_Expecter) FixPanel() *BackupRepo_FixPanel_Call
- func (_e *BackupRepo_Expecter) GetPath(typ interface{}) *BackupRepo_GetPath_Call
- func (_e *BackupRepo_Expecter) List(typ interface{}) *BackupRepo_List_Call
- func (_e *BackupRepo_Expecter) Restore(typ interface{}, backup interface{}, target interface{}) *BackupRepo_Restore_Call
- func (_e *BackupRepo_Expecter) UpdatePanel(version interface{}, url interface{}, checksum interface{}) *BackupRepo_UpdatePanel_Call
- type BackupRepo_FixPanel_Call
- type BackupRepo_GetPath_Call
- type BackupRepo_List_Call
- func (_c *BackupRepo_List_Call) Return(_a0 []*types.BackupFile, _a1 error) *BackupRepo_List_Call
- func (_c *BackupRepo_List_Call) Run(run func(typ biz.BackupType)) *BackupRepo_List_Call
- func (_c *BackupRepo_List_Call) RunAndReturn(run func(biz.BackupType) ([]*types.BackupFile, error)) *BackupRepo_List_Call
- type BackupRepo_Restore_Call
- func (_c *BackupRepo_Restore_Call) Return(_a0 error) *BackupRepo_Restore_Call
- func (_c *BackupRepo_Restore_Call) Run(run func(typ biz.BackupType, backup string, target string)) *BackupRepo_Restore_Call
- func (_c *BackupRepo_Restore_Call) RunAndReturn(run func(biz.BackupType, string, string) error) *BackupRepo_Restore_Call
- type BackupRepo_UpdatePanel_Call
- func (_c *BackupRepo_UpdatePanel_Call) Return(_a0 error) *BackupRepo_UpdatePanel_Call
- func (_c *BackupRepo_UpdatePanel_Call) Run(run func(version string, url string, checksum string)) *BackupRepo_UpdatePanel_Call
- func (_c *BackupRepo_UpdatePanel_Call) RunAndReturn(run func(string, string, string) error) *BackupRepo_UpdatePanel_Call
- type CacheRepo
- type CacheRepo_Expecter
- func (_e *CacheRepo_Expecter) Get(key interface{}, defaultValue ...interface{}) *CacheRepo_Get_Call
- func (_e *CacheRepo_Expecter) Set(key interface{}, value interface{}) *CacheRepo_Set_Call
- func (_e *CacheRepo_Expecter) UpdateApps() *CacheRepo_UpdateApps_Call
- func (_e *CacheRepo_Expecter) UpdateRewrites() *CacheRepo_UpdateRewrites_Call
- type CacheRepo_Get_Call
- type CacheRepo_Set_Call
- type CacheRepo_UpdateApps_Call
- type CacheRepo_UpdateRewrites_Call
- type CertAccountRepo
- func (_m *CertAccountRepo) Create(req *request.CertAccountCreate) (*biz.CertAccount, error)
- func (_m *CertAccountRepo) Delete(id uint) error
- func (_m *CertAccountRepo) EXPECT() *CertAccountRepo_Expecter
- func (_m *CertAccountRepo) Get(id uint) (*biz.CertAccount, error)
- func (_m *CertAccountRepo) GetDefault(userID uint) (*biz.CertAccount, error)
- func (_m *CertAccountRepo) List(page uint, limit uint) ([]*biz.CertAccount, int64, error)
- func (_m *CertAccountRepo) Update(req *request.CertAccountUpdate) error
- type CertAccountRepo_Create_Call
- func (_c *CertAccountRepo_Create_Call) Return(_a0 *biz.CertAccount, _a1 error) *CertAccountRepo_Create_Call
- func (_c *CertAccountRepo_Create_Call) Run(run func(req *request.CertAccountCreate)) *CertAccountRepo_Create_Call
- func (_c *CertAccountRepo_Create_Call) RunAndReturn(run func(*request.CertAccountCreate) (*biz.CertAccount, error)) *CertAccountRepo_Create_Call
- type CertAccountRepo_Delete_Call
- type CertAccountRepo_Expecter
- func (_e *CertAccountRepo_Expecter) Create(req interface{}) *CertAccountRepo_Create_Call
- func (_e *CertAccountRepo_Expecter) Delete(id interface{}) *CertAccountRepo_Delete_Call
- func (_e *CertAccountRepo_Expecter) Get(id interface{}) *CertAccountRepo_Get_Call
- func (_e *CertAccountRepo_Expecter) GetDefault(userID interface{}) *CertAccountRepo_GetDefault_Call
- func (_e *CertAccountRepo_Expecter) List(page interface{}, limit interface{}) *CertAccountRepo_List_Call
- func (_e *CertAccountRepo_Expecter) Update(req interface{}) *CertAccountRepo_Update_Call
- type CertAccountRepo_GetDefault_Call
- func (_c *CertAccountRepo_GetDefault_Call) Return(_a0 *biz.CertAccount, _a1 error) *CertAccountRepo_GetDefault_Call
- func (_c *CertAccountRepo_GetDefault_Call) Run(run func(userID uint)) *CertAccountRepo_GetDefault_Call
- func (_c *CertAccountRepo_GetDefault_Call) RunAndReturn(run func(uint) (*biz.CertAccount, error)) *CertAccountRepo_GetDefault_Call
- type CertAccountRepo_Get_Call
- func (_c *CertAccountRepo_Get_Call) Return(_a0 *biz.CertAccount, _a1 error) *CertAccountRepo_Get_Call
- func (_c *CertAccountRepo_Get_Call) Run(run func(id uint)) *CertAccountRepo_Get_Call
- func (_c *CertAccountRepo_Get_Call) RunAndReturn(run func(uint) (*biz.CertAccount, error)) *CertAccountRepo_Get_Call
- type CertAccountRepo_List_Call
- func (_c *CertAccountRepo_List_Call) Return(_a0 []*biz.CertAccount, _a1 int64, _a2 error) *CertAccountRepo_List_Call
- func (_c *CertAccountRepo_List_Call) Run(run func(page uint, limit uint)) *CertAccountRepo_List_Call
- func (_c *CertAccountRepo_List_Call) RunAndReturn(run func(uint, uint) ([]*biz.CertAccount, int64, error)) *CertAccountRepo_List_Call
- type CertAccountRepo_Update_Call
- func (_c *CertAccountRepo_Update_Call) Return(_a0 error) *CertAccountRepo_Update_Call
- func (_c *CertAccountRepo_Update_Call) Run(run func(req *request.CertAccountUpdate)) *CertAccountRepo_Update_Call
- func (_c *CertAccountRepo_Update_Call) RunAndReturn(run func(*request.CertAccountUpdate) error) *CertAccountRepo_Update_Call
- type CertDNSRepo
- func (_m *CertDNSRepo) Create(req *request.CertDNSCreate) (*biz.CertDNS, error)
- func (_m *CertDNSRepo) Delete(id uint) error
- func (_m *CertDNSRepo) EXPECT() *CertDNSRepo_Expecter
- func (_m *CertDNSRepo) Get(id uint) (*biz.CertDNS, error)
- func (_m *CertDNSRepo) List(page uint, limit uint) ([]*biz.CertDNS, int64, error)
- func (_m *CertDNSRepo) Update(req *request.CertDNSUpdate) error
- type CertDNSRepo_Create_Call
- func (_c *CertDNSRepo_Create_Call) Return(_a0 *biz.CertDNS, _a1 error) *CertDNSRepo_Create_Call
- func (_c *CertDNSRepo_Create_Call) Run(run func(req *request.CertDNSCreate)) *CertDNSRepo_Create_Call
- func (_c *CertDNSRepo_Create_Call) RunAndReturn(run func(*request.CertDNSCreate) (*biz.CertDNS, error)) *CertDNSRepo_Create_Call
- type CertDNSRepo_Delete_Call
- type CertDNSRepo_Expecter
- func (_e *CertDNSRepo_Expecter) Create(req interface{}) *CertDNSRepo_Create_Call
- func (_e *CertDNSRepo_Expecter) Delete(id interface{}) *CertDNSRepo_Delete_Call
- func (_e *CertDNSRepo_Expecter) Get(id interface{}) *CertDNSRepo_Get_Call
- func (_e *CertDNSRepo_Expecter) List(page interface{}, limit interface{}) *CertDNSRepo_List_Call
- func (_e *CertDNSRepo_Expecter) Update(req interface{}) *CertDNSRepo_Update_Call
- type CertDNSRepo_Get_Call
- type CertDNSRepo_List_Call
- func (_c *CertDNSRepo_List_Call) Return(_a0 []*biz.CertDNS, _a1 int64, _a2 error) *CertDNSRepo_List_Call
- func (_c *CertDNSRepo_List_Call) Run(run func(page uint, limit uint)) *CertDNSRepo_List_Call
- func (_c *CertDNSRepo_List_Call) RunAndReturn(run func(uint, uint) ([]*biz.CertDNS, int64, error)) *CertDNSRepo_List_Call
- type CertDNSRepo_Update_Call
- type CertRepo
- func (_m *CertRepo) Create(req *request.CertCreate) (*biz.Cert, error)
- func (_m *CertRepo) Delete(id uint) error
- func (_m *CertRepo) Deploy(ID uint, WebsiteID uint) error
- func (_m *CertRepo) EXPECT() *CertRepo_Expecter
- func (_m *CertRepo) Get(id uint) (*biz.Cert, error)
- func (_m *CertRepo) GetByWebsite(WebsiteID uint) (*biz.Cert, error)
- func (_m *CertRepo) List(page uint, limit uint) ([]*types.CertList, int64, error)
- func (_m *CertRepo) ManualDNS(id uint) ([]acme.DNSRecord, error)
- func (_m *CertRepo) ObtainAuto(id uint) (*acme.Certificate, error)
- func (_m *CertRepo) ObtainManual(id uint) (*acme.Certificate, error)
- func (_m *CertRepo) ObtainSelfSigned(id uint) error
- func (_m *CertRepo) Renew(id uint) (*acme.Certificate, error)
- func (_m *CertRepo) Update(req *request.CertUpdate) error
- func (_m *CertRepo) Upload(req *request.CertUpload) (*biz.Cert, error)
- type CertRepo_Create_Call
- type CertRepo_Delete_Call
- type CertRepo_Deploy_Call
- type CertRepo_Expecter
- func (_e *CertRepo_Expecter) Create(req interface{}) *CertRepo_Create_Call
- func (_e *CertRepo_Expecter) Delete(id interface{}) *CertRepo_Delete_Call
- func (_e *CertRepo_Expecter) Deploy(ID interface{}, WebsiteID interface{}) *CertRepo_Deploy_Call
- func (_e *CertRepo_Expecter) Get(id interface{}) *CertRepo_Get_Call
- func (_e *CertRepo_Expecter) GetByWebsite(WebsiteID interface{}) *CertRepo_GetByWebsite_Call
- func (_e *CertRepo_Expecter) List(page interface{}, limit interface{}) *CertRepo_List_Call
- func (_e *CertRepo_Expecter) ManualDNS(id interface{}) *CertRepo_ManualDNS_Call
- func (_e *CertRepo_Expecter) ObtainAuto(id interface{}) *CertRepo_ObtainAuto_Call
- func (_e *CertRepo_Expecter) ObtainManual(id interface{}) *CertRepo_ObtainManual_Call
- func (_e *CertRepo_Expecter) ObtainSelfSigned(id interface{}) *CertRepo_ObtainSelfSigned_Call
- func (_e *CertRepo_Expecter) Renew(id interface{}) *CertRepo_Renew_Call
- func (_e *CertRepo_Expecter) Update(req interface{}) *CertRepo_Update_Call
- func (_e *CertRepo_Expecter) Upload(req interface{}) *CertRepo_Upload_Call
- type CertRepo_GetByWebsite_Call
- func (_c *CertRepo_GetByWebsite_Call) Return(_a0 *biz.Cert, _a1 error) *CertRepo_GetByWebsite_Call
- func (_c *CertRepo_GetByWebsite_Call) Run(run func(WebsiteID uint)) *CertRepo_GetByWebsite_Call
- func (_c *CertRepo_GetByWebsite_Call) RunAndReturn(run func(uint) (*biz.Cert, error)) *CertRepo_GetByWebsite_Call
- type CertRepo_Get_Call
- type CertRepo_List_Call
- func (_c *CertRepo_List_Call) Return(_a0 []*types.CertList, _a1 int64, _a2 error) *CertRepo_List_Call
- func (_c *CertRepo_List_Call) Run(run func(page uint, limit uint)) *CertRepo_List_Call
- func (_c *CertRepo_List_Call) RunAndReturn(run func(uint, uint) ([]*types.CertList, int64, error)) *CertRepo_List_Call
- type CertRepo_ManualDNS_Call
- type CertRepo_ObtainAuto_Call
- func (_c *CertRepo_ObtainAuto_Call) Return(_a0 *acme.Certificate, _a1 error) *CertRepo_ObtainAuto_Call
- func (_c *CertRepo_ObtainAuto_Call) Run(run func(id uint)) *CertRepo_ObtainAuto_Call
- func (_c *CertRepo_ObtainAuto_Call) RunAndReturn(run func(uint) (*acme.Certificate, error)) *CertRepo_ObtainAuto_Call
- type CertRepo_ObtainManual_Call
- func (_c *CertRepo_ObtainManual_Call) Return(_a0 *acme.Certificate, _a1 error) *CertRepo_ObtainManual_Call
- func (_c *CertRepo_ObtainManual_Call) Run(run func(id uint)) *CertRepo_ObtainManual_Call
- func (_c *CertRepo_ObtainManual_Call) RunAndReturn(run func(uint) (*acme.Certificate, error)) *CertRepo_ObtainManual_Call
- type CertRepo_ObtainSelfSigned_Call
- type CertRepo_Renew_Call
- type CertRepo_Update_Call
- type CertRepo_Upload_Call
- type ContainerImageRepo
- func (_m *ContainerImageRepo) EXPECT() *ContainerImageRepo_Expecter
- func (_m *ContainerImageRepo) List() ([]types.ContainerImage, error)
- func (_m *ContainerImageRepo) Prune() error
- func (_m *ContainerImageRepo) Pull(req *request.ContainerImagePull) error
- func (_m *ContainerImageRepo) Remove(id string) error
- type ContainerImageRepo_Expecter
- func (_e *ContainerImageRepo_Expecter) List() *ContainerImageRepo_List_Call
- func (_e *ContainerImageRepo_Expecter) Prune() *ContainerImageRepo_Prune_Call
- func (_e *ContainerImageRepo_Expecter) Pull(req interface{}) *ContainerImageRepo_Pull_Call
- func (_e *ContainerImageRepo_Expecter) Remove(id interface{}) *ContainerImageRepo_Remove_Call
- type ContainerImageRepo_List_Call
- func (_c *ContainerImageRepo_List_Call) Return(_a0 []types.ContainerImage, _a1 error) *ContainerImageRepo_List_Call
- func (_c *ContainerImageRepo_List_Call) Run(run func()) *ContainerImageRepo_List_Call
- func (_c *ContainerImageRepo_List_Call) RunAndReturn(run func() ([]types.ContainerImage, error)) *ContainerImageRepo_List_Call
- type ContainerImageRepo_Prune_Call
- type ContainerImageRepo_Pull_Call
- func (_c *ContainerImageRepo_Pull_Call) Return(_a0 error) *ContainerImageRepo_Pull_Call
- func (_c *ContainerImageRepo_Pull_Call) Run(run func(req *request.ContainerImagePull)) *ContainerImageRepo_Pull_Call
- func (_c *ContainerImageRepo_Pull_Call) RunAndReturn(run func(*request.ContainerImagePull) error) *ContainerImageRepo_Pull_Call
- type ContainerImageRepo_Remove_Call
- func (_c *ContainerImageRepo_Remove_Call) Return(_a0 error) *ContainerImageRepo_Remove_Call
- func (_c *ContainerImageRepo_Remove_Call) Run(run func(id string)) *ContainerImageRepo_Remove_Call
- func (_c *ContainerImageRepo_Remove_Call) RunAndReturn(run func(string) error) *ContainerImageRepo_Remove_Call
- type ContainerNetworkRepo
- func (_m *ContainerNetworkRepo) Create(req *request.ContainerNetworkCreate) (string, error)
- func (_m *ContainerNetworkRepo) EXPECT() *ContainerNetworkRepo_Expecter
- func (_m *ContainerNetworkRepo) List() ([]types.ContainerNetwork, error)
- func (_m *ContainerNetworkRepo) Prune() error
- func (_m *ContainerNetworkRepo) Remove(id string) error
- type ContainerNetworkRepo_Create_Call
- func (_c *ContainerNetworkRepo_Create_Call) Return(_a0 string, _a1 error) *ContainerNetworkRepo_Create_Call
- func (_c *ContainerNetworkRepo_Create_Call) Run(run func(req *request.ContainerNetworkCreate)) *ContainerNetworkRepo_Create_Call
- func (_c *ContainerNetworkRepo_Create_Call) RunAndReturn(run func(*request.ContainerNetworkCreate) (string, error)) *ContainerNetworkRepo_Create_Call
- type ContainerNetworkRepo_Expecter
- func (_e *ContainerNetworkRepo_Expecter) Create(req interface{}) *ContainerNetworkRepo_Create_Call
- func (_e *ContainerNetworkRepo_Expecter) List() *ContainerNetworkRepo_List_Call
- func (_e *ContainerNetworkRepo_Expecter) Prune() *ContainerNetworkRepo_Prune_Call
- func (_e *ContainerNetworkRepo_Expecter) Remove(id interface{}) *ContainerNetworkRepo_Remove_Call
- type ContainerNetworkRepo_List_Call
- func (_c *ContainerNetworkRepo_List_Call) Return(_a0 []types.ContainerNetwork, _a1 error) *ContainerNetworkRepo_List_Call
- func (_c *ContainerNetworkRepo_List_Call) Run(run func()) *ContainerNetworkRepo_List_Call
- func (_c *ContainerNetworkRepo_List_Call) RunAndReturn(run func() ([]types.ContainerNetwork, error)) *ContainerNetworkRepo_List_Call
- type ContainerNetworkRepo_Prune_Call
- type ContainerNetworkRepo_Remove_Call
- func (_c *ContainerNetworkRepo_Remove_Call) Return(_a0 error) *ContainerNetworkRepo_Remove_Call
- func (_c *ContainerNetworkRepo_Remove_Call) Run(run func(id string)) *ContainerNetworkRepo_Remove_Call
- func (_c *ContainerNetworkRepo_Remove_Call) RunAndReturn(run func(string) error) *ContainerNetworkRepo_Remove_Call
- type ContainerRepo
- func (_m *ContainerRepo) Create(req *request.ContainerCreate) (string, error)
- func (_m *ContainerRepo) EXPECT() *ContainerRepo_Expecter
- func (_m *ContainerRepo) Kill(id string) error
- func (_m *ContainerRepo) ListAll() ([]types.Container, error)
- func (_m *ContainerRepo) ListByName(name string) ([]types.Container, error)
- func (_m *ContainerRepo) Logs(id string) (string, error)
- func (_m *ContainerRepo) Pause(id string) error
- func (_m *ContainerRepo) Prune() error
- func (_m *ContainerRepo) Remove(id string) error
- func (_m *ContainerRepo) Rename(id string, newName string) error
- func (_m *ContainerRepo) Restart(id string) error
- func (_m *ContainerRepo) Start(id string) error
- func (_m *ContainerRepo) Stop(id string) error
- func (_m *ContainerRepo) Unpause(id string) error
- type ContainerRepo_Create_Call
- func (_c *ContainerRepo_Create_Call) Return(_a0 string, _a1 error) *ContainerRepo_Create_Call
- func (_c *ContainerRepo_Create_Call) Run(run func(req *request.ContainerCreate)) *ContainerRepo_Create_Call
- func (_c *ContainerRepo_Create_Call) RunAndReturn(run func(*request.ContainerCreate) (string, error)) *ContainerRepo_Create_Call
- type ContainerRepo_Expecter
- func (_e *ContainerRepo_Expecter) Create(req interface{}) *ContainerRepo_Create_Call
- func (_e *ContainerRepo_Expecter) Kill(id interface{}) *ContainerRepo_Kill_Call
- func (_e *ContainerRepo_Expecter) ListAll() *ContainerRepo_ListAll_Call
- func (_e *ContainerRepo_Expecter) ListByName(name interface{}) *ContainerRepo_ListByName_Call
- func (_e *ContainerRepo_Expecter) Logs(id interface{}) *ContainerRepo_Logs_Call
- func (_e *ContainerRepo_Expecter) Pause(id interface{}) *ContainerRepo_Pause_Call
- func (_e *ContainerRepo_Expecter) Prune() *ContainerRepo_Prune_Call
- func (_e *ContainerRepo_Expecter) Remove(id interface{}) *ContainerRepo_Remove_Call
- func (_e *ContainerRepo_Expecter) Rename(id interface{}, newName interface{}) *ContainerRepo_Rename_Call
- func (_e *ContainerRepo_Expecter) Restart(id interface{}) *ContainerRepo_Restart_Call
- func (_e *ContainerRepo_Expecter) Start(id interface{}) *ContainerRepo_Start_Call
- func (_e *ContainerRepo_Expecter) Stop(id interface{}) *ContainerRepo_Stop_Call
- func (_e *ContainerRepo_Expecter) Unpause(id interface{}) *ContainerRepo_Unpause_Call
- type ContainerRepo_Kill_Call
- type ContainerRepo_ListAll_Call
- func (_c *ContainerRepo_ListAll_Call) Return(_a0 []types.Container, _a1 error) *ContainerRepo_ListAll_Call
- func (_c *ContainerRepo_ListAll_Call) Run(run func()) *ContainerRepo_ListAll_Call
- func (_c *ContainerRepo_ListAll_Call) RunAndReturn(run func() ([]types.Container, error)) *ContainerRepo_ListAll_Call
- type ContainerRepo_ListByName_Call
- func (_c *ContainerRepo_ListByName_Call) Return(_a0 []types.Container, _a1 error) *ContainerRepo_ListByName_Call
- func (_c *ContainerRepo_ListByName_Call) Run(run func(name string)) *ContainerRepo_ListByName_Call
- func (_c *ContainerRepo_ListByName_Call) RunAndReturn(run func(string) ([]types.Container, error)) *ContainerRepo_ListByName_Call
- type ContainerRepo_Logs_Call
- type ContainerRepo_Pause_Call
- type ContainerRepo_Prune_Call
- type ContainerRepo_Remove_Call
- type ContainerRepo_Rename_Call
- type ContainerRepo_Restart_Call
- type ContainerRepo_Start_Call
- type ContainerRepo_Stop_Call
- type ContainerRepo_Unpause_Call
- type ContainerVolumeRepo
- func (_m *ContainerVolumeRepo) Create(req *request.ContainerVolumeCreate) (string, error)
- func (_m *ContainerVolumeRepo) EXPECT() *ContainerVolumeRepo_Expecter
- func (_m *ContainerVolumeRepo) List() ([]types.ContainerVolume, error)
- func (_m *ContainerVolumeRepo) Prune() error
- func (_m *ContainerVolumeRepo) Remove(id string) error
- type ContainerVolumeRepo_Create_Call
- func (_c *ContainerVolumeRepo_Create_Call) Return(_a0 string, _a1 error) *ContainerVolumeRepo_Create_Call
- func (_c *ContainerVolumeRepo_Create_Call) Run(run func(req *request.ContainerVolumeCreate)) *ContainerVolumeRepo_Create_Call
- func (_c *ContainerVolumeRepo_Create_Call) RunAndReturn(run func(*request.ContainerVolumeCreate) (string, error)) *ContainerVolumeRepo_Create_Call
- type ContainerVolumeRepo_Expecter
- func (_e *ContainerVolumeRepo_Expecter) Create(req interface{}) *ContainerVolumeRepo_Create_Call
- func (_e *ContainerVolumeRepo_Expecter) List() *ContainerVolumeRepo_List_Call
- func (_e *ContainerVolumeRepo_Expecter) Prune() *ContainerVolumeRepo_Prune_Call
- func (_e *ContainerVolumeRepo_Expecter) Remove(id interface{}) *ContainerVolumeRepo_Remove_Call
- type ContainerVolumeRepo_List_Call
- func (_c *ContainerVolumeRepo_List_Call) Return(_a0 []types.ContainerVolume, _a1 error) *ContainerVolumeRepo_List_Call
- func (_c *ContainerVolumeRepo_List_Call) Run(run func()) *ContainerVolumeRepo_List_Call
- func (_c *ContainerVolumeRepo_List_Call) RunAndReturn(run func() ([]types.ContainerVolume, error)) *ContainerVolumeRepo_List_Call
- type ContainerVolumeRepo_Prune_Call
- type ContainerVolumeRepo_Remove_Call
- func (_c *ContainerVolumeRepo_Remove_Call) Return(_a0 error) *ContainerVolumeRepo_Remove_Call
- func (_c *ContainerVolumeRepo_Remove_Call) Run(run func(id string)) *ContainerVolumeRepo_Remove_Call
- func (_c *ContainerVolumeRepo_Remove_Call) RunAndReturn(run func(string) error) *ContainerVolumeRepo_Remove_Call
- type CronRepo
- func (_m *CronRepo) Count() (int64, error)
- func (_m *CronRepo) Create(req *request.CronCreate) error
- func (_m *CronRepo) Delete(id uint) error
- func (_m *CronRepo) EXPECT() *CronRepo_Expecter
- func (_m *CronRepo) Get(id uint) (*biz.Cron, error)
- func (_m *CronRepo) List(page uint, limit uint) ([]*biz.Cron, int64, error)
- func (_m *CronRepo) Status(id uint, status bool) error
- func (_m *CronRepo) Update(req *request.CronUpdate) error
- type CronRepo_Count_Call
- type CronRepo_Create_Call
- type CronRepo_Delete_Call
- type CronRepo_Expecter
- func (_e *CronRepo_Expecter) Count() *CronRepo_Count_Call
- func (_e *CronRepo_Expecter) Create(req interface{}) *CronRepo_Create_Call
- func (_e *CronRepo_Expecter) Delete(id interface{}) *CronRepo_Delete_Call
- func (_e *CronRepo_Expecter) Get(id interface{}) *CronRepo_Get_Call
- func (_e *CronRepo_Expecter) List(page interface{}, limit interface{}) *CronRepo_List_Call
- func (_e *CronRepo_Expecter) Status(id interface{}, status interface{}) *CronRepo_Status_Call
- func (_e *CronRepo_Expecter) Update(req interface{}) *CronRepo_Update_Call
- type CronRepo_Get_Call
- type CronRepo_List_Call
- type CronRepo_Status_Call
- type CronRepo_Update_Call
- type DatabaseRepo
- func (_m *DatabaseRepo) Comment(req *request.DatabaseComment) error
- func (_m *DatabaseRepo) Create(req *request.DatabaseCreate) error
- func (_m *DatabaseRepo) Delete(serverID uint, name string) error
- func (_m *DatabaseRepo) EXPECT() *DatabaseRepo_Expecter
- func (_m *DatabaseRepo) List(page uint, limit uint) ([]*biz.Database, int64, error)
- type DatabaseRepo_Comment_Call
- func (_c *DatabaseRepo_Comment_Call) Return(_a0 error) *DatabaseRepo_Comment_Call
- func (_c *DatabaseRepo_Comment_Call) Run(run func(req *request.DatabaseComment)) *DatabaseRepo_Comment_Call
- func (_c *DatabaseRepo_Comment_Call) RunAndReturn(run func(*request.DatabaseComment) error) *DatabaseRepo_Comment_Call
- type DatabaseRepo_Create_Call
- func (_c *DatabaseRepo_Create_Call) Return(_a0 error) *DatabaseRepo_Create_Call
- func (_c *DatabaseRepo_Create_Call) Run(run func(req *request.DatabaseCreate)) *DatabaseRepo_Create_Call
- func (_c *DatabaseRepo_Create_Call) RunAndReturn(run func(*request.DatabaseCreate) error) *DatabaseRepo_Create_Call
- type DatabaseRepo_Delete_Call
- type DatabaseRepo_Expecter
- func (_e *DatabaseRepo_Expecter) Comment(req interface{}) *DatabaseRepo_Comment_Call
- func (_e *DatabaseRepo_Expecter) Create(req interface{}) *DatabaseRepo_Create_Call
- func (_e *DatabaseRepo_Expecter) Delete(serverID interface{}, name interface{}) *DatabaseRepo_Delete_Call
- func (_e *DatabaseRepo_Expecter) List(page interface{}, limit interface{}) *DatabaseRepo_List_Call
- type DatabaseRepo_List_Call
- func (_c *DatabaseRepo_List_Call) Return(_a0 []*biz.Database, _a1 int64, _a2 error) *DatabaseRepo_List_Call
- func (_c *DatabaseRepo_List_Call) Run(run func(page uint, limit uint)) *DatabaseRepo_List_Call
- func (_c *DatabaseRepo_List_Call) RunAndReturn(run func(uint, uint) ([]*biz.Database, int64, error)) *DatabaseRepo_List_Call
- type DatabaseServerRepo
- func (_m *DatabaseServerRepo) ClearUsers(id uint) error
- func (_m *DatabaseServerRepo) Count() (int64, error)
- func (_m *DatabaseServerRepo) Create(req *request.DatabaseServerCreate) error
- func (_m *DatabaseServerRepo) Delete(id uint) error
- func (_m *DatabaseServerRepo) EXPECT() *DatabaseServerRepo_Expecter
- func (_m *DatabaseServerRepo) Get(id uint) (*biz.DatabaseServer, error)
- func (_m *DatabaseServerRepo) GetByName(name string) (*biz.DatabaseServer, error)
- func (_m *DatabaseServerRepo) List(page uint, limit uint) ([]*biz.DatabaseServer, int64, error)
- func (_m *DatabaseServerRepo) Sync(id uint) error
- func (_m *DatabaseServerRepo) Update(req *request.DatabaseServerUpdate) error
- func (_m *DatabaseServerRepo) UpdateRemark(req *request.DatabaseServerUpdateRemark) error
- type DatabaseServerRepo_ClearUsers_Call
- func (_c *DatabaseServerRepo_ClearUsers_Call) Return(_a0 error) *DatabaseServerRepo_ClearUsers_Call
- func (_c *DatabaseServerRepo_ClearUsers_Call) Run(run func(id uint)) *DatabaseServerRepo_ClearUsers_Call
- func (_c *DatabaseServerRepo_ClearUsers_Call) RunAndReturn(run func(uint) error) *DatabaseServerRepo_ClearUsers_Call
- type DatabaseServerRepo_Count_Call
- func (_c *DatabaseServerRepo_Count_Call) Return(_a0 int64, _a1 error) *DatabaseServerRepo_Count_Call
- func (_c *DatabaseServerRepo_Count_Call) Run(run func()) *DatabaseServerRepo_Count_Call
- func (_c *DatabaseServerRepo_Count_Call) RunAndReturn(run func() (int64, error)) *DatabaseServerRepo_Count_Call
- type DatabaseServerRepo_Create_Call
- func (_c *DatabaseServerRepo_Create_Call) Return(_a0 error) *DatabaseServerRepo_Create_Call
- func (_c *DatabaseServerRepo_Create_Call) Run(run func(req *request.DatabaseServerCreate)) *DatabaseServerRepo_Create_Call
- func (_c *DatabaseServerRepo_Create_Call) RunAndReturn(run func(*request.DatabaseServerCreate) error) *DatabaseServerRepo_Create_Call
- type DatabaseServerRepo_Delete_Call
- type DatabaseServerRepo_Expecter
- func (_e *DatabaseServerRepo_Expecter) ClearUsers(id interface{}) *DatabaseServerRepo_ClearUsers_Call
- func (_e *DatabaseServerRepo_Expecter) Count() *DatabaseServerRepo_Count_Call
- func (_e *DatabaseServerRepo_Expecter) Create(req interface{}) *DatabaseServerRepo_Create_Call
- func (_e *DatabaseServerRepo_Expecter) Delete(id interface{}) *DatabaseServerRepo_Delete_Call
- func (_e *DatabaseServerRepo_Expecter) Get(id interface{}) *DatabaseServerRepo_Get_Call
- func (_e *DatabaseServerRepo_Expecter) GetByName(name interface{}) *DatabaseServerRepo_GetByName_Call
- func (_e *DatabaseServerRepo_Expecter) List(page interface{}, limit interface{}) *DatabaseServerRepo_List_Call
- func (_e *DatabaseServerRepo_Expecter) Sync(id interface{}) *DatabaseServerRepo_Sync_Call
- func (_e *DatabaseServerRepo_Expecter) Update(req interface{}) *DatabaseServerRepo_Update_Call
- func (_e *DatabaseServerRepo_Expecter) UpdateRemark(req interface{}) *DatabaseServerRepo_UpdateRemark_Call
- type DatabaseServerRepo_GetByName_Call
- func (_c *DatabaseServerRepo_GetByName_Call) Return(_a0 *biz.DatabaseServer, _a1 error) *DatabaseServerRepo_GetByName_Call
- func (_c *DatabaseServerRepo_GetByName_Call) Run(run func(name string)) *DatabaseServerRepo_GetByName_Call
- func (_c *DatabaseServerRepo_GetByName_Call) RunAndReturn(run func(string) (*biz.DatabaseServer, error)) *DatabaseServerRepo_GetByName_Call
- type DatabaseServerRepo_Get_Call
- func (_c *DatabaseServerRepo_Get_Call) Return(_a0 *biz.DatabaseServer, _a1 error) *DatabaseServerRepo_Get_Call
- func (_c *DatabaseServerRepo_Get_Call) Run(run func(id uint)) *DatabaseServerRepo_Get_Call
- func (_c *DatabaseServerRepo_Get_Call) RunAndReturn(run func(uint) (*biz.DatabaseServer, error)) *DatabaseServerRepo_Get_Call
- type DatabaseServerRepo_List_Call
- func (_c *DatabaseServerRepo_List_Call) Return(_a0 []*biz.DatabaseServer, _a1 int64, _a2 error) *DatabaseServerRepo_List_Call
- func (_c *DatabaseServerRepo_List_Call) Run(run func(page uint, limit uint)) *DatabaseServerRepo_List_Call
- func (_c *DatabaseServerRepo_List_Call) RunAndReturn(run func(uint, uint) ([]*biz.DatabaseServer, int64, error)) *DatabaseServerRepo_List_Call
- type DatabaseServerRepo_Sync_Call
- type DatabaseServerRepo_UpdateRemark_Call
- func (_c *DatabaseServerRepo_UpdateRemark_Call) Return(_a0 error) *DatabaseServerRepo_UpdateRemark_Call
- func (_c *DatabaseServerRepo_UpdateRemark_Call) Run(run func(req *request.DatabaseServerUpdateRemark)) *DatabaseServerRepo_UpdateRemark_Call
- func (_c *DatabaseServerRepo_UpdateRemark_Call) RunAndReturn(run func(*request.DatabaseServerUpdateRemark) error) *DatabaseServerRepo_UpdateRemark_Call
- type DatabaseServerRepo_Update_Call
- func (_c *DatabaseServerRepo_Update_Call) Return(_a0 error) *DatabaseServerRepo_Update_Call
- func (_c *DatabaseServerRepo_Update_Call) Run(run func(req *request.DatabaseServerUpdate)) *DatabaseServerRepo_Update_Call
- func (_c *DatabaseServerRepo_Update_Call) RunAndReturn(run func(*request.DatabaseServerUpdate) error) *DatabaseServerRepo_Update_Call
- type DatabaseUserRepo
- func (_m *DatabaseUserRepo) Count() (int64, error)
- func (_m *DatabaseUserRepo) Create(req *request.DatabaseUserCreate) error
- func (_m *DatabaseUserRepo) Delete(id uint) error
- func (_m *DatabaseUserRepo) DeleteByNames(serverID uint, names []string) error
- func (_m *DatabaseUserRepo) EXPECT() *DatabaseUserRepo_Expecter
- func (_m *DatabaseUserRepo) Get(id uint) (*biz.DatabaseUser, error)
- func (_m *DatabaseUserRepo) List(page uint, limit uint) ([]*biz.DatabaseUser, int64, error)
- func (_m *DatabaseUserRepo) Update(req *request.DatabaseUserUpdate) error
- func (_m *DatabaseUserRepo) UpdateRemark(req *request.DatabaseUserUpdateRemark) error
- type DatabaseUserRepo_Count_Call
- type DatabaseUserRepo_Create_Call
- func (_c *DatabaseUserRepo_Create_Call) Return(_a0 error) *DatabaseUserRepo_Create_Call
- func (_c *DatabaseUserRepo_Create_Call) Run(run func(req *request.DatabaseUserCreate)) *DatabaseUserRepo_Create_Call
- func (_c *DatabaseUserRepo_Create_Call) RunAndReturn(run func(*request.DatabaseUserCreate) error) *DatabaseUserRepo_Create_Call
- type DatabaseUserRepo_DeleteByNames_Call
- func (_c *DatabaseUserRepo_DeleteByNames_Call) Return(_a0 error) *DatabaseUserRepo_DeleteByNames_Call
- func (_c *DatabaseUserRepo_DeleteByNames_Call) Run(run func(serverID uint, names []string)) *DatabaseUserRepo_DeleteByNames_Call
- func (_c *DatabaseUserRepo_DeleteByNames_Call) RunAndReturn(run func(uint, []string) error) *DatabaseUserRepo_DeleteByNames_Call
- type DatabaseUserRepo_Delete_Call
- type DatabaseUserRepo_Expecter
- func (_e *DatabaseUserRepo_Expecter) Count() *DatabaseUserRepo_Count_Call
- func (_e *DatabaseUserRepo_Expecter) Create(req interface{}) *DatabaseUserRepo_Create_Call
- func (_e *DatabaseUserRepo_Expecter) Delete(id interface{}) *DatabaseUserRepo_Delete_Call
- func (_e *DatabaseUserRepo_Expecter) DeleteByNames(serverID interface{}, names interface{}) *DatabaseUserRepo_DeleteByNames_Call
- func (_e *DatabaseUserRepo_Expecter) Get(id interface{}) *DatabaseUserRepo_Get_Call
- func (_e *DatabaseUserRepo_Expecter) List(page interface{}, limit interface{}) *DatabaseUserRepo_List_Call
- func (_e *DatabaseUserRepo_Expecter) Update(req interface{}) *DatabaseUserRepo_Update_Call
- func (_e *DatabaseUserRepo_Expecter) UpdateRemark(req interface{}) *DatabaseUserRepo_UpdateRemark_Call
- type DatabaseUserRepo_Get_Call
- func (_c *DatabaseUserRepo_Get_Call) Return(_a0 *biz.DatabaseUser, _a1 error) *DatabaseUserRepo_Get_Call
- func (_c *DatabaseUserRepo_Get_Call) Run(run func(id uint)) *DatabaseUserRepo_Get_Call
- func (_c *DatabaseUserRepo_Get_Call) RunAndReturn(run func(uint) (*biz.DatabaseUser, error)) *DatabaseUserRepo_Get_Call
- type DatabaseUserRepo_List_Call
- func (_c *DatabaseUserRepo_List_Call) Return(_a0 []*biz.DatabaseUser, _a1 int64, _a2 error) *DatabaseUserRepo_List_Call
- func (_c *DatabaseUserRepo_List_Call) Run(run func(page uint, limit uint)) *DatabaseUserRepo_List_Call
- func (_c *DatabaseUserRepo_List_Call) RunAndReturn(run func(uint, uint) ([]*biz.DatabaseUser, int64, error)) *DatabaseUserRepo_List_Call
- type DatabaseUserRepo_UpdateRemark_Call
- func (_c *DatabaseUserRepo_UpdateRemark_Call) Return(_a0 error) *DatabaseUserRepo_UpdateRemark_Call
- func (_c *DatabaseUserRepo_UpdateRemark_Call) Run(run func(req *request.DatabaseUserUpdateRemark)) *DatabaseUserRepo_UpdateRemark_Call
- func (_c *DatabaseUserRepo_UpdateRemark_Call) RunAndReturn(run func(*request.DatabaseUserUpdateRemark) error) *DatabaseUserRepo_UpdateRemark_Call
- type DatabaseUserRepo_Update_Call
- func (_c *DatabaseUserRepo_Update_Call) Return(_a0 error) *DatabaseUserRepo_Update_Call
- func (_c *DatabaseUserRepo_Update_Call) Run(run func(req *request.DatabaseUserUpdate)) *DatabaseUserRepo_Update_Call
- func (_c *DatabaseUserRepo_Update_Call) RunAndReturn(run func(*request.DatabaseUserUpdate) error) *DatabaseUserRepo_Update_Call
- type MonitorRepo
- func (_m *MonitorRepo) Clear() error
- func (_m *MonitorRepo) EXPECT() *MonitorRepo_Expecter
- func (_m *MonitorRepo) GetSetting() (*request.MonitorSetting, error)
- func (_m *MonitorRepo) List(start time.Time, end time.Time) ([]*biz.Monitor, error)
- func (_m *MonitorRepo) UpdateSetting(setting *request.MonitorSetting) error
- type MonitorRepo_Clear_Call
- type MonitorRepo_Expecter
- func (_e *MonitorRepo_Expecter) Clear() *MonitorRepo_Clear_Call
- func (_e *MonitorRepo_Expecter) GetSetting() *MonitorRepo_GetSetting_Call
- func (_e *MonitorRepo_Expecter) List(start interface{}, end interface{}) *MonitorRepo_List_Call
- func (_e *MonitorRepo_Expecter) UpdateSetting(setting interface{}) *MonitorRepo_UpdateSetting_Call
- type MonitorRepo_GetSetting_Call
- func (_c *MonitorRepo_GetSetting_Call) Return(_a0 *request.MonitorSetting, _a1 error) *MonitorRepo_GetSetting_Call
- func (_c *MonitorRepo_GetSetting_Call) Run(run func()) *MonitorRepo_GetSetting_Call
- func (_c *MonitorRepo_GetSetting_Call) RunAndReturn(run func() (*request.MonitorSetting, error)) *MonitorRepo_GetSetting_Call
- type MonitorRepo_List_Call
- func (_c *MonitorRepo_List_Call) Return(_a0 []*biz.Monitor, _a1 error) *MonitorRepo_List_Call
- func (_c *MonitorRepo_List_Call) Run(run func(start time.Time, end time.Time)) *MonitorRepo_List_Call
- func (_c *MonitorRepo_List_Call) RunAndReturn(run func(time.Time, time.Time) ([]*biz.Monitor, error)) *MonitorRepo_List_Call
- type MonitorRepo_UpdateSetting_Call
- func (_c *MonitorRepo_UpdateSetting_Call) Return(_a0 error) *MonitorRepo_UpdateSetting_Call
- func (_c *MonitorRepo_UpdateSetting_Call) Run(run func(setting *request.MonitorSetting)) *MonitorRepo_UpdateSetting_Call
- func (_c *MonitorRepo_UpdateSetting_Call) RunAndReturn(run func(*request.MonitorSetting) error) *MonitorRepo_UpdateSetting_Call
- type SSHRepo
- func (_m *SSHRepo) Create(req *request.SSHCreate) error
- func (_m *SSHRepo) Delete(id uint) error
- func (_m *SSHRepo) EXPECT() *SSHRepo_Expecter
- func (_m *SSHRepo) Get(id uint) (*biz.SSH, error)
- func (_m *SSHRepo) List(page uint, limit uint) ([]*biz.SSH, int64, error)
- func (_m *SSHRepo) Update(req *request.SSHUpdate) error
- type SSHRepo_Create_Call
- type SSHRepo_Delete_Call
- type SSHRepo_Expecter
- func (_e *SSHRepo_Expecter) Create(req interface{}) *SSHRepo_Create_Call
- func (_e *SSHRepo_Expecter) Delete(id interface{}) *SSHRepo_Delete_Call
- func (_e *SSHRepo_Expecter) Get(id interface{}) *SSHRepo_Get_Call
- func (_e *SSHRepo_Expecter) List(page interface{}, limit interface{}) *SSHRepo_List_Call
- func (_e *SSHRepo_Expecter) Update(req interface{}) *SSHRepo_Update_Call
- type SSHRepo_Get_Call
- type SSHRepo_List_Call
- type SSHRepo_Update_Call
- type SafeRepo
- type SafeRepo_Expecter
- func (_e *SafeRepo_Expecter) GetPingStatus() *SafeRepo_GetPingStatus_Call
- func (_e *SafeRepo_Expecter) GetSSH() *SafeRepo_GetSSH_Call
- func (_e *SafeRepo_Expecter) UpdatePingStatus(status interface{}) *SafeRepo_UpdatePingStatus_Call
- func (_e *SafeRepo_Expecter) UpdateSSH(port interface{}, status interface{}) *SafeRepo_UpdateSSH_Call
- type SafeRepo_GetPingStatus_Call
- type SafeRepo_GetSSH_Call
- type SafeRepo_UpdatePingStatus_Call
- func (_c *SafeRepo_UpdatePingStatus_Call) Return(_a0 error) *SafeRepo_UpdatePingStatus_Call
- func (_c *SafeRepo_UpdatePingStatus_Call) Run(run func(status bool)) *SafeRepo_UpdatePingStatus_Call
- func (_c *SafeRepo_UpdatePingStatus_Call) RunAndReturn(run func(bool) error) *SafeRepo_UpdatePingStatus_Call
- type SafeRepo_UpdateSSH_Call
- type SettingRepo
- func (_m *SettingRepo) Delete(key biz.SettingKey) error
- func (_m *SettingRepo) EXPECT() *SettingRepo_Expecter
- func (_m *SettingRepo) Get(key biz.SettingKey, defaultValue ...string) (string, error)
- func (_m *SettingRepo) GetBool(key biz.SettingKey, defaultValue ...bool) (bool, error)
- func (_m *SettingRepo) GetPanelSetting(ctx context.Context) (*request.PanelSetting, error)
- func (_m *SettingRepo) Set(key biz.SettingKey, value string) error
- func (_m *SettingRepo) UpdatePanelSetting(ctx context.Context, setting *request.PanelSetting) (bool, error)
- type SettingRepo_Delete_Call
- type SettingRepo_Expecter
- func (_e *SettingRepo_Expecter) Delete(key interface{}) *SettingRepo_Delete_Call
- func (_e *SettingRepo_Expecter) Get(key interface{}, defaultValue ...interface{}) *SettingRepo_Get_Call
- func (_e *SettingRepo_Expecter) GetBool(key interface{}, defaultValue ...interface{}) *SettingRepo_GetBool_Call
- func (_e *SettingRepo_Expecter) GetPanelSetting(ctx interface{}) *SettingRepo_GetPanelSetting_Call
- func (_e *SettingRepo_Expecter) Set(key interface{}, value interface{}) *SettingRepo_Set_Call
- func (_e *SettingRepo_Expecter) UpdatePanelSetting(ctx interface{}, setting interface{}) *SettingRepo_UpdatePanelSetting_Call
- type SettingRepo_GetBool_Call
- func (_c *SettingRepo_GetBool_Call) Return(_a0 bool, _a1 error) *SettingRepo_GetBool_Call
- func (_c *SettingRepo_GetBool_Call) Run(run func(key biz.SettingKey, defaultValue ...bool)) *SettingRepo_GetBool_Call
- func (_c *SettingRepo_GetBool_Call) RunAndReturn(run func(biz.SettingKey, ...bool) (bool, error)) *SettingRepo_GetBool_Call
- type SettingRepo_GetPanelSetting_Call
- func (_c *SettingRepo_GetPanelSetting_Call) Return(_a0 *request.PanelSetting, _a1 error) *SettingRepo_GetPanelSetting_Call
- func (_c *SettingRepo_GetPanelSetting_Call) Run(run func(ctx context.Context)) *SettingRepo_GetPanelSetting_Call
- func (_c *SettingRepo_GetPanelSetting_Call) RunAndReturn(run func(context.Context) (*request.PanelSetting, error)) *SettingRepo_GetPanelSetting_Call
- type SettingRepo_Get_Call
- func (_c *SettingRepo_Get_Call) Return(_a0 string, _a1 error) *SettingRepo_Get_Call
- func (_c *SettingRepo_Get_Call) Run(run func(key biz.SettingKey, defaultValue ...string)) *SettingRepo_Get_Call
- func (_c *SettingRepo_Get_Call) RunAndReturn(run func(biz.SettingKey, ...string) (string, error)) *SettingRepo_Get_Call
- type SettingRepo_Set_Call
- type SettingRepo_UpdatePanelSetting_Call
- func (_c *SettingRepo_UpdatePanelSetting_Call) Return(_a0 bool, _a1 error) *SettingRepo_UpdatePanelSetting_Call
- func (_c *SettingRepo_UpdatePanelSetting_Call) Run(run func(ctx context.Context, setting *request.PanelSetting)) *SettingRepo_UpdatePanelSetting_Call
- func (_c *SettingRepo_UpdatePanelSetting_Call) RunAndReturn(run func(context.Context, *request.PanelSetting) (bool, error)) *SettingRepo_UpdatePanelSetting_Call
- type TaskRepo
- func (_m *TaskRepo) Delete(id uint) error
- func (_m *TaskRepo) EXPECT() *TaskRepo_Expecter
- func (_m *TaskRepo) Get(id uint) (*biz.Task, error)
- func (_m *TaskRepo) HasRunningTask() bool
- func (_m *TaskRepo) List(page uint, limit uint) ([]*biz.Task, int64, error)
- func (_m *TaskRepo) Push(task *biz.Task) error
- func (_m *TaskRepo) UpdateStatus(id uint, status biz.TaskStatus) error
- type TaskRepo_Delete_Call
- type TaskRepo_Expecter
- func (_e *TaskRepo_Expecter) Delete(id interface{}) *TaskRepo_Delete_Call
- func (_e *TaskRepo_Expecter) Get(id interface{}) *TaskRepo_Get_Call
- func (_e *TaskRepo_Expecter) HasRunningTask() *TaskRepo_HasRunningTask_Call
- func (_e *TaskRepo_Expecter) List(page interface{}, limit interface{}) *TaskRepo_List_Call
- func (_e *TaskRepo_Expecter) Push(task interface{}) *TaskRepo_Push_Call
- func (_e *TaskRepo_Expecter) UpdateStatus(id interface{}, status interface{}) *TaskRepo_UpdateStatus_Call
- type TaskRepo_Get_Call
- type TaskRepo_HasRunningTask_Call
- type TaskRepo_List_Call
- type TaskRepo_Push_Call
- type TaskRepo_UpdateStatus_Call
- func (_c *TaskRepo_UpdateStatus_Call) Return(_a0 error) *TaskRepo_UpdateStatus_Call
- func (_c *TaskRepo_UpdateStatus_Call) Run(run func(id uint, status biz.TaskStatus)) *TaskRepo_UpdateStatus_Call
- func (_c *TaskRepo_UpdateStatus_Call) RunAndReturn(run func(uint, biz.TaskStatus) error) *TaskRepo_UpdateStatus_Call
- type UserRepo
- func (_m *UserRepo) CheckPassword(username string, password string) (*biz.User, error)
- func (_m *UserRepo) Create(username string, password string) (*biz.User, error)
- func (_m *UserRepo) EXPECT() *UserRepo_Expecter
- func (_m *UserRepo) Get(id uint) (*biz.User, error)
- func (_m *UserRepo) Save(user *biz.User) error
- type UserRepo_CheckPassword_Call
- func (_c *UserRepo_CheckPassword_Call) Return(_a0 *biz.User, _a1 error) *UserRepo_CheckPassword_Call
- func (_c *UserRepo_CheckPassword_Call) Run(run func(username string, password string)) *UserRepo_CheckPassword_Call
- func (_c *UserRepo_CheckPassword_Call) RunAndReturn(run func(string, string) (*biz.User, error)) *UserRepo_CheckPassword_Call
- type UserRepo_Create_Call
- func (_c *UserRepo_Create_Call) Return(_a0 *biz.User, _a1 error) *UserRepo_Create_Call
- func (_c *UserRepo_Create_Call) Run(run func(username string, password string)) *UserRepo_Create_Call
- func (_c *UserRepo_Create_Call) RunAndReturn(run func(string, string) (*biz.User, error)) *UserRepo_Create_Call
- type UserRepo_Expecter
- func (_e *UserRepo_Expecter) CheckPassword(username interface{}, password interface{}) *UserRepo_CheckPassword_Call
- func (_e *UserRepo_Expecter) Create(username interface{}, password interface{}) *UserRepo_Create_Call
- func (_e *UserRepo_Expecter) Get(id interface{}) *UserRepo_Get_Call
- func (_e *UserRepo_Expecter) Save(user interface{}) *UserRepo_Save_Call
- type UserRepo_Get_Call
- type UserRepo_Save_Call
- type WebsiteRepo
- func (_m *WebsiteRepo) ClearLog(id uint) error
- func (_m *WebsiteRepo) Count() (int64, error)
- func (_m *WebsiteRepo) Create(req *request.WebsiteCreate) (*biz.Website, error)
- func (_m *WebsiteRepo) Delete(req *request.WebsiteDelete) error
- func (_m *WebsiteRepo) EXPECT() *WebsiteRepo_Expecter
- func (_m *WebsiteRepo) Get(id uint) (*types.WebsiteSetting, error)
- func (_m *WebsiteRepo) GetByName(name string) (*types.WebsiteSetting, error)
- func (_m *WebsiteRepo) GetRewrites() (map[string]string, error)
- func (_m *WebsiteRepo) List(page uint, limit uint) ([]*biz.Website, int64, error)
- func (_m *WebsiteRepo) ObtainCert(ctx context.Context, id uint) error
- func (_m *WebsiteRepo) ResetConfig(id uint) error
- func (_m *WebsiteRepo) Update(req *request.WebsiteUpdate) error
- func (_m *WebsiteRepo) UpdateDefaultConfig(req *request.WebsiteDefaultConfig) error
- func (_m *WebsiteRepo) UpdateRemark(id uint, remark string) error
- func (_m *WebsiteRepo) UpdateStatus(id uint, status bool) error
- type WebsiteRepo_ClearLog_Call
- type WebsiteRepo_Count_Call
- type WebsiteRepo_Create_Call
- func (_c *WebsiteRepo_Create_Call) Return(_a0 *biz.Website, _a1 error) *WebsiteRepo_Create_Call
- func (_c *WebsiteRepo_Create_Call) Run(run func(req *request.WebsiteCreate)) *WebsiteRepo_Create_Call
- func (_c *WebsiteRepo_Create_Call) RunAndReturn(run func(*request.WebsiteCreate) (*biz.Website, error)) *WebsiteRepo_Create_Call
- type WebsiteRepo_Delete_Call
- type WebsiteRepo_Expecter
- func (_e *WebsiteRepo_Expecter) ClearLog(id interface{}) *WebsiteRepo_ClearLog_Call
- func (_e *WebsiteRepo_Expecter) Count() *WebsiteRepo_Count_Call
- func (_e *WebsiteRepo_Expecter) Create(req interface{}) *WebsiteRepo_Create_Call
- func (_e *WebsiteRepo_Expecter) Delete(req interface{}) *WebsiteRepo_Delete_Call
- func (_e *WebsiteRepo_Expecter) Get(id interface{}) *WebsiteRepo_Get_Call
- func (_e *WebsiteRepo_Expecter) GetByName(name interface{}) *WebsiteRepo_GetByName_Call
- func (_e *WebsiteRepo_Expecter) GetRewrites() *WebsiteRepo_GetRewrites_Call
- func (_e *WebsiteRepo_Expecter) List(page interface{}, limit interface{}) *WebsiteRepo_List_Call
- func (_e *WebsiteRepo_Expecter) ObtainCert(ctx interface{}, id interface{}) *WebsiteRepo_ObtainCert_Call
- func (_e *WebsiteRepo_Expecter) ResetConfig(id interface{}) *WebsiteRepo_ResetConfig_Call
- func (_e *WebsiteRepo_Expecter) Update(req interface{}) *WebsiteRepo_Update_Call
- func (_e *WebsiteRepo_Expecter) UpdateDefaultConfig(req interface{}) *WebsiteRepo_UpdateDefaultConfig_Call
- func (_e *WebsiteRepo_Expecter) UpdateRemark(id interface{}, remark interface{}) *WebsiteRepo_UpdateRemark_Call
- func (_e *WebsiteRepo_Expecter) UpdateStatus(id interface{}, status interface{}) *WebsiteRepo_UpdateStatus_Call
- type WebsiteRepo_GetByName_Call
- func (_c *WebsiteRepo_GetByName_Call) Return(_a0 *types.WebsiteSetting, _a1 error) *WebsiteRepo_GetByName_Call
- func (_c *WebsiteRepo_GetByName_Call) Run(run func(name string)) *WebsiteRepo_GetByName_Call
- func (_c *WebsiteRepo_GetByName_Call) RunAndReturn(run func(string) (*types.WebsiteSetting, error)) *WebsiteRepo_GetByName_Call
- type WebsiteRepo_GetRewrites_Call
- func (_c *WebsiteRepo_GetRewrites_Call) Return(_a0 map[string]string, _a1 error) *WebsiteRepo_GetRewrites_Call
- func (_c *WebsiteRepo_GetRewrites_Call) Run(run func()) *WebsiteRepo_GetRewrites_Call
- func (_c *WebsiteRepo_GetRewrites_Call) RunAndReturn(run func() (map[string]string, error)) *WebsiteRepo_GetRewrites_Call
- type WebsiteRepo_Get_Call
- type WebsiteRepo_List_Call
- func (_c *WebsiteRepo_List_Call) Return(_a0 []*biz.Website, _a1 int64, _a2 error) *WebsiteRepo_List_Call
- func (_c *WebsiteRepo_List_Call) Run(run func(page uint, limit uint)) *WebsiteRepo_List_Call
- func (_c *WebsiteRepo_List_Call) RunAndReturn(run func(uint, uint) ([]*biz.Website, int64, error)) *WebsiteRepo_List_Call
- type WebsiteRepo_ObtainCert_Call
- func (_c *WebsiteRepo_ObtainCert_Call) Return(_a0 error) *WebsiteRepo_ObtainCert_Call
- func (_c *WebsiteRepo_ObtainCert_Call) Run(run func(ctx context.Context, id uint)) *WebsiteRepo_ObtainCert_Call
- func (_c *WebsiteRepo_ObtainCert_Call) RunAndReturn(run func(context.Context, uint) error) *WebsiteRepo_ObtainCert_Call
- type WebsiteRepo_ResetConfig_Call
- type WebsiteRepo_UpdateDefaultConfig_Call
- func (_c *WebsiteRepo_UpdateDefaultConfig_Call) Return(_a0 error) *WebsiteRepo_UpdateDefaultConfig_Call
- func (_c *WebsiteRepo_UpdateDefaultConfig_Call) Run(run func(req *request.WebsiteDefaultConfig)) *WebsiteRepo_UpdateDefaultConfig_Call
- func (_c *WebsiteRepo_UpdateDefaultConfig_Call) RunAndReturn(run func(*request.WebsiteDefaultConfig) error) *WebsiteRepo_UpdateDefaultConfig_Call
- type WebsiteRepo_UpdateRemark_Call
- func (_c *WebsiteRepo_UpdateRemark_Call) Return(_a0 error) *WebsiteRepo_UpdateRemark_Call
- func (_c *WebsiteRepo_UpdateRemark_Call) Run(run func(id uint, remark string)) *WebsiteRepo_UpdateRemark_Call
- func (_c *WebsiteRepo_UpdateRemark_Call) RunAndReturn(run func(uint, string) error) *WebsiteRepo_UpdateRemark_Call
- type WebsiteRepo_UpdateStatus_Call
- func (_c *WebsiteRepo_UpdateStatus_Call) Return(_a0 error) *WebsiteRepo_UpdateStatus_Call
- func (_c *WebsiteRepo_UpdateStatus_Call) Run(run func(id uint, status bool)) *WebsiteRepo_UpdateStatus_Call
- func (_c *WebsiteRepo_UpdateStatus_Call) RunAndReturn(run func(uint, bool) error) *WebsiteRepo_UpdateStatus_Call
- type WebsiteRepo_Update_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppRepo ¶
AppRepo is an autogenerated mock type for the AppRepo type
func NewAppRepo ¶
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) EXPECT ¶
func (_m *AppRepo) EXPECT() *AppRepo_Expecter
func (*AppRepo) GetHomeShow ¶
GetHomeShow provides a mock function with no fields
func (*AppRepo) GetInstalled ¶
GetInstalled provides a mock function with given fields: slug
func (*AppRepo) GetInstalledAll ¶
GetInstalledAll provides a mock function with given fields: query, cond
func (*AppRepo) IsInstalled ¶
IsInstalled provides a mock function with given fields: query, cond
func (*AppRepo) UpdateExist ¶
UpdateExist provides a mock function with given fields: slug
type AppRepo_All_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 ¶
func (_e *AppRepo_Expecter) All() *AppRepo_All_Call
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 ¶
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 (_c *AppRepo_GetHomeShow_Call) Return(_a0 []map[string]string, _a1 error) *AppRepo_GetHomeShow_Call
func (*AppRepo_GetHomeShow_Call) Run ¶
func (_c *AppRepo_GetHomeShow_Call) Run(run func()) *AppRepo_GetHomeShow_Call
func (*AppRepo_GetHomeShow_Call) RunAndReturn ¶
func (_c *AppRepo_GetHomeShow_Call) RunAndReturn(run func() ([]map[string]string, error)) *AppRepo_GetHomeShow_Call
type AppRepo_GetInstalledAll_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 (_c *AppRepo_GetInstalledAll_Call) Return(_a0 []*biz.App, _a1 error) *AppRepo_GetInstalledAll_Call
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 ¶
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 (_c *AppRepo_GetInstalled_Call) Return(_a0 *biz.App, _a1 error) *AppRepo_GetInstalled_Call
func (*AppRepo_GetInstalled_Call) Run ¶
func (_c *AppRepo_GetInstalled_Call) Run(run func(slug string)) *AppRepo_GetInstalled_Call
func (*AppRepo_GetInstalled_Call) RunAndReturn ¶
func (_c *AppRepo_GetInstalled_Call) RunAndReturn(run func(string) (*biz.App, error)) *AppRepo_GetInstalled_Call
type AppRepo_Get_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 ¶
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 (_c *AppRepo_Install_Call) Return(_a0 error) *AppRepo_Install_Call
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 ¶
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 ¶
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 (_c *AppRepo_IsInstalled_Call) Return(_a0 bool, _a1 error) *AppRepo_IsInstalled_Call
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 ¶
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 (_c *AppRepo_UnInstall_Call) Return(_a0 error) *AppRepo_UnInstall_Call
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 ¶
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 (_c *AppRepo_UpdateExist_Call) Return(_a0 bool) *AppRepo_UpdateExist_Call
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 ¶
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 (_c *AppRepo_UpdateShow_Call) Return(_a0 error) *AppRepo_UpdateShow_Call
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 ¶
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 (_c *AppRepo_Update_Call) Return(_a0 error) *AppRepo_Update_Call
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 ¶
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 ¶
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 (_c *BackupRepo_ClearExpired_Call) Return(_a0 error) *BackupRepo_ClearExpired_Call
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 ¶
func (_c *BackupRepo_ClearExpired_Call) RunAndReturn(run func(string, string, int) error) *BackupRepo_ClearExpired_Call
type BackupRepo_Create_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 (_c *BackupRepo_Create_Call) Return(_a0 error) *BackupRepo_Create_Call
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 ¶
func (_c *BackupRepo_Create_Call) RunAndReturn(run func(biz.BackupType, string, ...string) error) *BackupRepo_Create_Call
type BackupRepo_CutoffLog_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 (_c *BackupRepo_CutoffLog_Call) Return(_a0 error) *BackupRepo_CutoffLog_Call
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 ¶
func (_c *BackupRepo_CutoffLog_Call) RunAndReturn(run func(string, string) error) *BackupRepo_CutoffLog_Call
type BackupRepo_Delete_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 (_c *BackupRepo_Delete_Call) Return(_a0 error) *BackupRepo_Delete_Call
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 ¶
func (_c *BackupRepo_Delete_Call) RunAndReturn(run func(biz.BackupType, string) error) *BackupRepo_Delete_Call
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 ¶
func (_e *BackupRepo_Expecter) FixPanel() *BackupRepo_FixPanel_Call
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 ¶
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 (_c *BackupRepo_FixPanel_Call) Return(_a0 error) *BackupRepo_FixPanel_Call
func (*BackupRepo_FixPanel_Call) Run ¶
func (_c *BackupRepo_FixPanel_Call) Run(run func()) *BackupRepo_FixPanel_Call
func (*BackupRepo_FixPanel_Call) RunAndReturn ¶
func (_c *BackupRepo_FixPanel_Call) RunAndReturn(run func() error) *BackupRepo_FixPanel_Call
type BackupRepo_GetPath_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 (_c *BackupRepo_GetPath_Call) Return(_a0 string, _a1 error) *BackupRepo_GetPath_Call
func (*BackupRepo_GetPath_Call) Run ¶
func (_c *BackupRepo_GetPath_Call) Run(run func(typ biz.BackupType)) *BackupRepo_GetPath_Call
func (*BackupRepo_GetPath_Call) RunAndReturn ¶
func (_c *BackupRepo_GetPath_Call) RunAndReturn(run func(biz.BackupType) (string, error)) *BackupRepo_GetPath_Call
type BackupRepo_List_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 (_c *BackupRepo_List_Call) Return(_a0 []*types.BackupFile, _a1 error) *BackupRepo_List_Call
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 ¶
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 (_c *BackupRepo_Restore_Call) Return(_a0 error) *BackupRepo_Restore_Call
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 ¶
func (_c *BackupRepo_Restore_Call) RunAndReturn(run func(biz.BackupType, string, string) error) *BackupRepo_Restore_Call
type BackupRepo_UpdatePanel_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 (_c *BackupRepo_UpdatePanel_Call) Return(_a0 error) *BackupRepo_UpdatePanel_Call
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 ¶
func (_c *BackupRepo_UpdatePanel_Call) RunAndReturn(run func(string, string, string) error) *BackupRepo_UpdatePanel_Call
type CacheRepo ¶
CacheRepo is an autogenerated mock type for the CacheRepo type
func NewCacheRepo ¶
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) UpdateApps ¶
UpdateApps provides a mock function with no fields
func (*CacheRepo) UpdateRewrites ¶
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 ¶
func (_e *CacheRepo_Expecter) UpdateApps() *CacheRepo_UpdateApps_Call
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 ¶
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 ¶
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 ¶
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 (_c *CacheRepo_UpdateApps_Call) Return(_a0 error) *CacheRepo_UpdateApps_Call
func (*CacheRepo_UpdateApps_Call) Run ¶
func (_c *CacheRepo_UpdateApps_Call) Run(run func()) *CacheRepo_UpdateApps_Call
func (*CacheRepo_UpdateApps_Call) RunAndReturn ¶
func (_c *CacheRepo_UpdateApps_Call) RunAndReturn(run func() error) *CacheRepo_UpdateApps_Call
type CacheRepo_UpdateRewrites_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 (_c *CacheRepo_UpdateRewrites_Call) Return(_a0 error) *CacheRepo_UpdateRewrites_Call
func (*CacheRepo_UpdateRewrites_Call) Run ¶
func (_c *CacheRepo_UpdateRewrites_Call) Run(run func()) *CacheRepo_UpdateRewrites_Call
func (*CacheRepo_UpdateRewrites_Call) RunAndReturn ¶
func (_c *CacheRepo_UpdateRewrites_Call) RunAndReturn(run func() error) *CacheRepo_UpdateRewrites_Call
type CertAccountRepo ¶
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 ¶
func (_m *CertAccountRepo) Create(req *request.CertAccountCreate) (*biz.CertAccount, error)
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 (_m *CertAccountRepo) EXPECT() *CertAccountRepo_Expecter
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 ¶
func (_m *CertAccountRepo) Update(req *request.CertAccountUpdate) error
Update provides a mock function with given fields: req
type CertAccountRepo_Create_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 (_c *CertAccountRepo_Create_Call) Return(_a0 *biz.CertAccount, _a1 error) *CertAccountRepo_Create_Call
func (*CertAccountRepo_Create_Call) Run ¶
func (_c *CertAccountRepo_Create_Call) Run(run func(req *request.CertAccountCreate)) *CertAccountRepo_Create_Call
func (*CertAccountRepo_Create_Call) RunAndReturn ¶
func (_c *CertAccountRepo_Create_Call) RunAndReturn(run func(*request.CertAccountCreate) (*biz.CertAccount, error)) *CertAccountRepo_Create_Call
type CertAccountRepo_Delete_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 (_c *CertAccountRepo_Delete_Call) Return(_a0 error) *CertAccountRepo_Delete_Call
func (*CertAccountRepo_Delete_Call) Run ¶
func (_c *CertAccountRepo_Delete_Call) Run(run func(id uint)) *CertAccountRepo_Delete_Call
func (*CertAccountRepo_Delete_Call) RunAndReturn ¶
func (_c *CertAccountRepo_Delete_Call) RunAndReturn(run func(uint) error) *CertAccountRepo_Delete_Call
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 ¶
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 (_c *CertAccountRepo_GetDefault_Call) Return(_a0 *biz.CertAccount, _a1 error) *CertAccountRepo_GetDefault_Call
func (*CertAccountRepo_GetDefault_Call) Run ¶
func (_c *CertAccountRepo_GetDefault_Call) Run(run func(userID uint)) *CertAccountRepo_GetDefault_Call
func (*CertAccountRepo_GetDefault_Call) RunAndReturn ¶
func (_c *CertAccountRepo_GetDefault_Call) RunAndReturn(run func(uint) (*biz.CertAccount, error)) *CertAccountRepo_GetDefault_Call
type CertAccountRepo_Get_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 (_c *CertAccountRepo_Get_Call) Return(_a0 *biz.CertAccount, _a1 error) *CertAccountRepo_Get_Call
func (*CertAccountRepo_Get_Call) Run ¶
func (_c *CertAccountRepo_Get_Call) Run(run func(id uint)) *CertAccountRepo_Get_Call
func (*CertAccountRepo_Get_Call) RunAndReturn ¶
func (_c *CertAccountRepo_Get_Call) RunAndReturn(run func(uint) (*biz.CertAccount, error)) *CertAccountRepo_Get_Call
type CertAccountRepo_List_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 (_c *CertAccountRepo_List_Call) Return(_a0 []*biz.CertAccount, _a1 int64, _a2 error) *CertAccountRepo_List_Call
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 ¶
func (_c *CertAccountRepo_List_Call) RunAndReturn(run func(uint, uint) ([]*biz.CertAccount, int64, error)) *CertAccountRepo_List_Call
type CertAccountRepo_Update_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 (_c *CertAccountRepo_Update_Call) Return(_a0 error) *CertAccountRepo_Update_Call
func (*CertAccountRepo_Update_Call) Run ¶
func (_c *CertAccountRepo_Update_Call) Run(run func(req *request.CertAccountUpdate)) *CertAccountRepo_Update_Call
func (*CertAccountRepo_Update_Call) RunAndReturn ¶
func (_c *CertAccountRepo_Update_Call) RunAndReturn(run func(*request.CertAccountUpdate) error) *CertAccountRepo_Update_Call
type CertDNSRepo ¶
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) Update ¶
func (_m *CertDNSRepo) Update(req *request.CertDNSUpdate) error
Update provides a mock function with given fields: req
type CertDNSRepo_Create_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 (_c *CertDNSRepo_Create_Call) Return(_a0 *biz.CertDNS, _a1 error) *CertDNSRepo_Create_Call
func (*CertDNSRepo_Create_Call) Run ¶
func (_c *CertDNSRepo_Create_Call) Run(run func(req *request.CertDNSCreate)) *CertDNSRepo_Create_Call
func (*CertDNSRepo_Create_Call) RunAndReturn ¶
func (_c *CertDNSRepo_Create_Call) RunAndReturn(run func(*request.CertDNSCreate) (*biz.CertDNS, error)) *CertDNSRepo_Create_Call
type CertDNSRepo_Delete_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 (_c *CertDNSRepo_Delete_Call) Return(_a0 error) *CertDNSRepo_Delete_Call
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 ¶
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 (_c *CertDNSRepo_Get_Call) Return(_a0 *biz.CertDNS, _a1 error) *CertDNSRepo_Get_Call
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 ¶
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 ¶
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 (_c *CertDNSRepo_Update_Call) Return(_a0 error) *CertDNSRepo_Update_Call
func (*CertDNSRepo_Update_Call) Run ¶
func (_c *CertDNSRepo_Update_Call) Run(run func(req *request.CertDNSUpdate)) *CertDNSRepo_Update_Call
func (*CertDNSRepo_Update_Call) RunAndReturn ¶
func (_c *CertDNSRepo_Update_Call) RunAndReturn(run func(*request.CertDNSUpdate) error) *CertDNSRepo_Update_Call
type CertRepo ¶
CertRepo is an autogenerated mock type for the CertRepo type
func NewCertRepo ¶
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) EXPECT ¶
func (_m *CertRepo) EXPECT() *CertRepo_Expecter
func (*CertRepo) GetByWebsite ¶
GetByWebsite provides a mock function with given fields: WebsiteID
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 ¶
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
type CertRepo_Create_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 (_c *CertRepo_Create_Call) Run(run func(req *request.CertCreate)) *CertRepo_Create_Call
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 ¶
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 (_c *CertRepo_Delete_Call) Return(_a0 error) *CertRepo_Delete_Call
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 ¶
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 (_c *CertRepo_Deploy_Call) Return(_a0 error) *CertRepo_Deploy_Call
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 ¶
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 (_c *CertRepo_GetByWebsite_Call) Return(_a0 *biz.Cert, _a1 error) *CertRepo_GetByWebsite_Call
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 ¶
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 ¶
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 ¶
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 (_c *CertRepo_ManualDNS_Call) Return(_a0 []acme.DNSRecord, _a1 error) *CertRepo_ManualDNS_Call
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 ¶
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 (_c *CertRepo_ObtainAuto_Call) Return(_a0 *acme.Certificate, _a1 error) *CertRepo_ObtainAuto_Call
func (*CertRepo_ObtainAuto_Call) Run ¶
func (_c *CertRepo_ObtainAuto_Call) Run(run func(id uint)) *CertRepo_ObtainAuto_Call
func (*CertRepo_ObtainAuto_Call) RunAndReturn ¶
func (_c *CertRepo_ObtainAuto_Call) RunAndReturn(run func(uint) (*acme.Certificate, error)) *CertRepo_ObtainAuto_Call
type CertRepo_ObtainManual_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 (_c *CertRepo_ObtainManual_Call) Return(_a0 *acme.Certificate, _a1 error) *CertRepo_ObtainManual_Call
func (*CertRepo_ObtainManual_Call) Run ¶
func (_c *CertRepo_ObtainManual_Call) Run(run func(id uint)) *CertRepo_ObtainManual_Call
func (*CertRepo_ObtainManual_Call) RunAndReturn ¶
func (_c *CertRepo_ObtainManual_Call) RunAndReturn(run func(uint) (*acme.Certificate, error)) *CertRepo_ObtainManual_Call
type CertRepo_ObtainSelfSigned_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 (_c *CertRepo_ObtainSelfSigned_Call) Return(_a0 error) *CertRepo_ObtainSelfSigned_Call
func (*CertRepo_ObtainSelfSigned_Call) Run ¶
func (_c *CertRepo_ObtainSelfSigned_Call) Run(run func(id uint)) *CertRepo_ObtainSelfSigned_Call
func (*CertRepo_ObtainSelfSigned_Call) RunAndReturn ¶
func (_c *CertRepo_ObtainSelfSigned_Call) RunAndReturn(run func(uint) error) *CertRepo_ObtainSelfSigned_Call
type CertRepo_Renew_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 (_c *CertRepo_Renew_Call) Return(_a0 *acme.Certificate, _a1 error) *CertRepo_Renew_Call
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 ¶
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 (_c *CertRepo_Update_Call) Return(_a0 error) *CertRepo_Update_Call
func (*CertRepo_Update_Call) Run ¶
func (_c *CertRepo_Update_Call) Run(run func(req *request.CertUpdate)) *CertRepo_Update_Call
func (*CertRepo_Update_Call) RunAndReturn ¶
func (_c *CertRepo_Update_Call) RunAndReturn(run func(*request.CertUpdate) error) *CertRepo_Update_Call
type CertRepo_Upload_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 (_c *CertRepo_Upload_Call) Run(run func(req *request.CertUpload)) *CertRepo_Upload_Call
func (*CertRepo_Upload_Call) RunAndReturn ¶
func (_c *CertRepo_Upload_Call) RunAndReturn(run func(*request.CertUpload) (*biz.Cert, error)) *CertRepo_Upload_Call
type ContainerImageRepo ¶
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 (_m *ContainerImageRepo) EXPECT() *ContainerImageRepo_Expecter
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 ¶
func (_m *ContainerImageRepo) Pull(req *request.ContainerImagePull) error
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 ¶
func (_e *ContainerImageRepo_Expecter) List() *ContainerImageRepo_List_Call
List is a helper method to define mock.On call
func (*ContainerImageRepo_Expecter) Prune ¶
func (_e *ContainerImageRepo_Expecter) Prune() *ContainerImageRepo_Prune_Call
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 ¶
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 (_c *ContainerImageRepo_List_Call) Return(_a0 []types.ContainerImage, _a1 error) *ContainerImageRepo_List_Call
func (*ContainerImageRepo_List_Call) Run ¶
func (_c *ContainerImageRepo_List_Call) Run(run func()) *ContainerImageRepo_List_Call
func (*ContainerImageRepo_List_Call) RunAndReturn ¶
func (_c *ContainerImageRepo_List_Call) RunAndReturn(run func() ([]types.ContainerImage, error)) *ContainerImageRepo_List_Call
type ContainerImageRepo_Prune_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 (_c *ContainerImageRepo_Prune_Call) Return(_a0 error) *ContainerImageRepo_Prune_Call
func (*ContainerImageRepo_Prune_Call) Run ¶
func (_c *ContainerImageRepo_Prune_Call) Run(run func()) *ContainerImageRepo_Prune_Call
func (*ContainerImageRepo_Prune_Call) RunAndReturn ¶
func (_c *ContainerImageRepo_Prune_Call) RunAndReturn(run func() error) *ContainerImageRepo_Prune_Call
type ContainerImageRepo_Pull_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 (_c *ContainerImageRepo_Pull_Call) Return(_a0 error) *ContainerImageRepo_Pull_Call
func (*ContainerImageRepo_Pull_Call) Run ¶
func (_c *ContainerImageRepo_Pull_Call) Run(run func(req *request.ContainerImagePull)) *ContainerImageRepo_Pull_Call
func (*ContainerImageRepo_Pull_Call) RunAndReturn ¶
func (_c *ContainerImageRepo_Pull_Call) RunAndReturn(run func(*request.ContainerImagePull) error) *ContainerImageRepo_Pull_Call
type ContainerImageRepo_Remove_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 (_c *ContainerImageRepo_Remove_Call) Return(_a0 error) *ContainerImageRepo_Remove_Call
func (*ContainerImageRepo_Remove_Call) Run ¶
func (_c *ContainerImageRepo_Remove_Call) Run(run func(id string)) *ContainerImageRepo_Remove_Call
func (*ContainerImageRepo_Remove_Call) RunAndReturn ¶
func (_c *ContainerImageRepo_Remove_Call) RunAndReturn(run func(string) error) *ContainerImageRepo_Remove_Call
type ContainerNetworkRepo ¶
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 ¶
func (_m *ContainerNetworkRepo) Create(req *request.ContainerNetworkCreate) (string, error)
Create provides a mock function with given fields: req
func (*ContainerNetworkRepo) EXPECT ¶
func (_m *ContainerNetworkRepo) EXPECT() *ContainerNetworkRepo_Expecter
func (*ContainerNetworkRepo) List ¶
func (_m *ContainerNetworkRepo) List() ([]types.ContainerNetwork, error)
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 ¶
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 (_c *ContainerNetworkRepo_Create_Call) Return(_a0 string, _a1 error) *ContainerNetworkRepo_Create_Call
func (*ContainerNetworkRepo_Create_Call) Run ¶
func (_c *ContainerNetworkRepo_Create_Call) Run(run func(req *request.ContainerNetworkCreate)) *ContainerNetworkRepo_Create_Call
func (*ContainerNetworkRepo_Create_Call) RunAndReturn ¶
func (_c *ContainerNetworkRepo_Create_Call) RunAndReturn(run func(*request.ContainerNetworkCreate) (string, error)) *ContainerNetworkRepo_Create_Call
type ContainerNetworkRepo_Expecter ¶
type ContainerNetworkRepo_Expecter struct {
// contains filtered or unexported fields
}
func (*ContainerNetworkRepo_Expecter) Create ¶
func (_e *ContainerNetworkRepo_Expecter) Create(req interface{}) *ContainerNetworkRepo_Create_Call
Create is a helper method to define mock.On call
- req *request.ContainerNetworkCreate
func (*ContainerNetworkRepo_Expecter) List ¶
func (_e *ContainerNetworkRepo_Expecter) List() *ContainerNetworkRepo_List_Call
List is a helper method to define mock.On call
func (*ContainerNetworkRepo_Expecter) Prune ¶
func (_e *ContainerNetworkRepo_Expecter) Prune() *ContainerNetworkRepo_Prune_Call
Prune is a helper method to define mock.On call
func (*ContainerNetworkRepo_Expecter) Remove ¶
func (_e *ContainerNetworkRepo_Expecter) Remove(id interface{}) *ContainerNetworkRepo_Remove_Call
Remove is a helper method to define mock.On call
- id string
type ContainerNetworkRepo_List_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 (_c *ContainerNetworkRepo_List_Call) Return(_a0 []types.ContainerNetwork, _a1 error) *ContainerNetworkRepo_List_Call
func (*ContainerNetworkRepo_List_Call) Run ¶
func (_c *ContainerNetworkRepo_List_Call) Run(run func()) *ContainerNetworkRepo_List_Call
func (*ContainerNetworkRepo_List_Call) RunAndReturn ¶
func (_c *ContainerNetworkRepo_List_Call) RunAndReturn(run func() ([]types.ContainerNetwork, error)) *ContainerNetworkRepo_List_Call
type ContainerNetworkRepo_Prune_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 (_c *ContainerNetworkRepo_Prune_Call) Return(_a0 error) *ContainerNetworkRepo_Prune_Call
func (*ContainerNetworkRepo_Prune_Call) Run ¶
func (_c *ContainerNetworkRepo_Prune_Call) Run(run func()) *ContainerNetworkRepo_Prune_Call
func (*ContainerNetworkRepo_Prune_Call) RunAndReturn ¶
func (_c *ContainerNetworkRepo_Prune_Call) RunAndReturn(run func() error) *ContainerNetworkRepo_Prune_Call
type ContainerNetworkRepo_Remove_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 (_c *ContainerNetworkRepo_Remove_Call) Return(_a0 error) *ContainerNetworkRepo_Remove_Call
func (*ContainerNetworkRepo_Remove_Call) Run ¶
func (_c *ContainerNetworkRepo_Remove_Call) Run(run func(id string)) *ContainerNetworkRepo_Remove_Call
func (*ContainerNetworkRepo_Remove_Call) RunAndReturn ¶
func (_c *ContainerNetworkRepo_Remove_Call) RunAndReturn(run func(string) error) *ContainerNetworkRepo_Remove_Call
type ContainerRepo ¶
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 ¶
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 (_c *ContainerRepo_Create_Call) Return(_a0 string, _a1 error) *ContainerRepo_Create_Call
func (*ContainerRepo_Create_Call) Run ¶
func (_c *ContainerRepo_Create_Call) Run(run func(req *request.ContainerCreate)) *ContainerRepo_Create_Call
func (*ContainerRepo_Create_Call) RunAndReturn ¶
func (_c *ContainerRepo_Create_Call) RunAndReturn(run func(*request.ContainerCreate) (string, error)) *ContainerRepo_Create_Call
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 ¶
func (_e *ContainerRepo_Expecter) ListAll() *ContainerRepo_ListAll_Call
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 ¶
func (_e *ContainerRepo_Expecter) Prune() *ContainerRepo_Prune_Call
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 ¶
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 (_c *ContainerRepo_Kill_Call) Return(_a0 error) *ContainerRepo_Kill_Call
func (*ContainerRepo_Kill_Call) Run ¶
func (_c *ContainerRepo_Kill_Call) Run(run func(id string)) *ContainerRepo_Kill_Call
func (*ContainerRepo_Kill_Call) RunAndReturn ¶
func (_c *ContainerRepo_Kill_Call) RunAndReturn(run func(string) error) *ContainerRepo_Kill_Call
type ContainerRepo_ListAll_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 (_c *ContainerRepo_ListAll_Call) Return(_a0 []types.Container, _a1 error) *ContainerRepo_ListAll_Call
func (*ContainerRepo_ListAll_Call) Run ¶
func (_c *ContainerRepo_ListAll_Call) Run(run func()) *ContainerRepo_ListAll_Call
func (*ContainerRepo_ListAll_Call) RunAndReturn ¶
func (_c *ContainerRepo_ListAll_Call) RunAndReturn(run func() ([]types.Container, error)) *ContainerRepo_ListAll_Call
type ContainerRepo_ListByName_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 (_c *ContainerRepo_ListByName_Call) Return(_a0 []types.Container, _a1 error) *ContainerRepo_ListByName_Call
func (*ContainerRepo_ListByName_Call) Run ¶
func (_c *ContainerRepo_ListByName_Call) Run(run func(name string)) *ContainerRepo_ListByName_Call
func (*ContainerRepo_ListByName_Call) RunAndReturn ¶
func (_c *ContainerRepo_ListByName_Call) RunAndReturn(run func(string) ([]types.Container, error)) *ContainerRepo_ListByName_Call
type ContainerRepo_Logs_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 (_c *ContainerRepo_Logs_Call) Return(_a0 string, _a1 error) *ContainerRepo_Logs_Call
func (*ContainerRepo_Logs_Call) Run ¶
func (_c *ContainerRepo_Logs_Call) Run(run func(id string)) *ContainerRepo_Logs_Call
func (*ContainerRepo_Logs_Call) RunAndReturn ¶
func (_c *ContainerRepo_Logs_Call) RunAndReturn(run func(string) (string, error)) *ContainerRepo_Logs_Call
type ContainerRepo_Pause_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 (_c *ContainerRepo_Pause_Call) Return(_a0 error) *ContainerRepo_Pause_Call
func (*ContainerRepo_Pause_Call) Run ¶
func (_c *ContainerRepo_Pause_Call) Run(run func(id string)) *ContainerRepo_Pause_Call
func (*ContainerRepo_Pause_Call) RunAndReturn ¶
func (_c *ContainerRepo_Pause_Call) RunAndReturn(run func(string) error) *ContainerRepo_Pause_Call
type ContainerRepo_Prune_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 (_c *ContainerRepo_Prune_Call) Return(_a0 error) *ContainerRepo_Prune_Call
func (*ContainerRepo_Prune_Call) Run ¶
func (_c *ContainerRepo_Prune_Call) Run(run func()) *ContainerRepo_Prune_Call
func (*ContainerRepo_Prune_Call) RunAndReturn ¶
func (_c *ContainerRepo_Prune_Call) RunAndReturn(run func() error) *ContainerRepo_Prune_Call
type ContainerRepo_Remove_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 (_c *ContainerRepo_Remove_Call) Return(_a0 error) *ContainerRepo_Remove_Call
func (*ContainerRepo_Remove_Call) Run ¶
func (_c *ContainerRepo_Remove_Call) Run(run func(id string)) *ContainerRepo_Remove_Call
func (*ContainerRepo_Remove_Call) RunAndReturn ¶
func (_c *ContainerRepo_Remove_Call) RunAndReturn(run func(string) error) *ContainerRepo_Remove_Call
type ContainerRepo_Rename_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 (_c *ContainerRepo_Rename_Call) Return(_a0 error) *ContainerRepo_Rename_Call
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 ¶
func (_c *ContainerRepo_Rename_Call) RunAndReturn(run func(string, string) error) *ContainerRepo_Rename_Call
type ContainerRepo_Restart_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 (_c *ContainerRepo_Restart_Call) Return(_a0 error) *ContainerRepo_Restart_Call
func (*ContainerRepo_Restart_Call) Run ¶
func (_c *ContainerRepo_Restart_Call) Run(run func(id string)) *ContainerRepo_Restart_Call
func (*ContainerRepo_Restart_Call) RunAndReturn ¶
func (_c *ContainerRepo_Restart_Call) RunAndReturn(run func(string) error) *ContainerRepo_Restart_Call
type ContainerRepo_Start_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 (_c *ContainerRepo_Start_Call) Return(_a0 error) *ContainerRepo_Start_Call
func (*ContainerRepo_Start_Call) Run ¶
func (_c *ContainerRepo_Start_Call) Run(run func(id string)) *ContainerRepo_Start_Call
func (*ContainerRepo_Start_Call) RunAndReturn ¶
func (_c *ContainerRepo_Start_Call) RunAndReturn(run func(string) error) *ContainerRepo_Start_Call
type ContainerRepo_Stop_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 (_c *ContainerRepo_Stop_Call) Return(_a0 error) *ContainerRepo_Stop_Call
func (*ContainerRepo_Stop_Call) Run ¶
func (_c *ContainerRepo_Stop_Call) Run(run func(id string)) *ContainerRepo_Stop_Call
func (*ContainerRepo_Stop_Call) RunAndReturn ¶
func (_c *ContainerRepo_Stop_Call) RunAndReturn(run func(string) error) *ContainerRepo_Stop_Call
type ContainerRepo_Unpause_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 (_c *ContainerRepo_Unpause_Call) Return(_a0 error) *ContainerRepo_Unpause_Call
func (*ContainerRepo_Unpause_Call) Run ¶
func (_c *ContainerRepo_Unpause_Call) Run(run func(id string)) *ContainerRepo_Unpause_Call
func (*ContainerRepo_Unpause_Call) RunAndReturn ¶
func (_c *ContainerRepo_Unpause_Call) RunAndReturn(run func(string) error) *ContainerRepo_Unpause_Call
type ContainerVolumeRepo ¶
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 ¶
func (_m *ContainerVolumeRepo) Create(req *request.ContainerVolumeCreate) (string, error)
Create provides a mock function with given fields: req
func (*ContainerVolumeRepo) EXPECT ¶
func (_m *ContainerVolumeRepo) EXPECT() *ContainerVolumeRepo_Expecter
func (*ContainerVolumeRepo) List ¶
func (_m *ContainerVolumeRepo) List() ([]types.ContainerVolume, error)
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 ¶
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 (_c *ContainerVolumeRepo_Create_Call) Return(_a0 string, _a1 error) *ContainerVolumeRepo_Create_Call
func (*ContainerVolumeRepo_Create_Call) Run ¶
func (_c *ContainerVolumeRepo_Create_Call) Run(run func(req *request.ContainerVolumeCreate)) *ContainerVolumeRepo_Create_Call
func (*ContainerVolumeRepo_Create_Call) RunAndReturn ¶
func (_c *ContainerVolumeRepo_Create_Call) RunAndReturn(run func(*request.ContainerVolumeCreate) (string, error)) *ContainerVolumeRepo_Create_Call
type ContainerVolumeRepo_Expecter ¶
type ContainerVolumeRepo_Expecter struct {
// contains filtered or unexported fields
}
func (*ContainerVolumeRepo_Expecter) Create ¶
func (_e *ContainerVolumeRepo_Expecter) Create(req interface{}) *ContainerVolumeRepo_Create_Call
Create is a helper method to define mock.On call
- req *request.ContainerVolumeCreate
func (*ContainerVolumeRepo_Expecter) List ¶
func (_e *ContainerVolumeRepo_Expecter) List() *ContainerVolumeRepo_List_Call
List is a helper method to define mock.On call
func (*ContainerVolumeRepo_Expecter) Prune ¶
func (_e *ContainerVolumeRepo_Expecter) Prune() *ContainerVolumeRepo_Prune_Call
Prune is a helper method to define mock.On call
func (*ContainerVolumeRepo_Expecter) Remove ¶
func (_e *ContainerVolumeRepo_Expecter) Remove(id interface{}) *ContainerVolumeRepo_Remove_Call
Remove is a helper method to define mock.On call
- id string
type ContainerVolumeRepo_List_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 (_c *ContainerVolumeRepo_List_Call) Return(_a0 []types.ContainerVolume, _a1 error) *ContainerVolumeRepo_List_Call
func (*ContainerVolumeRepo_List_Call) Run ¶
func (_c *ContainerVolumeRepo_List_Call) Run(run func()) *ContainerVolumeRepo_List_Call
func (*ContainerVolumeRepo_List_Call) RunAndReturn ¶
func (_c *ContainerVolumeRepo_List_Call) RunAndReturn(run func() ([]types.ContainerVolume, error)) *ContainerVolumeRepo_List_Call
type ContainerVolumeRepo_Prune_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 (_c *ContainerVolumeRepo_Prune_Call) Return(_a0 error) *ContainerVolumeRepo_Prune_Call
func (*ContainerVolumeRepo_Prune_Call) Run ¶
func (_c *ContainerVolumeRepo_Prune_Call) Run(run func()) *ContainerVolumeRepo_Prune_Call
func (*ContainerVolumeRepo_Prune_Call) RunAndReturn ¶
func (_c *ContainerVolumeRepo_Prune_Call) RunAndReturn(run func() error) *ContainerVolumeRepo_Prune_Call
type ContainerVolumeRepo_Remove_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 (_c *ContainerVolumeRepo_Remove_Call) Return(_a0 error) *ContainerVolumeRepo_Remove_Call
func (*ContainerVolumeRepo_Remove_Call) Run ¶
func (_c *ContainerVolumeRepo_Remove_Call) Run(run func(id string)) *ContainerVolumeRepo_Remove_Call
func (*ContainerVolumeRepo_Remove_Call) RunAndReturn ¶
func (_c *ContainerVolumeRepo_Remove_Call) RunAndReturn(run func(string) error) *ContainerVolumeRepo_Remove_Call
type CronRepo ¶
CronRepo is an autogenerated mock type for the CronRepo type
func NewCronRepo ¶
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) Create ¶
func (_m *CronRepo) Create(req *request.CronCreate) error
Create provides a mock function with given fields: req
func (*CronRepo) EXPECT ¶
func (_m *CronRepo) EXPECT() *CronRepo_Expecter
type CronRepo_Count_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 ¶
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 (_c *CronRepo_Create_Call) Return(_a0 error) *CronRepo_Create_Call
func (*CronRepo_Create_Call) Run ¶
func (_c *CronRepo_Create_Call) Run(run func(req *request.CronCreate)) *CronRepo_Create_Call
func (*CronRepo_Create_Call) RunAndReturn ¶
func (_c *CronRepo_Create_Call) RunAndReturn(run func(*request.CronCreate) error) *CronRepo_Create_Call
type CronRepo_Delete_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 (_c *CronRepo_Delete_Call) Return(_a0 error) *CronRepo_Delete_Call
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 ¶
func (_e *CronRepo_Expecter) Count() *CronRepo_Count_Call
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 ¶
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 ¶
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 ¶
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 (_c *CronRepo_Status_Call) Return(_a0 error) *CronRepo_Status_Call
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 ¶
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 (_c *CronRepo_Update_Call) Return(_a0 error) *CronRepo_Update_Call
func (*CronRepo_Update_Call) Run ¶
func (_c *CronRepo_Update_Call) Run(run func(req *request.CronUpdate)) *CronRepo_Update_Call
func (*CronRepo_Update_Call) RunAndReturn ¶
func (_c *CronRepo_Update_Call) RunAndReturn(run func(*request.CronUpdate) error) *CronRepo_Update_Call
type DatabaseRepo ¶
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
type DatabaseRepo_Comment_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 (_c *DatabaseRepo_Comment_Call) Return(_a0 error) *DatabaseRepo_Comment_Call
func (*DatabaseRepo_Comment_Call) Run ¶
func (_c *DatabaseRepo_Comment_Call) Run(run func(req *request.DatabaseComment)) *DatabaseRepo_Comment_Call
func (*DatabaseRepo_Comment_Call) RunAndReturn ¶
func (_c *DatabaseRepo_Comment_Call) RunAndReturn(run func(*request.DatabaseComment) error) *DatabaseRepo_Comment_Call
type DatabaseRepo_Create_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 (_c *DatabaseRepo_Create_Call) Return(_a0 error) *DatabaseRepo_Create_Call
func (*DatabaseRepo_Create_Call) Run ¶
func (_c *DatabaseRepo_Create_Call) Run(run func(req *request.DatabaseCreate)) *DatabaseRepo_Create_Call
func (*DatabaseRepo_Create_Call) RunAndReturn ¶
func (_c *DatabaseRepo_Create_Call) RunAndReturn(run func(*request.DatabaseCreate) error) *DatabaseRepo_Create_Call
type DatabaseRepo_Delete_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 (_c *DatabaseRepo_Delete_Call) Return(_a0 error) *DatabaseRepo_Delete_Call
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 ¶
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 ¶
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 ¶
func (_m *DatabaseServerRepo) Create(req *request.DatabaseServerCreate) error
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 (_m *DatabaseServerRepo) EXPECT() *DatabaseServerRepo_Expecter
func (*DatabaseServerRepo) Get ¶
func (_m *DatabaseServerRepo) Get(id uint) (*biz.DatabaseServer, error)
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 ¶
func (_m *DatabaseServerRepo) Update(req *request.DatabaseServerUpdate) error
Update provides a mock function with given fields: req
func (*DatabaseServerRepo) UpdateRemark ¶
func (_m *DatabaseServerRepo) UpdateRemark(req *request.DatabaseServerUpdateRemark) error
UpdateRemark provides a mock function with given fields: req
type DatabaseServerRepo_ClearUsers_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 (_c *DatabaseServerRepo_ClearUsers_Call) Return(_a0 error) *DatabaseServerRepo_ClearUsers_Call
func (*DatabaseServerRepo_ClearUsers_Call) Run ¶
func (_c *DatabaseServerRepo_ClearUsers_Call) Run(run func(id uint)) *DatabaseServerRepo_ClearUsers_Call
func (*DatabaseServerRepo_ClearUsers_Call) RunAndReturn ¶
func (_c *DatabaseServerRepo_ClearUsers_Call) RunAndReturn(run func(uint) error) *DatabaseServerRepo_ClearUsers_Call
type DatabaseServerRepo_Count_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 (_c *DatabaseServerRepo_Count_Call) Return(_a0 int64, _a1 error) *DatabaseServerRepo_Count_Call
func (*DatabaseServerRepo_Count_Call) Run ¶
func (_c *DatabaseServerRepo_Count_Call) Run(run func()) *DatabaseServerRepo_Count_Call
func (*DatabaseServerRepo_Count_Call) RunAndReturn ¶
func (_c *DatabaseServerRepo_Count_Call) RunAndReturn(run func() (int64, error)) *DatabaseServerRepo_Count_Call
type DatabaseServerRepo_Create_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 (_c *DatabaseServerRepo_Create_Call) Return(_a0 error) *DatabaseServerRepo_Create_Call
func (*DatabaseServerRepo_Create_Call) Run ¶
func (_c *DatabaseServerRepo_Create_Call) Run(run func(req *request.DatabaseServerCreate)) *DatabaseServerRepo_Create_Call
func (*DatabaseServerRepo_Create_Call) RunAndReturn ¶
func (_c *DatabaseServerRepo_Create_Call) RunAndReturn(run func(*request.DatabaseServerCreate) error) *DatabaseServerRepo_Create_Call
type DatabaseServerRepo_Delete_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 (_c *DatabaseServerRepo_Delete_Call) Return(_a0 error) *DatabaseServerRepo_Delete_Call
func (*DatabaseServerRepo_Delete_Call) Run ¶
func (_c *DatabaseServerRepo_Delete_Call) Run(run func(id uint)) *DatabaseServerRepo_Delete_Call
func (*DatabaseServerRepo_Delete_Call) RunAndReturn ¶
func (_c *DatabaseServerRepo_Delete_Call) RunAndReturn(run func(uint) error) *DatabaseServerRepo_Delete_Call
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 ¶
func (_e *DatabaseServerRepo_Expecter) Count() *DatabaseServerRepo_Count_Call
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 ¶
func (_e *DatabaseServerRepo_Expecter) Get(id interface{}) *DatabaseServerRepo_Get_Call
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 ¶
func (_e *DatabaseServerRepo_Expecter) Sync(id interface{}) *DatabaseServerRepo_Sync_Call
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 ¶
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 (_c *DatabaseServerRepo_GetByName_Call) Return(_a0 *biz.DatabaseServer, _a1 error) *DatabaseServerRepo_GetByName_Call
func (*DatabaseServerRepo_GetByName_Call) Run ¶
func (_c *DatabaseServerRepo_GetByName_Call) Run(run func(name string)) *DatabaseServerRepo_GetByName_Call
func (*DatabaseServerRepo_GetByName_Call) RunAndReturn ¶
func (_c *DatabaseServerRepo_GetByName_Call) RunAndReturn(run func(string) (*biz.DatabaseServer, error)) *DatabaseServerRepo_GetByName_Call
type DatabaseServerRepo_Get_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 (_c *DatabaseServerRepo_Get_Call) Return(_a0 *biz.DatabaseServer, _a1 error) *DatabaseServerRepo_Get_Call
func (*DatabaseServerRepo_Get_Call) Run ¶
func (_c *DatabaseServerRepo_Get_Call) Run(run func(id uint)) *DatabaseServerRepo_Get_Call
func (*DatabaseServerRepo_Get_Call) RunAndReturn ¶
func (_c *DatabaseServerRepo_Get_Call) RunAndReturn(run func(uint) (*biz.DatabaseServer, error)) *DatabaseServerRepo_Get_Call
type DatabaseServerRepo_List_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 (_c *DatabaseServerRepo_List_Call) Return(_a0 []*biz.DatabaseServer, _a1 int64, _a2 error) *DatabaseServerRepo_List_Call
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 ¶
func (_c *DatabaseServerRepo_List_Call) RunAndReturn(run func(uint, uint) ([]*biz.DatabaseServer, int64, error)) *DatabaseServerRepo_List_Call
type DatabaseServerRepo_Sync_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 (_c *DatabaseServerRepo_Sync_Call) Return(_a0 error) *DatabaseServerRepo_Sync_Call
func (*DatabaseServerRepo_Sync_Call) Run ¶
func (_c *DatabaseServerRepo_Sync_Call) Run(run func(id uint)) *DatabaseServerRepo_Sync_Call
func (*DatabaseServerRepo_Sync_Call) RunAndReturn ¶
func (_c *DatabaseServerRepo_Sync_Call) RunAndReturn(run func(uint) error) *DatabaseServerRepo_Sync_Call
type DatabaseServerRepo_UpdateRemark_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 (_c *DatabaseServerRepo_UpdateRemark_Call) Return(_a0 error) *DatabaseServerRepo_UpdateRemark_Call
func (*DatabaseServerRepo_UpdateRemark_Call) Run ¶
func (_c *DatabaseServerRepo_UpdateRemark_Call) Run(run func(req *request.DatabaseServerUpdateRemark)) *DatabaseServerRepo_UpdateRemark_Call
func (*DatabaseServerRepo_UpdateRemark_Call) RunAndReturn ¶
func (_c *DatabaseServerRepo_UpdateRemark_Call) RunAndReturn(run func(*request.DatabaseServerUpdateRemark) error) *DatabaseServerRepo_UpdateRemark_Call
type DatabaseServerRepo_Update_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 (_c *DatabaseServerRepo_Update_Call) Return(_a0 error) *DatabaseServerRepo_Update_Call
func (*DatabaseServerRepo_Update_Call) Run ¶
func (_c *DatabaseServerRepo_Update_Call) Run(run func(req *request.DatabaseServerUpdate)) *DatabaseServerRepo_Update_Call
func (*DatabaseServerRepo_Update_Call) RunAndReturn ¶
func (_c *DatabaseServerRepo_Update_Call) RunAndReturn(run func(*request.DatabaseServerUpdate) error) *DatabaseServerRepo_Update_Call
type DatabaseUserRepo ¶
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 ¶
func (_m *DatabaseUserRepo) Create(req *request.DatabaseUserCreate) error
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 (_m *DatabaseUserRepo) EXPECT() *DatabaseUserRepo_Expecter
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 ¶
func (_m *DatabaseUserRepo) Update(req *request.DatabaseUserUpdate) error
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 ¶
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 (_c *DatabaseUserRepo_Count_Call) Return(_a0 int64, _a1 error) *DatabaseUserRepo_Count_Call
func (*DatabaseUserRepo_Count_Call) Run ¶
func (_c *DatabaseUserRepo_Count_Call) Run(run func()) *DatabaseUserRepo_Count_Call
func (*DatabaseUserRepo_Count_Call) RunAndReturn ¶
func (_c *DatabaseUserRepo_Count_Call) RunAndReturn(run func() (int64, error)) *DatabaseUserRepo_Count_Call
type DatabaseUserRepo_Create_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 (_c *DatabaseUserRepo_Create_Call) Return(_a0 error) *DatabaseUserRepo_Create_Call
func (*DatabaseUserRepo_Create_Call) Run ¶
func (_c *DatabaseUserRepo_Create_Call) Run(run func(req *request.DatabaseUserCreate)) *DatabaseUserRepo_Create_Call
func (*DatabaseUserRepo_Create_Call) RunAndReturn ¶
func (_c *DatabaseUserRepo_Create_Call) RunAndReturn(run func(*request.DatabaseUserCreate) error) *DatabaseUserRepo_Create_Call
type DatabaseUserRepo_DeleteByNames_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 (_c *DatabaseUserRepo_DeleteByNames_Call) Return(_a0 error) *DatabaseUserRepo_DeleteByNames_Call
func (*DatabaseUserRepo_DeleteByNames_Call) Run ¶
func (_c *DatabaseUserRepo_DeleteByNames_Call) Run(run func(serverID uint, names []string)) *DatabaseUserRepo_DeleteByNames_Call
func (*DatabaseUserRepo_DeleteByNames_Call) RunAndReturn ¶
func (_c *DatabaseUserRepo_DeleteByNames_Call) RunAndReturn(run func(uint, []string) error) *DatabaseUserRepo_DeleteByNames_Call
type DatabaseUserRepo_Delete_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 (_c *DatabaseUserRepo_Delete_Call) Return(_a0 error) *DatabaseUserRepo_Delete_Call
func (*DatabaseUserRepo_Delete_Call) Run ¶
func (_c *DatabaseUserRepo_Delete_Call) Run(run func(id uint)) *DatabaseUserRepo_Delete_Call
func (*DatabaseUserRepo_Delete_Call) RunAndReturn ¶
func (_c *DatabaseUserRepo_Delete_Call) RunAndReturn(run func(uint) error) *DatabaseUserRepo_Delete_Call
type DatabaseUserRepo_Expecter ¶
type DatabaseUserRepo_Expecter struct {
// contains filtered or unexported fields
}
func (*DatabaseUserRepo_Expecter) Count ¶
func (_e *DatabaseUserRepo_Expecter) Count() *DatabaseUserRepo_Count_Call
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 ¶
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 (_c *DatabaseUserRepo_Get_Call) Return(_a0 *biz.DatabaseUser, _a1 error) *DatabaseUserRepo_Get_Call
func (*DatabaseUserRepo_Get_Call) Run ¶
func (_c *DatabaseUserRepo_Get_Call) Run(run func(id uint)) *DatabaseUserRepo_Get_Call
func (*DatabaseUserRepo_Get_Call) RunAndReturn ¶
func (_c *DatabaseUserRepo_Get_Call) RunAndReturn(run func(uint) (*biz.DatabaseUser, error)) *DatabaseUserRepo_Get_Call
type DatabaseUserRepo_List_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 (_c *DatabaseUserRepo_List_Call) Return(_a0 []*biz.DatabaseUser, _a1 int64, _a2 error) *DatabaseUserRepo_List_Call
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 ¶
func (_c *DatabaseUserRepo_List_Call) RunAndReturn(run func(uint, uint) ([]*biz.DatabaseUser, int64, error)) *DatabaseUserRepo_List_Call
type DatabaseUserRepo_UpdateRemark_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 (_c *DatabaseUserRepo_UpdateRemark_Call) Return(_a0 error) *DatabaseUserRepo_UpdateRemark_Call
func (*DatabaseUserRepo_UpdateRemark_Call) Run ¶
func (_c *DatabaseUserRepo_UpdateRemark_Call) Run(run func(req *request.DatabaseUserUpdateRemark)) *DatabaseUserRepo_UpdateRemark_Call
func (*DatabaseUserRepo_UpdateRemark_Call) RunAndReturn ¶
func (_c *DatabaseUserRepo_UpdateRemark_Call) RunAndReturn(run func(*request.DatabaseUserUpdateRemark) error) *DatabaseUserRepo_UpdateRemark_Call
type DatabaseUserRepo_Update_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 (_c *DatabaseUserRepo_Update_Call) Return(_a0 error) *DatabaseUserRepo_Update_Call
func (*DatabaseUserRepo_Update_Call) Run ¶
func (_c *DatabaseUserRepo_Update_Call) Run(run func(req *request.DatabaseUserUpdate)) *DatabaseUserRepo_Update_Call
func (*DatabaseUserRepo_Update_Call) RunAndReturn ¶
func (_c *DatabaseUserRepo_Update_Call) RunAndReturn(run func(*request.DatabaseUserUpdate) error) *DatabaseUserRepo_Update_Call
type MonitorRepo ¶
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) UpdateSetting ¶
func (_m *MonitorRepo) UpdateSetting(setting *request.MonitorSetting) error
UpdateSetting provides a mock function with given fields: setting
type MonitorRepo_Clear_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 (_c *MonitorRepo_Clear_Call) Return(_a0 error) *MonitorRepo_Clear_Call
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 ¶
func (_e *MonitorRepo_Expecter) Clear() *MonitorRepo_Clear_Call
Clear is a helper method to define mock.On call
func (*MonitorRepo_Expecter) GetSetting ¶
func (_e *MonitorRepo_Expecter) GetSetting() *MonitorRepo_GetSetting_Call
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 ¶
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 (_c *MonitorRepo_GetSetting_Call) Return(_a0 *request.MonitorSetting, _a1 error) *MonitorRepo_GetSetting_Call
func (*MonitorRepo_GetSetting_Call) Run ¶
func (_c *MonitorRepo_GetSetting_Call) Run(run func()) *MonitorRepo_GetSetting_Call
func (*MonitorRepo_GetSetting_Call) RunAndReturn ¶
func (_c *MonitorRepo_GetSetting_Call) RunAndReturn(run func() (*request.MonitorSetting, error)) *MonitorRepo_GetSetting_Call
type MonitorRepo_List_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 ¶
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 (_c *MonitorRepo_UpdateSetting_Call) Return(_a0 error) *MonitorRepo_UpdateSetting_Call
func (*MonitorRepo_UpdateSetting_Call) Run ¶
func (_c *MonitorRepo_UpdateSetting_Call) Run(run func(setting *request.MonitorSetting)) *MonitorRepo_UpdateSetting_Call
func (*MonitorRepo_UpdateSetting_Call) RunAndReturn ¶
func (_c *MonitorRepo_UpdateSetting_Call) RunAndReturn(run func(*request.MonitorSetting) error) *MonitorRepo_UpdateSetting_Call
type SSHRepo ¶
SSHRepo is an autogenerated mock type for the SSHRepo type
func NewSSHRepo ¶
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) EXPECT ¶
func (_m *SSHRepo) EXPECT() *SSHRepo_Expecter
type SSHRepo_Create_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 (_c *SSHRepo_Create_Call) Return(_a0 error) *SSHRepo_Create_Call
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 ¶
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 (_c *SSHRepo_Delete_Call) Return(_a0 error) *SSHRepo_Delete_Call
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 ¶
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 ¶
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 ¶
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 (_c *SSHRepo_Update_Call) Return(_a0 error) *SSHRepo_Update_Call
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 ¶
SafeRepo is an autogenerated mock type for the SafeRepo type
func NewSafeRepo ¶
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 ¶
GetPingStatus provides a mock function with no fields
func (*SafeRepo) UpdatePingStatus ¶
UpdatePingStatus provides a mock function with given fields: 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 ¶
func (_e *SafeRepo_Expecter) GetSSH() *SafeRepo_GetSSH_Call
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 ¶
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 (_c *SafeRepo_GetPingStatus_Call) Return(_a0 bool, _a1 error) *SafeRepo_GetPingStatus_Call
func (*SafeRepo_GetPingStatus_Call) Run ¶
func (_c *SafeRepo_GetPingStatus_Call) Run(run func()) *SafeRepo_GetPingStatus_Call
func (*SafeRepo_GetPingStatus_Call) RunAndReturn ¶
func (_c *SafeRepo_GetPingStatus_Call) RunAndReturn(run func() (bool, error)) *SafeRepo_GetPingStatus_Call
type SafeRepo_GetSSH_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 ¶
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 (_c *SafeRepo_UpdatePingStatus_Call) Return(_a0 error) *SafeRepo_UpdatePingStatus_Call
func (*SafeRepo_UpdatePingStatus_Call) Run ¶
func (_c *SafeRepo_UpdatePingStatus_Call) Run(run func(status bool)) *SafeRepo_UpdatePingStatus_Call
func (*SafeRepo_UpdatePingStatus_Call) RunAndReturn ¶
func (_c *SafeRepo_UpdatePingStatus_Call) RunAndReturn(run func(bool) error) *SafeRepo_UpdatePingStatus_Call
type SafeRepo_UpdateSSH_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 (_c *SafeRepo_UpdateSSH_Call) Return(_a0 error) *SafeRepo_UpdateSSH_Call
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 ¶
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 ¶
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 (_c *SettingRepo_Delete_Call) Return(_a0 error) *SettingRepo_Delete_Call
func (*SettingRepo_Delete_Call) Run ¶
func (_c *SettingRepo_Delete_Call) Run(run func(key biz.SettingKey)) *SettingRepo_Delete_Call
func (*SettingRepo_Delete_Call) RunAndReturn ¶
func (_c *SettingRepo_Delete_Call) RunAndReturn(run func(biz.SettingKey) error) *SettingRepo_Delete_Call
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 ¶
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 (_c *SettingRepo_GetBool_Call) Return(_a0 bool, _a1 error) *SettingRepo_GetBool_Call
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 ¶
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 (_c *SettingRepo_GetPanelSetting_Call) Return(_a0 *request.PanelSetting, _a1 error) *SettingRepo_GetPanelSetting_Call
func (*SettingRepo_GetPanelSetting_Call) Run ¶
func (_c *SettingRepo_GetPanelSetting_Call) Run(run func(ctx context.Context)) *SettingRepo_GetPanelSetting_Call
func (*SettingRepo_GetPanelSetting_Call) RunAndReturn ¶
func (_c *SettingRepo_GetPanelSetting_Call) RunAndReturn(run func(context.Context) (*request.PanelSetting, error)) *SettingRepo_GetPanelSetting_Call
type SettingRepo_Get_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 ¶
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 (_c *SettingRepo_Set_Call) Return(_a0 error) *SettingRepo_Set_Call
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 ¶
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 (_c *SettingRepo_UpdatePanelSetting_Call) Return(_a0 bool, _a1 error) *SettingRepo_UpdatePanelSetting_Call
func (*SettingRepo_UpdatePanelSetting_Call) Run ¶
func (_c *SettingRepo_UpdatePanelSetting_Call) Run(run func(ctx context.Context, setting *request.PanelSetting)) *SettingRepo_UpdatePanelSetting_Call
func (*SettingRepo_UpdatePanelSetting_Call) RunAndReturn ¶
func (_c *SettingRepo_UpdatePanelSetting_Call) RunAndReturn(run func(context.Context, *request.PanelSetting) (bool, error)) *SettingRepo_UpdatePanelSetting_Call
type TaskRepo ¶
TaskRepo is an autogenerated mock type for the TaskRepo type
func NewTaskRepo ¶
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) EXPECT ¶
func (_m *TaskRepo) EXPECT() *TaskRepo_Expecter
func (*TaskRepo) HasRunningTask ¶
HasRunningTask provides a mock function with no fields
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 ¶
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 (_c *TaskRepo_Delete_Call) Return(_a0 error) *TaskRepo_Delete_Call
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 ¶
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 ¶
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 (_c *TaskRepo_HasRunningTask_Call) Return(_a0 bool) *TaskRepo_HasRunningTask_Call
func (*TaskRepo_HasRunningTask_Call) Run ¶
func (_c *TaskRepo_HasRunningTask_Call) Run(run func()) *TaskRepo_HasRunningTask_Call
func (*TaskRepo_HasRunningTask_Call) RunAndReturn ¶
func (_c *TaskRepo_HasRunningTask_Call) RunAndReturn(run func() bool) *TaskRepo_HasRunningTask_Call
type TaskRepo_List_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 ¶
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 ¶
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 (_c *TaskRepo_UpdateStatus_Call) Return(_a0 error) *TaskRepo_UpdateStatus_Call
func (*TaskRepo_UpdateStatus_Call) Run ¶
func (_c *TaskRepo_UpdateStatus_Call) Run(run func(id uint, status biz.TaskStatus)) *TaskRepo_UpdateStatus_Call
func (*TaskRepo_UpdateStatus_Call) RunAndReturn ¶
func (_c *TaskRepo_UpdateStatus_Call) RunAndReturn(run func(uint, biz.TaskStatus) error) *TaskRepo_UpdateStatus_Call
type UserRepo ¶
UserRepo is an autogenerated mock type for the UserRepo type
func NewUserRepo ¶
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 ¶
CheckPassword provides a mock function with given fields: username, password
func (*UserRepo) EXPECT ¶
func (_m *UserRepo) EXPECT() *UserRepo_Expecter
type UserRepo_CheckPassword_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 (_c *UserRepo_CheckPassword_Call) Return(_a0 *biz.User, _a1 error) *UserRepo_CheckPassword_Call
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 ¶
func (_c *UserRepo_CheckPassword_Call) RunAndReturn(run func(string, string) (*biz.User, error)) *UserRepo_CheckPassword_Call
type UserRepo_Create_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 ¶
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 ¶
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 ¶
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) 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 ¶
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 (_c *WebsiteRepo_ClearLog_Call) Return(_a0 error) *WebsiteRepo_ClearLog_Call
func (*WebsiteRepo_ClearLog_Call) Run ¶
func (_c *WebsiteRepo_ClearLog_Call) Run(run func(id uint)) *WebsiteRepo_ClearLog_Call
func (*WebsiteRepo_ClearLog_Call) RunAndReturn ¶
func (_c *WebsiteRepo_ClearLog_Call) RunAndReturn(run func(uint) error) *WebsiteRepo_ClearLog_Call
type WebsiteRepo_Count_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 (_c *WebsiteRepo_Count_Call) Return(_a0 int64, _a1 error) *WebsiteRepo_Count_Call
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 ¶
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 (_c *WebsiteRepo_Create_Call) Return(_a0 *biz.Website, _a1 error) *WebsiteRepo_Create_Call
func (*WebsiteRepo_Create_Call) Run ¶
func (_c *WebsiteRepo_Create_Call) Run(run func(req *request.WebsiteCreate)) *WebsiteRepo_Create_Call
func (*WebsiteRepo_Create_Call) RunAndReturn ¶
func (_c *WebsiteRepo_Create_Call) RunAndReturn(run func(*request.WebsiteCreate) (*biz.Website, error)) *WebsiteRepo_Create_Call
type WebsiteRepo_Delete_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 (_c *WebsiteRepo_Delete_Call) Return(_a0 error) *WebsiteRepo_Delete_Call
func (*WebsiteRepo_Delete_Call) Run ¶
func (_c *WebsiteRepo_Delete_Call) Run(run func(req *request.WebsiteDelete)) *WebsiteRepo_Delete_Call
func (*WebsiteRepo_Delete_Call) RunAndReturn ¶
func (_c *WebsiteRepo_Delete_Call) RunAndReturn(run func(*request.WebsiteDelete) error) *WebsiteRepo_Delete_Call
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 ¶
func (_e *WebsiteRepo_Expecter) Count() *WebsiteRepo_Count_Call
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 ¶
func (_e *WebsiteRepo_Expecter) GetRewrites() *WebsiteRepo_GetRewrites_Call
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 ¶
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 (_c *WebsiteRepo_GetByName_Call) Return(_a0 *types.WebsiteSetting, _a1 error) *WebsiteRepo_GetByName_Call
func (*WebsiteRepo_GetByName_Call) Run ¶
func (_c *WebsiteRepo_GetByName_Call) Run(run func(name string)) *WebsiteRepo_GetByName_Call
func (*WebsiteRepo_GetByName_Call) RunAndReturn ¶
func (_c *WebsiteRepo_GetByName_Call) RunAndReturn(run func(string) (*types.WebsiteSetting, error)) *WebsiteRepo_GetByName_Call
type WebsiteRepo_GetRewrites_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 (_c *WebsiteRepo_GetRewrites_Call) Return(_a0 map[string]string, _a1 error) *WebsiteRepo_GetRewrites_Call
func (*WebsiteRepo_GetRewrites_Call) Run ¶
func (_c *WebsiteRepo_GetRewrites_Call) Run(run func()) *WebsiteRepo_GetRewrites_Call
func (*WebsiteRepo_GetRewrites_Call) RunAndReturn ¶
func (_c *WebsiteRepo_GetRewrites_Call) RunAndReturn(run func() (map[string]string, error)) *WebsiteRepo_GetRewrites_Call
type WebsiteRepo_Get_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 (_c *WebsiteRepo_Get_Call) Return(_a0 *types.WebsiteSetting, _a1 error) *WebsiteRepo_Get_Call
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 ¶
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 ¶
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 (_c *WebsiteRepo_ObtainCert_Call) Return(_a0 error) *WebsiteRepo_ObtainCert_Call
func (*WebsiteRepo_ObtainCert_Call) Run ¶
func (_c *WebsiteRepo_ObtainCert_Call) Run(run func(ctx context.Context, id uint)) *WebsiteRepo_ObtainCert_Call
func (*WebsiteRepo_ObtainCert_Call) RunAndReturn ¶
func (_c *WebsiteRepo_ObtainCert_Call) RunAndReturn(run func(context.Context, uint) error) *WebsiteRepo_ObtainCert_Call
type WebsiteRepo_ResetConfig_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 (_c *WebsiteRepo_ResetConfig_Call) Return(_a0 error) *WebsiteRepo_ResetConfig_Call
func (*WebsiteRepo_ResetConfig_Call) Run ¶
func (_c *WebsiteRepo_ResetConfig_Call) Run(run func(id uint)) *WebsiteRepo_ResetConfig_Call
func (*WebsiteRepo_ResetConfig_Call) RunAndReturn ¶
func (_c *WebsiteRepo_ResetConfig_Call) RunAndReturn(run func(uint) error) *WebsiteRepo_ResetConfig_Call
type WebsiteRepo_UpdateDefaultConfig_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 (_c *WebsiteRepo_UpdateDefaultConfig_Call) Return(_a0 error) *WebsiteRepo_UpdateDefaultConfig_Call
func (*WebsiteRepo_UpdateDefaultConfig_Call) Run ¶
func (_c *WebsiteRepo_UpdateDefaultConfig_Call) Run(run func(req *request.WebsiteDefaultConfig)) *WebsiteRepo_UpdateDefaultConfig_Call
func (*WebsiteRepo_UpdateDefaultConfig_Call) RunAndReturn ¶
func (_c *WebsiteRepo_UpdateDefaultConfig_Call) RunAndReturn(run func(*request.WebsiteDefaultConfig) error) *WebsiteRepo_UpdateDefaultConfig_Call
type WebsiteRepo_UpdateRemark_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 (_c *WebsiteRepo_UpdateRemark_Call) Return(_a0 error) *WebsiteRepo_UpdateRemark_Call
func (*WebsiteRepo_UpdateRemark_Call) Run ¶
func (_c *WebsiteRepo_UpdateRemark_Call) Run(run func(id uint, remark string)) *WebsiteRepo_UpdateRemark_Call
func (*WebsiteRepo_UpdateRemark_Call) RunAndReturn ¶
func (_c *WebsiteRepo_UpdateRemark_Call) RunAndReturn(run func(uint, string) error) *WebsiteRepo_UpdateRemark_Call
type WebsiteRepo_UpdateStatus_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 (_c *WebsiteRepo_UpdateStatus_Call) Return(_a0 error) *WebsiteRepo_UpdateStatus_Call
func (*WebsiteRepo_UpdateStatus_Call) Run ¶
func (_c *WebsiteRepo_UpdateStatus_Call) Run(run func(id uint, status bool)) *WebsiteRepo_UpdateStatus_Call
func (*WebsiteRepo_UpdateStatus_Call) RunAndReturn ¶
func (_c *WebsiteRepo_UpdateStatus_Call) RunAndReturn(run func(uint, bool) error) *WebsiteRepo_UpdateStatus_Call
type WebsiteRepo_Update_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 (_c *WebsiteRepo_Update_Call) Return(_a0 error) *WebsiteRepo_Update_Call
func (*WebsiteRepo_Update_Call) Run ¶
func (_c *WebsiteRepo_Update_Call) Run(run func(req *request.WebsiteUpdate)) *WebsiteRepo_Update_Call
func (*WebsiteRepo_Update_Call) RunAndReturn ¶
func (_c *WebsiteRepo_Update_Call) RunAndReturn(run func(*request.WebsiteUpdate) error) *WebsiteRepo_Update_Call
Source Files ¶
- AppRepo.go
- BackupRepo.go
- CacheRepo.go
- CertAccountRepo.go
- CertDNSRepo.go
- CertRepo.go
- ContainerImageRepo.go
- ContainerNetworkRepo.go
- ContainerRepo.go
- ContainerVolumeRepo.go
- CronRepo.go
- DatabaseRepo.go
- DatabaseServerRepo.go
- DatabaseUserRepo.go
- MonitorRepo.go
- SSHRepo.go
- SafeRepo.go
- SettingRepo.go
- TaskRepo.go
- UserRepo.go
- WebsiteRepo.go