mock_hatchery

package
v0.54.1 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Overview

Package mock_hatchery is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockInterface

type MockInterface struct {
	// contains filtered or unexported fields
}

MockInterface is a mock of Interface interface.

func NewMockInterface

func NewMockInterface(ctrl *gomock.Controller) *MockInterface

NewMockInterface creates a new mock instance.

func (*MockInterface) CDSClient

func (m *MockInterface) CDSClient() cdsclient.Interface

CDSClient mocks base method.

func (*MockInterface) CDSClientV2 added in v0.53.0

CDSClientV2 mocks base method.

func (*MockInterface) CanSpawn

func (m *MockInterface) CanSpawn(ctx context.Context, model sdk.WorkerStarterWorkerModel, jobID string, requirements []sdk.Requirement) bool

CanSpawn mocks base method.

func (*MockInterface) Configuration

Configuration mocks base method.

func (*MockInterface) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockInterface) GetGoRoutines

func (m *MockInterface) GetGoRoutines() *sdk.GoRoutines

GetGoRoutines mocks base method.

func (*MockInterface) GetMapPendingWorkerCreation added in v0.53.1

func (m *MockInterface) GetMapPendingWorkerCreation() *sdk.HatcheryPendingWorkerCreation

GetMapPendingWorkerCreation mocks base method.

func (*MockInterface) GetPrivateKey

func (m *MockInterface) GetPrivateKey() *rsa.PrivateKey

GetPrivateKey mocks base method.

func (*MockInterface) GetRegion added in v0.53.0

func (m *MockInterface) GetRegion() string

GetRegion mocks base method.

func (*MockInterface) InitHatchery

func (m *MockInterface) InitHatchery(ctx context.Context) error

InitHatchery mocks base method.

func (*MockInterface) Name

func (m *MockInterface) Name() string

Name mocks base method.

func (*MockInterface) Serve

func (m *MockInterface) Serve(ctx context.Context) error

Serve mocks base method.

func (*MockInterface) Service

func (m *MockInterface) Service() *sdk.Service

Service mocks base method.

func (*MockInterface) SpawnWorker

func (m *MockInterface) SpawnWorker(ctx context.Context, spawnArgs hatchery.SpawnArguments) error

SpawnWorker mocks base method.

func (*MockInterface) Type

func (m *MockInterface) Type() string

Type mocks base method.

func (*MockInterface) WorkersStarted

func (m *MockInterface) WorkersStarted(ctx context.Context) ([]string, error)

WorkersStarted mocks base method.

type MockInterfaceMockRecorder

type MockInterfaceMockRecorder struct {
	// contains filtered or unexported fields
}

MockInterfaceMockRecorder is the mock recorder for MockInterface.

func (*MockInterfaceMockRecorder) CDSClient

func (mr *MockInterfaceMockRecorder) CDSClient() *gomock.Call

CDSClient indicates an expected call of CDSClient.

func (*MockInterfaceMockRecorder) CDSClientV2 added in v0.53.0

func (mr *MockInterfaceMockRecorder) CDSClientV2() *gomock.Call

CDSClientV2 indicates an expected call of CDSClientV2.

func (*MockInterfaceMockRecorder) CanSpawn

func (mr *MockInterfaceMockRecorder) CanSpawn(ctx, model, jobID, requirements interface{}) *gomock.Call

CanSpawn indicates an expected call of CanSpawn.

func (*MockInterfaceMockRecorder) Configuration

func (mr *MockInterfaceMockRecorder) Configuration() *gomock.Call

Configuration indicates an expected call of Configuration.

func (*MockInterfaceMockRecorder) GetGoRoutines

func (mr *MockInterfaceMockRecorder) GetGoRoutines() *gomock.Call

GetGoRoutines indicates an expected call of GetGoRoutines.

func (*MockInterfaceMockRecorder) GetMapPendingWorkerCreation added in v0.53.1

func (mr *MockInterfaceMockRecorder) GetMapPendingWorkerCreation() *gomock.Call

GetMapPendingWorkerCreation indicates an expected call of GetMapPendingWorkerCreation.

func (*MockInterfaceMockRecorder) GetPrivateKey

func (mr *MockInterfaceMockRecorder) GetPrivateKey() *gomock.Call

GetPrivateKey indicates an expected call of GetPrivateKey.

func (*MockInterfaceMockRecorder) GetRegion added in v0.53.0

func (mr *MockInterfaceMockRecorder) GetRegion() *gomock.Call

GetRegion indicates an expected call of GetRegion.

func (*MockInterfaceMockRecorder) InitHatchery

func (mr *MockInterfaceMockRecorder) InitHatchery(ctx interface{}) *gomock.Call

InitHatchery indicates an expected call of InitHatchery.

func (*MockInterfaceMockRecorder) Name

Name indicates an expected call of Name.

func (*MockInterfaceMockRecorder) Serve

func (mr *MockInterfaceMockRecorder) Serve(ctx interface{}) *gomock.Call

Serve indicates an expected call of Serve.

func (*MockInterfaceMockRecorder) Service

func (mr *MockInterfaceMockRecorder) Service() *gomock.Call

Service indicates an expected call of Service.

func (*MockInterfaceMockRecorder) SpawnWorker

func (mr *MockInterfaceMockRecorder) SpawnWorker(ctx, spawnArgs interface{}) *gomock.Call

SpawnWorker indicates an expected call of SpawnWorker.

func (*MockInterfaceMockRecorder) Type

Type indicates an expected call of Type.

func (*MockInterfaceMockRecorder) WorkersStarted

func (mr *MockInterfaceMockRecorder) WorkersStarted(ctx interface{}) *gomock.Call

WorkersStarted indicates an expected call of WorkersStarted.

type MockInterfaceWithModels

type MockInterfaceWithModels struct {
	// contains filtered or unexported fields
}

MockInterfaceWithModels is a mock of InterfaceWithModels interface.

func NewMockInterfaceWithModels

func NewMockInterfaceWithModels(ctrl *gomock.Controller) *MockInterfaceWithModels

NewMockInterfaceWithModels creates a new mock instance.

func (*MockInterfaceWithModels) CDSClient

CDSClient mocks base method.

func (*MockInterfaceWithModels) CDSClientV2 added in v0.53.0

CDSClientV2 mocks base method.

func (*MockInterfaceWithModels) CanSpawn

func (m *MockInterfaceWithModels) CanSpawn(ctx context.Context, model sdk.WorkerStarterWorkerModel, jobID string, requirements []sdk.Requirement) bool

CanSpawn mocks base method.

func (*MockInterfaceWithModels) Configuration

Configuration mocks base method.

func (*MockInterfaceWithModels) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockInterfaceWithModels) GetGoRoutines

func (m *MockInterfaceWithModels) GetGoRoutines() *sdk.GoRoutines

GetGoRoutines mocks base method.

func (*MockInterfaceWithModels) GetMapPendingWorkerCreation added in v0.53.1

func (m *MockInterfaceWithModels) GetMapPendingWorkerCreation() *sdk.HatcheryPendingWorkerCreation

GetMapPendingWorkerCreation mocks base method.

func (*MockInterfaceWithModels) GetPrivateKey

func (m *MockInterfaceWithModels) GetPrivateKey() *rsa.PrivateKey

GetPrivateKey mocks base method.

func (*MockInterfaceWithModels) GetRegion added in v0.53.0

func (m *MockInterfaceWithModels) GetRegion() string

GetRegion mocks base method.

func (*MockInterfaceWithModels) InitHatchery

func (m *MockInterfaceWithModels) InitHatchery(ctx context.Context) error

InitHatchery mocks base method.

func (*MockInterfaceWithModels) ModelType

func (m *MockInterfaceWithModels) ModelType() string

ModelType mocks base method.

func (*MockInterfaceWithModels) Name

func (m *MockInterfaceWithModels) Name() string

Name mocks base method.

func (*MockInterfaceWithModels) NeedRegistration

func (m *MockInterfaceWithModels) NeedRegistration(ctx context.Context, model *sdk.Model) bool

NeedRegistration mocks base method.

func (*MockInterfaceWithModels) Serve

Serve mocks base method.

func (*MockInterfaceWithModels) Service

func (m *MockInterfaceWithModels) Service() *sdk.Service

Service mocks base method.

func (*MockInterfaceWithModels) SpawnWorker

func (m *MockInterfaceWithModels) SpawnWorker(ctx context.Context, spawnArgs hatchery.SpawnArguments) error

SpawnWorker mocks base method.

func (*MockInterfaceWithModels) Type

func (m *MockInterfaceWithModels) Type() string

Type mocks base method.

func (*MockInterfaceWithModels) WorkerModelSecretList

func (m *MockInterfaceWithModels) WorkerModelSecretList(arg0 sdk.Model) (sdk.WorkerModelSecrets, error)

WorkerModelSecretList mocks base method.

func (*MockInterfaceWithModels) WorkerModelsEnabled

func (m *MockInterfaceWithModels) WorkerModelsEnabled() ([]sdk.Model, error)

WorkerModelsEnabled mocks base method.

func (*MockInterfaceWithModels) WorkersStarted

func (m *MockInterfaceWithModels) WorkersStarted(ctx context.Context) ([]string, error)

WorkersStarted mocks base method.

type MockInterfaceWithModelsMockRecorder

type MockInterfaceWithModelsMockRecorder struct {
	// contains filtered or unexported fields
}

MockInterfaceWithModelsMockRecorder is the mock recorder for MockInterfaceWithModels.

func (*MockInterfaceWithModelsMockRecorder) CDSClient

CDSClient indicates an expected call of CDSClient.

func (*MockInterfaceWithModelsMockRecorder) CDSClientV2 added in v0.53.0

func (mr *MockInterfaceWithModelsMockRecorder) CDSClientV2() *gomock.Call

CDSClientV2 indicates an expected call of CDSClientV2.

func (*MockInterfaceWithModelsMockRecorder) CanSpawn

func (mr *MockInterfaceWithModelsMockRecorder) CanSpawn(ctx, model, jobID, requirements interface{}) *gomock.Call

CanSpawn indicates an expected call of CanSpawn.

func (*MockInterfaceWithModelsMockRecorder) Configuration

func (mr *MockInterfaceWithModelsMockRecorder) Configuration() *gomock.Call

Configuration indicates an expected call of Configuration.

func (*MockInterfaceWithModelsMockRecorder) GetGoRoutines

func (mr *MockInterfaceWithModelsMockRecorder) GetGoRoutines() *gomock.Call

GetGoRoutines indicates an expected call of GetGoRoutines.

func (*MockInterfaceWithModelsMockRecorder) GetMapPendingWorkerCreation added in v0.53.1

func (mr *MockInterfaceWithModelsMockRecorder) GetMapPendingWorkerCreation() *gomock.Call

GetMapPendingWorkerCreation indicates an expected call of GetMapPendingWorkerCreation.

func (*MockInterfaceWithModelsMockRecorder) GetPrivateKey

func (mr *MockInterfaceWithModelsMockRecorder) GetPrivateKey() *gomock.Call

GetPrivateKey indicates an expected call of GetPrivateKey.

func (*MockInterfaceWithModelsMockRecorder) GetRegion added in v0.53.0

GetRegion indicates an expected call of GetRegion.

func (*MockInterfaceWithModelsMockRecorder) InitHatchery

func (mr *MockInterfaceWithModelsMockRecorder) InitHatchery(ctx interface{}) *gomock.Call

InitHatchery indicates an expected call of InitHatchery.

func (*MockInterfaceWithModelsMockRecorder) ModelType

ModelType indicates an expected call of ModelType.

func (*MockInterfaceWithModelsMockRecorder) Name

Name indicates an expected call of Name.

func (*MockInterfaceWithModelsMockRecorder) NeedRegistration

func (mr *MockInterfaceWithModelsMockRecorder) NeedRegistration(ctx, model interface{}) *gomock.Call

NeedRegistration indicates an expected call of NeedRegistration.

func (*MockInterfaceWithModelsMockRecorder) Serve

func (mr *MockInterfaceWithModelsMockRecorder) Serve(ctx interface{}) *gomock.Call

Serve indicates an expected call of Serve.

func (*MockInterfaceWithModelsMockRecorder) Service

Service indicates an expected call of Service.

func (*MockInterfaceWithModelsMockRecorder) SpawnWorker

func (mr *MockInterfaceWithModelsMockRecorder) SpawnWorker(ctx, spawnArgs interface{}) *gomock.Call

SpawnWorker indicates an expected call of SpawnWorker.

func (*MockInterfaceWithModelsMockRecorder) Type

Type indicates an expected call of Type.

func (*MockInterfaceWithModelsMockRecorder) WorkerModelSecretList

func (mr *MockInterfaceWithModelsMockRecorder) WorkerModelSecretList(arg0 interface{}) *gomock.Call

WorkerModelSecretList indicates an expected call of WorkerModelSecretList.

func (*MockInterfaceWithModelsMockRecorder) WorkerModelsEnabled

func (mr *MockInterfaceWithModelsMockRecorder) WorkerModelsEnabled() *gomock.Call

WorkerModelsEnabled indicates an expected call of WorkerModelsEnabled.

func (*MockInterfaceWithModelsMockRecorder) WorkersStarted

func (mr *MockInterfaceWithModelsMockRecorder) WorkersStarted(ctx interface{}) *gomock.Call

WorkersStarted indicates an expected call of WorkersStarted.

Jump to

Keyboard shortcuts

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