Documentation ¶
Overview ¶
Code generated by gormt. DO NOT EDIT.
Package repo is a generated GoMock package.
Index ¶
- func CloseRelated()
- func ConfigHistoryMgr(ctx context.Context, db *gorm.DB) *_ConfigHistoryMgr
- func ConfigLinkMgr(ctx context.Context, db *gorm.DB) *_ConfigLinkMgr
- func ConfigMgr(ctx context.Context, db *gorm.DB) *_ConfigMgr
- func NamespaceMgr(ctx context.Context, db *gorm.DB) *_NamespaceMgr
- func OpenRelated()
- func ProjectGroupMgr(ctx context.Context, db *gorm.DB) *_ProjectGroupMgr
- func ProjectMgr(ctx context.Context, db *gorm.DB) *_ProjectMgr
- func PublishConfigMgr(ctx context.Context, db *gorm.DB) *_PublishConfigMgr
- func PublishMgr(ctx context.Context, db *gorm.DB) *_PublishMgr
- func PublishStrategyMgr(ctx context.Context, db *gorm.DB) *_PublishStrategyMgr
- func StaffGroupRelMgr(ctx context.Context, db *gorm.DB) *_StaffGroupRelMgr
- func StaffMgr(ctx context.Context, db *gorm.DB) *_StaffMgr
- type ConfigHistoryRepo
- type ConfigLinkRepo
- type ConfigRepo
- type MockPublishMgrInter
- func (m *MockPublishMgrInter) Catch() (model.Publish, error)
- func (m *MockPublishMgrInter) Count() (int64, error)
- func (m *MockPublishMgrInter) CreatePublish(bean *model.Publish) error
- func (m *MockPublishMgrInter) DeletePublish(bean *model.Publish) error
- func (m *MockPublishMgrInter) EXPECT() *MockPublishMgrInterMockRecorder
- func (m *MockPublishMgrInter) FetchIndexByProjectID(projectID, namespaceID int, status int8) ([]*model.Publish, error)
- func (m *MockPublishMgrInter) Get() (model.Publish, error)
- func (m *MockPublishMgrInter) GetTableName() string
- func (m *MockPublishMgrInter) Gets() ([]model.Publish, error)
- func (m *MockPublishMgrInter) HasRecord() (bool, error)
- func (m *MockPublishMgrInter) ListPublish(limit, offset int, sort string) ([]model.Publish, error)
- func (m *MockPublishMgrInter) Reset() *_PublishMgr
- func (m *MockPublishMgrInter) Tx(tx *gorm.DB) *_PublishMgr
- func (m *MockPublishMgrInter) UpdatePublish(bean *model.Publish) error
- func (m *MockPublishMgrInter) WithCreateTime(createTime interface{}, cond ...string) Option
- func (m *MockPublishMgrInter) WithID(id interface{}, cond ...string) Option
- func (m *MockPublishMgrInter) WithNamespaceID(namespaceID interface{}, cond ...string) Option
- func (m *MockPublishMgrInter) WithOptions(opts ...Option) *_PublishMgr
- func (m *MockPublishMgrInter) WithPrepareStmt()
- func (m *MockPublishMgrInter) WithProjectID(projectID interface{}, cond ...string) Option
- func (m *MockPublishMgrInter) WithPublishToken(publishToken interface{}, cond ...string) Option
- func (m *MockPublishMgrInter) WithSelects(idName string, selects ...string) *_PublishMgr
- func (m *MockPublishMgrInter) WithStatus(status interface{}, cond ...string) Option
- func (m *MockPublishMgrInter) WithUpdateTime(updateTime interface{}, cond ...string) Option
- type MockPublishMgrInterMockRecorder
- func (mr *MockPublishMgrInterMockRecorder) Catch() *gomock.Call
- func (mr *MockPublishMgrInterMockRecorder) Count() *gomock.Call
- func (mr *MockPublishMgrInterMockRecorder) CreatePublish(bean interface{}) *gomock.Call
- func (mr *MockPublishMgrInterMockRecorder) DeletePublish(bean interface{}) *gomock.Call
- func (mr *MockPublishMgrInterMockRecorder) FetchIndexByProjectID(projectID, namespaceID, status interface{}) *gomock.Call
- func (mr *MockPublishMgrInterMockRecorder) Get() *gomock.Call
- func (mr *MockPublishMgrInterMockRecorder) GetTableName() *gomock.Call
- func (mr *MockPublishMgrInterMockRecorder) Gets() *gomock.Call
- func (mr *MockPublishMgrInterMockRecorder) HasRecord() *gomock.Call
- func (mr *MockPublishMgrInterMockRecorder) ListPublish(limit, offset, sort interface{}) *gomock.Call
- func (mr *MockPublishMgrInterMockRecorder) Reset() *gomock.Call
- func (mr *MockPublishMgrInterMockRecorder) Tx(tx interface{}) *gomock.Call
- func (mr *MockPublishMgrInterMockRecorder) UpdatePublish(bean interface{}) *gomock.Call
- func (mr *MockPublishMgrInterMockRecorder) WithCreateTime(createTime interface{}, cond ...interface{}) *gomock.Call
- func (mr *MockPublishMgrInterMockRecorder) WithID(id interface{}, cond ...interface{}) *gomock.Call
- func (mr *MockPublishMgrInterMockRecorder) WithNamespaceID(namespaceID interface{}, cond ...interface{}) *gomock.Call
- func (mr *MockPublishMgrInterMockRecorder) WithOptions(opts ...interface{}) *gomock.Call
- func (mr *MockPublishMgrInterMockRecorder) WithPrepareStmt() *gomock.Call
- func (mr *MockPublishMgrInterMockRecorder) WithProjectID(projectID interface{}, cond ...interface{}) *gomock.Call
- func (mr *MockPublishMgrInterMockRecorder) WithPublishToken(publishToken interface{}, cond ...interface{}) *gomock.Call
- func (mr *MockPublishMgrInterMockRecorder) WithSelects(idName interface{}, selects ...interface{}) *gomock.Call
- func (mr *MockPublishMgrInterMockRecorder) WithStatus(status interface{}, cond ...interface{}) *gomock.Call
- func (mr *MockPublishMgrInterMockRecorder) WithUpdateTime(updateTime interface{}, cond ...interface{}) *gomock.Call
- type MockPublishRepo
- type MockPublishRepoMockRecorder
- type NamespaceRepo
- type Option
- type ProjectGroupRepo
- type ProjectRepo
- type PublishConfigRepo
- type PublishMgrInter
- type PublishRepo
- type PublishStrategyRepo
- type StaffGroupRelRepo
- type StaffRepo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigHistoryMgr ¶
ConfigHistoryMgr open func
func ConfigLinkMgr ¶
ConfigLinkMgr open func
func NamespaceMgr ¶
NamespaceMgr open func
func ProjectGroupMgr ¶
ProjectGroupMgr open func
func ProjectMgr ¶
ProjectMgr open func
func PublishConfigMgr ¶
PublishConfigMgr open func
func PublishMgr ¶ added in v0.6.0
PublishMgr open func
func PublishStrategyMgr ¶ added in v0.6.0
PublishStrategyMgr open func
func StaffGroupRelMgr ¶
StaffGroupRelMgr open func
Types ¶
type ConfigHistoryRepo ¶
func NewConfigHistoryRepo ¶
func NewConfigHistoryRepo() ConfigHistoryRepo
type ConfigLinkRepo ¶
func NewConfigLinkRepo ¶
func NewConfigLinkRepo() ConfigLinkRepo
type ConfigRepo ¶
func NewConfigRepo ¶
func NewConfigRepo() ConfigRepo
type MockPublishMgrInter ¶ added in v0.6.0
type MockPublishMgrInter struct {
// contains filtered or unexported fields
}
MockPublishMgrInter is a mock of PublishMgrInter interface.
func NewMockPublishMgrInter ¶ added in v0.6.0
func NewMockPublishMgrInter(ctrl *gomock.Controller) *MockPublishMgrInter
NewMockPublishMgrInter creates a new mock instance.
func (*MockPublishMgrInter) Catch ¶ added in v0.6.0
func (m *MockPublishMgrInter) Catch() (model.Publish, error)
Catch mocks base method.
func (*MockPublishMgrInter) Count ¶ added in v0.6.0
func (m *MockPublishMgrInter) Count() (int64, error)
Count mocks base method.
func (*MockPublishMgrInter) CreatePublish ¶ added in v0.6.0
func (m *MockPublishMgrInter) CreatePublish(bean *model.Publish) error
CreatePublish mocks base method.
func (*MockPublishMgrInter) DeletePublish ¶ added in v0.6.0
func (m *MockPublishMgrInter) DeletePublish(bean *model.Publish) error
DeletePublish mocks base method.
func (*MockPublishMgrInter) EXPECT ¶ added in v0.6.0
func (m *MockPublishMgrInter) EXPECT() *MockPublishMgrInterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockPublishMgrInter) FetchIndexByProjectID ¶ added in v0.6.0
func (m *MockPublishMgrInter) FetchIndexByProjectID(projectID, namespaceID int, status int8) ([]*model.Publish, error)
FetchIndexByProjectID mocks base method.
func (*MockPublishMgrInter) Get ¶ added in v0.6.0
func (m *MockPublishMgrInter) Get() (model.Publish, error)
Get mocks base method.
func (*MockPublishMgrInter) GetTableName ¶ added in v0.6.0
func (m *MockPublishMgrInter) GetTableName() string
GetTableName mocks base method.
func (*MockPublishMgrInter) Gets ¶ added in v0.6.0
func (m *MockPublishMgrInter) Gets() ([]model.Publish, error)
Gets mocks base method.
func (*MockPublishMgrInter) HasRecord ¶ added in v0.6.0
func (m *MockPublishMgrInter) HasRecord() (bool, error)
HasRecord mocks base method.
func (*MockPublishMgrInter) ListPublish ¶ added in v0.6.0
ListPublish mocks base method.
func (*MockPublishMgrInter) Reset ¶ added in v0.6.0
func (m *MockPublishMgrInter) Reset() *_PublishMgr
Reset mocks base method.
func (*MockPublishMgrInter) Tx ¶ added in v0.6.0
func (m *MockPublishMgrInter) Tx(tx *gorm.DB) *_PublishMgr
Tx mocks base method.
func (*MockPublishMgrInter) UpdatePublish ¶ added in v0.6.0
func (m *MockPublishMgrInter) UpdatePublish(bean *model.Publish) error
UpdatePublish mocks base method.
func (*MockPublishMgrInter) WithCreateTime ¶ added in v0.6.0
func (m *MockPublishMgrInter) WithCreateTime(createTime interface{}, cond ...string) Option
WithCreateTime mocks base method.
func (*MockPublishMgrInter) WithID ¶ added in v0.6.0
func (m *MockPublishMgrInter) WithID(id interface{}, cond ...string) Option
WithID mocks base method.
func (*MockPublishMgrInter) WithNamespaceID ¶ added in v0.6.0
func (m *MockPublishMgrInter) WithNamespaceID(namespaceID interface{}, cond ...string) Option
WithNamespaceID mocks base method.
func (*MockPublishMgrInter) WithOptions ¶ added in v0.6.0
func (m *MockPublishMgrInter) WithOptions(opts ...Option) *_PublishMgr
WithOptions mocks base method.
func (*MockPublishMgrInter) WithPrepareStmt ¶ added in v0.6.0
func (m *MockPublishMgrInter) WithPrepareStmt()
WithPrepareStmt mocks base method.
func (*MockPublishMgrInter) WithProjectID ¶ added in v0.6.0
func (m *MockPublishMgrInter) WithProjectID(projectID interface{}, cond ...string) Option
WithProjectID mocks base method.
func (*MockPublishMgrInter) WithPublishToken ¶ added in v0.6.0
func (m *MockPublishMgrInter) WithPublishToken(publishToken interface{}, cond ...string) Option
WithPublishToken mocks base method.
func (*MockPublishMgrInter) WithSelects ¶ added in v0.6.0
func (m *MockPublishMgrInter) WithSelects(idName string, selects ...string) *_PublishMgr
WithSelects mocks base method.
func (*MockPublishMgrInter) WithStatus ¶ added in v0.6.0
func (m *MockPublishMgrInter) WithStatus(status interface{}, cond ...string) Option
WithStatus mocks base method.
func (*MockPublishMgrInter) WithUpdateTime ¶ added in v0.6.0
func (m *MockPublishMgrInter) WithUpdateTime(updateTime interface{}, cond ...string) Option
WithUpdateTime mocks base method.
type MockPublishMgrInterMockRecorder ¶ added in v0.6.0
type MockPublishMgrInterMockRecorder struct {
// contains filtered or unexported fields
}
MockPublishMgrInterMockRecorder is the mock recorder for MockPublishMgrInter.
func (*MockPublishMgrInterMockRecorder) Catch ¶ added in v0.6.0
func (mr *MockPublishMgrInterMockRecorder) Catch() *gomock.Call
Catch indicates an expected call of Catch.
func (*MockPublishMgrInterMockRecorder) Count ¶ added in v0.6.0
func (mr *MockPublishMgrInterMockRecorder) Count() *gomock.Call
Count indicates an expected call of Count.
func (*MockPublishMgrInterMockRecorder) CreatePublish ¶ added in v0.6.0
func (mr *MockPublishMgrInterMockRecorder) CreatePublish(bean interface{}) *gomock.Call
CreatePublish indicates an expected call of CreatePublish.
func (*MockPublishMgrInterMockRecorder) DeletePublish ¶ added in v0.6.0
func (mr *MockPublishMgrInterMockRecorder) DeletePublish(bean interface{}) *gomock.Call
DeletePublish indicates an expected call of DeletePublish.
func (*MockPublishMgrInterMockRecorder) FetchIndexByProjectID ¶ added in v0.6.0
func (mr *MockPublishMgrInterMockRecorder) FetchIndexByProjectID(projectID, namespaceID, status interface{}) *gomock.Call
FetchIndexByProjectID indicates an expected call of FetchIndexByProjectID.
func (*MockPublishMgrInterMockRecorder) Get ¶ added in v0.6.0
func (mr *MockPublishMgrInterMockRecorder) Get() *gomock.Call
Get indicates an expected call of Get.
func (*MockPublishMgrInterMockRecorder) GetTableName ¶ added in v0.6.0
func (mr *MockPublishMgrInterMockRecorder) GetTableName() *gomock.Call
GetTableName indicates an expected call of GetTableName.
func (*MockPublishMgrInterMockRecorder) Gets ¶ added in v0.6.0
func (mr *MockPublishMgrInterMockRecorder) Gets() *gomock.Call
Gets indicates an expected call of Gets.
func (*MockPublishMgrInterMockRecorder) HasRecord ¶ added in v0.6.0
func (mr *MockPublishMgrInterMockRecorder) HasRecord() *gomock.Call
HasRecord indicates an expected call of HasRecord.
func (*MockPublishMgrInterMockRecorder) ListPublish ¶ added in v0.6.0
func (mr *MockPublishMgrInterMockRecorder) ListPublish(limit, offset, sort interface{}) *gomock.Call
ListPublish indicates an expected call of ListPublish.
func (*MockPublishMgrInterMockRecorder) Reset ¶ added in v0.6.0
func (mr *MockPublishMgrInterMockRecorder) Reset() *gomock.Call
Reset indicates an expected call of Reset.
func (*MockPublishMgrInterMockRecorder) Tx ¶ added in v0.6.0
func (mr *MockPublishMgrInterMockRecorder) Tx(tx interface{}) *gomock.Call
Tx indicates an expected call of Tx.
func (*MockPublishMgrInterMockRecorder) UpdatePublish ¶ added in v0.6.0
func (mr *MockPublishMgrInterMockRecorder) UpdatePublish(bean interface{}) *gomock.Call
UpdatePublish indicates an expected call of UpdatePublish.
func (*MockPublishMgrInterMockRecorder) WithCreateTime ¶ added in v0.6.0
func (mr *MockPublishMgrInterMockRecorder) WithCreateTime(createTime interface{}, cond ...interface{}) *gomock.Call
WithCreateTime indicates an expected call of WithCreateTime.
func (*MockPublishMgrInterMockRecorder) WithID ¶ added in v0.6.0
func (mr *MockPublishMgrInterMockRecorder) WithID(id interface{}, cond ...interface{}) *gomock.Call
WithID indicates an expected call of WithID.
func (*MockPublishMgrInterMockRecorder) WithNamespaceID ¶ added in v0.6.0
func (mr *MockPublishMgrInterMockRecorder) WithNamespaceID(namespaceID interface{}, cond ...interface{}) *gomock.Call
WithNamespaceID indicates an expected call of WithNamespaceID.
func (*MockPublishMgrInterMockRecorder) WithOptions ¶ added in v0.6.0
func (mr *MockPublishMgrInterMockRecorder) WithOptions(opts ...interface{}) *gomock.Call
WithOptions indicates an expected call of WithOptions.
func (*MockPublishMgrInterMockRecorder) WithPrepareStmt ¶ added in v0.6.0
func (mr *MockPublishMgrInterMockRecorder) WithPrepareStmt() *gomock.Call
WithPrepareStmt indicates an expected call of WithPrepareStmt.
func (*MockPublishMgrInterMockRecorder) WithProjectID ¶ added in v0.6.0
func (mr *MockPublishMgrInterMockRecorder) WithProjectID(projectID interface{}, cond ...interface{}) *gomock.Call
WithProjectID indicates an expected call of WithProjectID.
func (*MockPublishMgrInterMockRecorder) WithPublishToken ¶ added in v0.6.0
func (mr *MockPublishMgrInterMockRecorder) WithPublishToken(publishToken interface{}, cond ...interface{}) *gomock.Call
WithPublishToken indicates an expected call of WithPublishToken.
func (*MockPublishMgrInterMockRecorder) WithSelects ¶ added in v0.6.0
func (mr *MockPublishMgrInterMockRecorder) WithSelects(idName interface{}, selects ...interface{}) *gomock.Call
WithSelects indicates an expected call of WithSelects.
func (*MockPublishMgrInterMockRecorder) WithStatus ¶ added in v0.6.0
func (mr *MockPublishMgrInterMockRecorder) WithStatus(status interface{}, cond ...interface{}) *gomock.Call
WithStatus indicates an expected call of WithStatus.
func (*MockPublishMgrInterMockRecorder) WithUpdateTime ¶ added in v0.6.0
func (mr *MockPublishMgrInterMockRecorder) WithUpdateTime(updateTime interface{}, cond ...interface{}) *gomock.Call
WithUpdateTime indicates an expected call of WithUpdateTime.
type MockPublishRepo ¶ added in v0.6.0
type MockPublishRepo struct {
// contains filtered or unexported fields
}
MockPublishRepo is a mock of PublishRepo interface.
func NewMockPublishRepo ¶ added in v0.6.0
func NewMockPublishRepo(ctrl *gomock.Controller) *MockPublishRepo
NewMockPublishRepo creates a new mock instance.
func (*MockPublishRepo) EXPECT ¶ added in v0.6.0
func (m *MockPublishRepo) EXPECT() *MockPublishRepoMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockPublishRepo) Mgr ¶ added in v0.6.0
func (m *MockPublishRepo) Mgr(ctx context.Context, db *gorm.DB) PublishMgrInter
Mgr mocks base method.
type MockPublishRepoMockRecorder ¶ added in v0.6.0
type MockPublishRepoMockRecorder struct {
// contains filtered or unexported fields
}
MockPublishRepoMockRecorder is the mock recorder for MockPublishRepo.
func (*MockPublishRepoMockRecorder) Mgr ¶ added in v0.6.0
func (mr *MockPublishRepoMockRecorder) Mgr(ctx, db interface{}) *gomock.Call
Mgr indicates an expected call of Mgr.
type NamespaceRepo ¶
func NewNamespaceRepo ¶
func NewNamespaceRepo() NamespaceRepo
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
Option overrides behavior of Connect.
type ProjectGroupRepo ¶
func NewProjectGroupRepo ¶
func NewProjectGroupRepo() ProjectGroupRepo
type ProjectRepo ¶
func NewProjectRepo ¶
func NewProjectRepo() ProjectRepo
type PublishConfigRepo ¶
func NewPublishConfigRepo ¶
func NewPublishConfigRepo() PublishConfigRepo
type PublishMgrInter ¶ added in v0.6.0
type PublishMgrInter interface { ListPublish( limit, offset int, sort string, ) (result []model.Publish, err error) WithSelects(idName string, selects ...string) *_PublishMgr WithOptions(opts ...Option) *_PublishMgr GetTableName() string Tx(tx *gorm.DB) *_PublishMgr WithPrepareStmt() Reset() *_PublishMgr Get() (result model.Publish, err error) Gets() (results []model.Publish, err error) Catch() (results model.Publish, err error) Count() (count int64, err error) HasRecord() (bool, error) WithID(id interface{}, cond ...string) Option WithProjectID(projectID interface{}, cond ...string) Option WithNamespaceID(namespaceID interface{}, cond ...string) Option WithPublishToken(publishToken interface{}, cond ...string) Option WithStatus(status interface{}, cond ...string) Option WithCreateTime(createTime interface{}, cond ...string) Option WithUpdateTime(updateTime interface{}, cond ...string) Option CreatePublish(bean *model.Publish) (err error) UpdatePublish(bean *model.Publish) (err error) DeletePublish(bean *model.Publish) (err error) FetchIndexByProjectID(projectID int, namespaceID int, status int8) (results []*model.Publish, err error) }
PublishMgrInter 用于 Mock Repo 层做单元测试
type PublishRepo ¶ added in v0.6.0
type PublishRepo interface {
Mgr(ctx context.Context, db *gorm.DB) PublishMgrInter
}
func NewPublishRepo ¶ added in v0.6.0
func NewPublishRepo() PublishRepo
type PublishStrategyRepo ¶ added in v0.6.0
func NewPublishStrategyRepo ¶ added in v0.6.0
func NewPublishStrategyRepo() PublishStrategyRepo
type StaffGroupRelRepo ¶
func NewStaffGroupRelRepo ¶
func NewStaffGroupRelRepo() StaffGroupRelRepo
Source Files ¶
- gen.base.go
- gen.go
- repo_config.go
- repo_config_history.go
- repo_config_link.go
- repo_namespace.go
- repo_project.go
- repo_project_group.go
- repo_publish.go
- repo_publish_config.go
- repo_publish_mock.go
- repo_publish_strategy.go
- repo_staff.go
- repo_staff_group_rel.go
- sail.gen.config.go
- sail.gen.config_history.go
- sail.gen.config_link.go
- sail.gen.namespace.go
- sail.gen.project.go
- sail.gen.project_group.go
- sail.gen.publish.go
- sail.gen.publish_config.go
- sail.gen.publish_strategy.go
- sail.gen.staff.go
- sail.gen.staff_group_rel.go