Documentation ¶
Overview ¶
Package mock_manager is a generated GoMock package.
Index ¶
- type MockManager
- func (m *MockManager) CheckClusterExists(ctx context.Context, cluster string) (bool, error)
- func (m *MockManager) Create(ctx context.Context, cluster *models.Cluster, tags []*models0.Tag, ...) (*models.Cluster, 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) (*models.Cluster, error)
- func (m *MockManager) GetByIDIncludeSoftDelete(ctx context.Context, id uint) (*models.Cluster, error)
- func (m *MockManager) GetByName(ctx context.Context, clusterName string) (*models.Cluster, error)
- func (m *MockManager) GetByNameFuzzilyIncludeSoftDelete(ctx context.Context, name string) ([]*models.Cluster, error)
- func (m *MockManager) List(ctx context.Context, query *q.Query, appIDs ...uint) (int, []*models.ClusterWithRegion, error)
- func (m *MockManager) ListByApplicationID(ctx context.Context, applicationID uint) (int, []*models.ClusterWithRegion, error)
- func (m *MockManager) ListClusterWithExpiry(ctx context.Context, query *q.Query) ([]*models.Cluster, error)
- func (m *MockManager) UpdateByID(ctx context.Context, id uint, cluster *models.Cluster) (*models.Cluster, error)
- type MockManagerMockRecorder
- func (mr *MockManagerMockRecorder) CheckClusterExists(ctx, cluster interface{}) *gomock.Call
- func (mr *MockManagerMockRecorder) Create(ctx, cluster, tags, extraMembers interface{}) *gomock.Call
- func (mr *MockManagerMockRecorder) DeleteByID(ctx, id interface{}) *gomock.Call
- func (mr *MockManagerMockRecorder) GetByID(ctx, id interface{}) *gomock.Call
- func (mr *MockManagerMockRecorder) GetByIDIncludeSoftDelete(ctx, id interface{}) *gomock.Call
- func (mr *MockManagerMockRecorder) GetByName(ctx, clusterName interface{}) *gomock.Call
- func (mr *MockManagerMockRecorder) GetByNameFuzzilyIncludeSoftDelete(ctx, name interface{}) *gomock.Call
- func (mr *MockManagerMockRecorder) List(ctx, query interface{}, appIDs ...interface{}) *gomock.Call
- func (mr *MockManagerMockRecorder) ListByApplicationID(ctx, applicationID interface{}) *gomock.Call
- func (mr *MockManagerMockRecorder) ListClusterWithExpiry(ctx, query interface{}) *gomock.Call
- func (mr *MockManagerMockRecorder) UpdateByID(ctx, id, cluster 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) CheckClusterExists ¶
CheckClusterExists mocks base method.
func (*MockManager) Create ¶
func (m *MockManager) Create(ctx context.Context, cluster *models.Cluster, tags []*models0.Tag, extraMembers map[string]string) (*models.Cluster, 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) GetByIDIncludeSoftDelete ¶
func (m *MockManager) GetByIDIncludeSoftDelete(ctx context.Context, id uint) (*models.Cluster, error)
GetByIDIncludeSoftDelete mocks base method.
func (*MockManager) GetByNameFuzzilyIncludeSoftDelete ¶
func (m *MockManager) GetByNameFuzzilyIncludeSoftDelete(ctx context.Context, name string) ([]*models.Cluster, error)
GetByNameFuzzilyIncludeSoftDelete mocks base method.
func (*MockManager) List ¶
func (m *MockManager) List(ctx context.Context, query *q.Query, appIDs ...uint) (int, []*models.ClusterWithRegion, error)
List mocks base method.
func (*MockManager) ListByApplicationID ¶
func (m *MockManager) ListByApplicationID(ctx context.Context, applicationID uint) (int, []*models.ClusterWithRegion, error)
ListByApplicationID mocks base method.
func (*MockManager) ListClusterWithExpiry ¶
func (m *MockManager) ListClusterWithExpiry(ctx context.Context, query *q.Query) ([]*models.Cluster, error)
ListClusterWithExpiry mocks base method.
type MockManagerMockRecorder ¶
type MockManagerMockRecorder struct {
// contains filtered or unexported fields
}
MockManagerMockRecorder is the mock recorder for MockManager.
func (*MockManagerMockRecorder) CheckClusterExists ¶
func (mr *MockManagerMockRecorder) CheckClusterExists(ctx, cluster interface{}) *gomock.Call
CheckClusterExists indicates an expected call of CheckClusterExists.
func (*MockManagerMockRecorder) Create ¶
func (mr *MockManagerMockRecorder) Create(ctx, cluster, tags, extraMembers 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) GetByIDIncludeSoftDelete ¶
func (mr *MockManagerMockRecorder) GetByIDIncludeSoftDelete(ctx, id interface{}) *gomock.Call
GetByIDIncludeSoftDelete indicates an expected call of GetByIDIncludeSoftDelete.
func (*MockManagerMockRecorder) GetByName ¶
func (mr *MockManagerMockRecorder) GetByName(ctx, clusterName interface{}) *gomock.Call
GetByName indicates an expected call of GetByName.
func (*MockManagerMockRecorder) GetByNameFuzzilyIncludeSoftDelete ¶
func (mr *MockManagerMockRecorder) GetByNameFuzzilyIncludeSoftDelete(ctx, name interface{}) *gomock.Call
GetByNameFuzzilyIncludeSoftDelete indicates an expected call of GetByNameFuzzilyIncludeSoftDelete.
func (*MockManagerMockRecorder) List ¶
func (mr *MockManagerMockRecorder) List(ctx, query interface{}, appIDs ...interface{}) *gomock.Call
List indicates an expected call of List.
func (*MockManagerMockRecorder) ListByApplicationID ¶
func (mr *MockManagerMockRecorder) ListByApplicationID(ctx, applicationID interface{}) *gomock.Call
ListByApplicationID indicates an expected call of ListByApplicationID.
func (*MockManagerMockRecorder) ListClusterWithExpiry ¶
func (mr *MockManagerMockRecorder) ListClusterWithExpiry(ctx, query interface{}) *gomock.Call
ListClusterWithExpiry indicates an expected call of ListClusterWithExpiry.
func (*MockManagerMockRecorder) UpdateByID ¶
func (mr *MockManagerMockRecorder) UpdateByID(ctx, id, cluster interface{}) *gomock.Call
UpdateByID indicates an expected call of UpdateByID.