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

func (m *MockManager) GetByID(ctx context.Context, id uint) (*models1.Template, error)

GetByID mocks base method.

func (*MockManager) GetByName

func (m *MockManager) GetByName(ctx context.Context, name string) (*models1.Template, error)

GetByName mocks base method.

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

func (m *MockManager) ListByGroupID(ctx context.Context, groupID uint) ([]*models1.Template, error)

ListByGroupID mocks base method.

func (*MockManager) ListByGroupIDs

func (m *MockManager) ListByGroupIDs(ctx context.Context, ids []uint) ([]*models1.Template, error)

ListByGroupIDs mocks base method.

func (*MockManager) ListByIDs

func (m *MockManager) ListByIDs(ctx context.Context, ids []uint) ([]*models1.Template, error)

ListByIDs mocks base method.

func (*MockManager) ListTemplate

func (m *MockManager) ListTemplate(ctx context.Context) ([]*models1.Template, error)

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

func (m *MockManager) UpdateByID(ctx context.Context, id uint, template *models1.Template) error

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.

Jump to

Keyboard shortcuts

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