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

func (m *MockManager) Create(ctx context.Context, group *models0.Group) (*models0.Group, error)

Create mocks base method.

func (*MockManager) Delete

func (m *MockManager) Delete(ctx context.Context, id uint) (int64, error)

Delete 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) GetAll

func (m *MockManager) GetAll(ctx context.Context) ([]*models0.Group, error)

GetAll mocks base method.

func (*MockManager) GetByID

func (m *MockManager) GetByID(ctx context.Context, id uint) (*models0.Group, error)

GetByID mocks base method.

func (*MockManager) GetByIDNameFuzzily

func (m *MockManager) GetByIDNameFuzzily(ctx context.Context, id uint, name string) ([]*models0.Group, error)

GetByIDNameFuzzily mocks base method.

func (*MockManager) GetByIDs

func (m *MockManager) GetByIDs(ctx context.Context, ids []uint) ([]*models0.Group, error)

GetByIDs mocks base method.

func (*MockManager) GetByNameFuzzily

func (m *MockManager) GetByNameFuzzily(ctx context.Context, name string) ([]*models0.Group, error)

GetByNameFuzzily mocks base method.

func (*MockManager) GetByNameFuzzilyIncludeSoftDelete

func (m *MockManager) GetByNameFuzzilyIncludeSoftDelete(ctx context.Context, name string) ([]*models0.Group, error)

GetByNameFuzzilyIncludeSoftDelete mocks base method.

func (*MockManager) GetByNameOrPathUnderParent

func (m *MockManager) GetByNameOrPathUnderParent(ctx context.Context, name, path string, parentID uint) ([]*models0.Group, error)

GetByNameOrPathUnderParent mocks base method.

func (*MockManager) GetByPaths

func (m *MockManager) GetByPaths(ctx context.Context, paths []string) ([]*models0.Group, error)

GetByPaths mocks base method.

func (*MockManager) GetChildren

func (m *MockManager) GetChildren(ctx context.Context, parentID uint, pageNumber, pageSize int) ([]*models0.GroupOrApplication, int64, error)

GetChildren mocks base method.

func (*MockManager) GetDefaultRegions

func (m *MockManager) GetDefaultRegions(ctx context.Context, id uint) ([]*models.EnvironmentRegion, error)

GetDefaultRegions mocks base method.

func (*MockManager) GetSelectableRegions

func (m *MockManager) GetSelectableRegions(ctx context.Context, id uint) (models1.RegionParts, error)

GetSelectableRegions mocks base method.

func (*MockManager) GetSelectableRegionsByEnv

func (m *MockManager) GetSelectableRegionsByEnv(ctx context.Context, id uint, env string) (models1.RegionParts, error)

GetSelectableRegionsByEnv mocks base method.

func (*MockManager) GetSubGroups

func (m *MockManager) GetSubGroups(ctx context.Context, id uint, pageNumber, pageSize int) ([]*models0.Group, int64, error)

GetSubGroups mocks base method.

func (*MockManager) GetSubGroupsByGroupIDs

func (m *MockManager) GetSubGroupsByGroupIDs(ctx context.Context, groupIDs []uint) ([]*models0.Group, error)

GetSubGroupsByGroupIDs mocks base method.

func (*MockManager) GetSubGroupsUnderParentIDs

func (m *MockManager) GetSubGroupsUnderParentIDs(ctx context.Context, parentIDs []uint) ([]*models0.Group, error)

GetSubGroupsUnderParentIDs mocks base method.

func (*MockManager) GroupExist

func (m *MockManager) GroupExist(ctx context.Context, groupID uint) bool

GroupExist mocks base method.

func (*MockManager) IsRootGroup

func (m *MockManager) IsRootGroup(groupID uint) bool

IsRootGroup mocks base method.

func (*MockManager) Transfer

func (m *MockManager) Transfer(ctx context.Context, id, newParentID uint) error

Transfer mocks base method.

func (*MockManager) UpdateBasic

func (m *MockManager) UpdateBasic(ctx context.Context, group *models0.Group) error

UpdateBasic mocks base method.

func (*MockManager) UpdateRegionSelector

func (m *MockManager) UpdateRegionSelector(ctx context.Context, id uint, regionSelector string) error

UpdateRegionSelector 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, group interface{}) *gomock.Call

Create indicates an expected call of Create.

func (*MockManagerMockRecorder) Delete

func (mr *MockManagerMockRecorder) Delete(ctx, id interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockManagerMockRecorder) GetAll

func (mr *MockManagerMockRecorder) GetAll(ctx interface{}) *gomock.Call

GetAll indicates an expected call of GetAll.

func (*MockManagerMockRecorder) GetByID

func (mr *MockManagerMockRecorder) GetByID(ctx, id interface{}) *gomock.Call

GetByID indicates an expected call of GetByID.

func (*MockManagerMockRecorder) GetByIDNameFuzzily

func (mr *MockManagerMockRecorder) GetByIDNameFuzzily(ctx, id, name interface{}) *gomock.Call

GetByIDNameFuzzily indicates an expected call of GetByIDNameFuzzily.

func (*MockManagerMockRecorder) GetByIDs

func (mr *MockManagerMockRecorder) GetByIDs(ctx, ids interface{}) *gomock.Call

GetByIDs indicates an expected call of GetByIDs.

func (*MockManagerMockRecorder) GetByNameFuzzily

func (mr *MockManagerMockRecorder) GetByNameFuzzily(ctx, name interface{}) *gomock.Call

GetByNameFuzzily indicates an expected call of GetByNameFuzzily.

func (*MockManagerMockRecorder) GetByNameFuzzilyIncludeSoftDelete

func (mr *MockManagerMockRecorder) GetByNameFuzzilyIncludeSoftDelete(ctx, name interface{}) *gomock.Call

GetByNameFuzzilyIncludeSoftDelete indicates an expected call of GetByNameFuzzilyIncludeSoftDelete.

func (*MockManagerMockRecorder) GetByNameOrPathUnderParent

func (mr *MockManagerMockRecorder) GetByNameOrPathUnderParent(ctx, name, path, parentID interface{}) *gomock.Call

GetByNameOrPathUnderParent indicates an expected call of GetByNameOrPathUnderParent.

func (*MockManagerMockRecorder) GetByPaths

func (mr *MockManagerMockRecorder) GetByPaths(ctx, paths interface{}) *gomock.Call

GetByPaths indicates an expected call of GetByPaths.

func (*MockManagerMockRecorder) GetChildren

func (mr *MockManagerMockRecorder) GetChildren(ctx, parentID, pageNumber, pageSize interface{}) *gomock.Call

GetChildren indicates an expected call of GetChildren.

func (*MockManagerMockRecorder) GetDefaultRegions

func (mr *MockManagerMockRecorder) GetDefaultRegions(ctx, id interface{}) *gomock.Call

GetDefaultRegions indicates an expected call of GetDefaultRegions.

func (*MockManagerMockRecorder) GetSelectableRegions

func (mr *MockManagerMockRecorder) GetSelectableRegions(ctx, id interface{}) *gomock.Call

GetSelectableRegions indicates an expected call of GetSelectableRegions.

func (*MockManagerMockRecorder) GetSelectableRegionsByEnv

func (mr *MockManagerMockRecorder) GetSelectableRegionsByEnv(ctx, id, env interface{}) *gomock.Call

GetSelectableRegionsByEnv indicates an expected call of GetSelectableRegionsByEnv.

func (*MockManagerMockRecorder) GetSubGroups

func (mr *MockManagerMockRecorder) GetSubGroups(ctx, id, pageNumber, pageSize interface{}) *gomock.Call

GetSubGroups indicates an expected call of GetSubGroups.

func (*MockManagerMockRecorder) GetSubGroupsByGroupIDs

func (mr *MockManagerMockRecorder) GetSubGroupsByGroupIDs(ctx, groupIDs interface{}) *gomock.Call

GetSubGroupsByGroupIDs indicates an expected call of GetSubGroupsByGroupIDs.

func (*MockManagerMockRecorder) GetSubGroupsUnderParentIDs

func (mr *MockManagerMockRecorder) GetSubGroupsUnderParentIDs(ctx, parentIDs interface{}) *gomock.Call

GetSubGroupsUnderParentIDs indicates an expected call of GetSubGroupsUnderParentIDs.

func (*MockManagerMockRecorder) GroupExist

func (mr *MockManagerMockRecorder) GroupExist(ctx, groupID interface{}) *gomock.Call

GroupExist indicates an expected call of GroupExist.

func (*MockManagerMockRecorder) IsRootGroup

func (mr *MockManagerMockRecorder) IsRootGroup(groupID interface{}) *gomock.Call

IsRootGroup indicates an expected call of IsRootGroup.

func (*MockManagerMockRecorder) Transfer

func (mr *MockManagerMockRecorder) Transfer(ctx, id, newParentID interface{}) *gomock.Call

Transfer indicates an expected call of Transfer.

func (*MockManagerMockRecorder) UpdateBasic

func (mr *MockManagerMockRecorder) UpdateBasic(ctx, group interface{}) *gomock.Call

UpdateBasic indicates an expected call of UpdateBasic.

func (*MockManagerMockRecorder) UpdateRegionSelector

func (mr *MockManagerMockRecorder) UpdateRegionSelector(ctx, id, regionSelector interface{}) *gomock.Call

UpdateRegionSelector indicates an expected call of UpdateRegionSelector.

Jump to

Keyboard shortcuts

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