mock_manager

package
v0.0.0-...-64e8fac Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package mock_manager is a generated GoMock package.

Index

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

func (m *MockManager) CheckClusterExists(ctx context.Context, cluster string) (bool, error)

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) GetByID

func (m *MockManager) GetByID(ctx context.Context, id uint) (*models.Cluster, error)

GetByID mocks base method.

func (*MockManager) GetByIDIncludeSoftDelete

func (m *MockManager) GetByIDIncludeSoftDelete(ctx context.Context, id uint) (*models.Cluster, error)

GetByIDIncludeSoftDelete mocks base method.

func (*MockManager) GetByName

func (m *MockManager) GetByName(ctx context.Context, clusterName string) (*models.Cluster, error)

GetByName 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.

func (*MockManager) UpdateByID

func (m *MockManager) UpdateByID(ctx context.Context, id uint, cluster *models.Cluster) (*models.Cluster, error)

UpdateByID 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.

Jump to

Keyboard shortcuts

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