Documentation ¶
Overview ¶
Package mock_manager is a generated GoMock package.
Index ¶
- type MockManager
- func (m *MockManager) Create(ctx context.Context, template *models1.Template) (*models1.Template, error)
- func (m *MockManager) DeleteByID(ctx context.Context, id uint) error
- func (m *MockManager) EXPECT() *MockManagerMockRecorder
- func (m *MockManager) GetByID(ctx context.Context, id uint) (*models1.Template, error)
- func (m *MockManager) GetByName(ctx context.Context, name string) (*models1.Template, error)
- func (m *MockManager) GetRefOfApplication(ctx context.Context, id uint) ([]*models.Application, uint, error)
- func (m *MockManager) GetRefOfCluster(ctx context.Context, id uint) ([]*models0.Cluster, uint, error)
- func (m *MockManager) ListByGroupID(ctx context.Context, groupID uint) ([]*models1.Template, error)
- func (m *MockManager) ListByGroupIDs(ctx context.Context, ids []uint) ([]*models1.Template, error)
- func (m *MockManager) ListByIDs(ctx context.Context, ids []uint) ([]*models1.Template, error)
- func (m *MockManager) ListTemplate(ctx context.Context) ([]*models1.Template, error)
- func (m *MockManager) ListV2(ctx context.Context, query *q.Query, groupIDs ...uint) ([]*models1.Template, error)
- func (m *MockManager) UpdateByID(ctx context.Context, id uint, template *models1.Template) error
- type MockManagerMockRecorder
- func (mr *MockManagerMockRecorder) Create(ctx, template interface{}) *gomock.Call
- func (mr *MockManagerMockRecorder) DeleteByID(ctx, id interface{}) *gomock.Call
- func (mr *MockManagerMockRecorder) GetByID(ctx, id interface{}) *gomock.Call
- func (mr *MockManagerMockRecorder) GetByName(ctx, name interface{}) *gomock.Call
- func (mr *MockManagerMockRecorder) GetRefOfApplication(ctx, id interface{}) *gomock.Call
- func (mr *MockManagerMockRecorder) GetRefOfCluster(ctx, id interface{}) *gomock.Call
- func (mr *MockManagerMockRecorder) ListByGroupID(ctx, groupID interface{}) *gomock.Call
- func (mr *MockManagerMockRecorder) ListByGroupIDs(ctx, ids interface{}) *gomock.Call
- func (mr *MockManagerMockRecorder) ListByIDs(ctx, ids interface{}) *gomock.Call
- func (mr *MockManagerMockRecorder) ListTemplate(ctx interface{}) *gomock.Call
- func (mr *MockManagerMockRecorder) ListV2(ctx, query interface{}, groupIDs ...interface{}) *gomock.Call
- func (mr *MockManagerMockRecorder) UpdateByID(ctx, id, template interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockManager ¶
type MockManager struct {
// contains filtered or unexported fields
}
MockManager is a mock of Manager interface.
func NewMockManager ¶
func NewMockManager(ctrl *gomock.Controller) *MockManager
NewMockManager creates a new mock instance.
func (*MockManager) Create ¶
func (m *MockManager) Create(ctx context.Context, template *models1.Template) (*models1.Template, error)
Create mocks base method.
func (*MockManager) DeleteByID ¶
func (m *MockManager) DeleteByID(ctx context.Context, id uint) error
DeleteByID mocks base method.
func (*MockManager) EXPECT ¶
func (m *MockManager) EXPECT() *MockManagerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockManager) GetRefOfApplication ¶
func (m *MockManager) GetRefOfApplication(ctx context.Context, id uint) ([]*models.Application, uint, error)
GetRefOfApplication mocks base method.
func (*MockManager) GetRefOfCluster ¶
func (m *MockManager) GetRefOfCluster(ctx context.Context, id uint) ([]*models0.Cluster, uint, error)
GetRefOfCluster mocks base method.
func (*MockManager) ListByGroupID ¶
ListByGroupID mocks base method.
func (*MockManager) ListByGroupIDs ¶
ListByGroupIDs mocks base method.
func (*MockManager) ListTemplate ¶
ListTemplate mocks base method.
func (*MockManager) ListV2 ¶
func (m *MockManager) ListV2(ctx context.Context, query *q.Query, groupIDs ...uint) ([]*models1.Template, error)
ListV2 mocks base method.
func (*MockManager) UpdateByID ¶
UpdateByID mocks base method.
type MockManagerMockRecorder ¶
type MockManagerMockRecorder struct {
// contains filtered or unexported fields
}
MockManagerMockRecorder is the mock recorder for MockManager.
func (*MockManagerMockRecorder) Create ¶
func (mr *MockManagerMockRecorder) Create(ctx, template interface{}) *gomock.Call
Create indicates an expected call of Create.
func (*MockManagerMockRecorder) DeleteByID ¶
func (mr *MockManagerMockRecorder) DeleteByID(ctx, id interface{}) *gomock.Call
DeleteByID indicates an expected call of DeleteByID.
func (*MockManagerMockRecorder) GetByID ¶
func (mr *MockManagerMockRecorder) GetByID(ctx, id interface{}) *gomock.Call
GetByID indicates an expected call of GetByID.
func (*MockManagerMockRecorder) GetByName ¶
func (mr *MockManagerMockRecorder) GetByName(ctx, name interface{}) *gomock.Call
GetByName indicates an expected call of GetByName.
func (*MockManagerMockRecorder) GetRefOfApplication ¶
func (mr *MockManagerMockRecorder) GetRefOfApplication(ctx, id interface{}) *gomock.Call
GetRefOfApplication indicates an expected call of GetRefOfApplication.
func (*MockManagerMockRecorder) GetRefOfCluster ¶
func (mr *MockManagerMockRecorder) GetRefOfCluster(ctx, id interface{}) *gomock.Call
GetRefOfCluster indicates an expected call of GetRefOfCluster.
func (*MockManagerMockRecorder) ListByGroupID ¶
func (mr *MockManagerMockRecorder) ListByGroupID(ctx, groupID interface{}) *gomock.Call
ListByGroupID indicates an expected call of ListByGroupID.
func (*MockManagerMockRecorder) ListByGroupIDs ¶
func (mr *MockManagerMockRecorder) ListByGroupIDs(ctx, ids interface{}) *gomock.Call
ListByGroupIDs indicates an expected call of ListByGroupIDs.
func (*MockManagerMockRecorder) ListByIDs ¶
func (mr *MockManagerMockRecorder) ListByIDs(ctx, ids interface{}) *gomock.Call
ListByIDs indicates an expected call of ListByIDs.
func (*MockManagerMockRecorder) ListTemplate ¶
func (mr *MockManagerMockRecorder) ListTemplate(ctx interface{}) *gomock.Call
ListTemplate indicates an expected call of ListTemplate.
func (*MockManagerMockRecorder) ListV2 ¶
func (mr *MockManagerMockRecorder) ListV2(ctx, query interface{}, groupIDs ...interface{}) *gomock.Call
ListV2 indicates an expected call of ListV2.
func (*MockManagerMockRecorder) UpdateByID ¶
func (mr *MockManagerMockRecorder) UpdateByID(ctx, id, template interface{}) *gomock.Call
UpdateByID indicates an expected call of UpdateByID.