Documentation ¶
Overview ¶
Package mock_hatchery is a generated GoMock package.
Index ¶
- type MockInterface
- func (m *MockInterface) CDSClient() cdsclient.Interface
- func (m *MockInterface) CanSpawn(ctx context.Context, model *sdk.Model, jobID int64, ...) bool
- func (m *MockInterface) Configuration() service.HatcheryCommonConfiguration
- func (m *MockInterface) EXPECT() *MockInterfaceMockRecorder
- func (m *MockInterface) GetGoRoutines() *sdk.GoRoutines
- func (m *MockInterface) GetLogger() *logrus.Logger
- func (m *MockInterface) GetPrivateKey() *rsa.PrivateKey
- func (m *MockInterface) InitHatchery(ctx context.Context) error
- func (m *MockInterface) Name() string
- func (m *MockInterface) Serve(ctx context.Context) error
- func (m *MockInterface) Service() *sdk.Service
- func (m *MockInterface) SpawnWorker(ctx context.Context, spawnArgs hatchery.SpawnArguments) error
- func (m *MockInterface) Type() string
- func (m *MockInterface) WorkersStarted(ctx context.Context) []string
- type MockInterfaceMockRecorder
- func (mr *MockInterfaceMockRecorder) CDSClient() *gomock.Call
- func (mr *MockInterfaceMockRecorder) CanSpawn(ctx, model, jobID, requirements interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) Configuration() *gomock.Call
- func (mr *MockInterfaceMockRecorder) GetGoRoutines() *gomock.Call
- func (mr *MockInterfaceMockRecorder) GetLogger() *gomock.Call
- func (mr *MockInterfaceMockRecorder) GetPrivateKey() *gomock.Call
- func (mr *MockInterfaceMockRecorder) InitHatchery(ctx interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) Name() *gomock.Call
- func (mr *MockInterfaceMockRecorder) Serve(ctx interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) Service() *gomock.Call
- func (mr *MockInterfaceMockRecorder) SpawnWorker(ctx, spawnArgs interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) Type() *gomock.Call
- func (mr *MockInterfaceMockRecorder) WorkersStarted(ctx interface{}) *gomock.Call
- type MockInterfaceWithModels
- func (m *MockInterfaceWithModels) CDSClient() cdsclient.Interface
- func (m *MockInterfaceWithModels) CanSpawn(ctx context.Context, model *sdk.Model, jobID int64, ...) bool
- func (m *MockInterfaceWithModels) Configuration() service.HatcheryCommonConfiguration
- func (m *MockInterfaceWithModels) EXPECT() *MockInterfaceWithModelsMockRecorder
- func (m *MockInterfaceWithModels) GetGoRoutines() *sdk.GoRoutines
- func (m *MockInterfaceWithModels) GetLogger() *logrus.Logger
- func (m *MockInterfaceWithModels) GetPrivateKey() *rsa.PrivateKey
- func (m *MockInterfaceWithModels) InitHatchery(ctx context.Context) error
- func (m *MockInterfaceWithModels) ModelType() string
- func (m *MockInterfaceWithModels) Name() string
- func (m *MockInterfaceWithModels) NeedRegistration(ctx context.Context, model *sdk.Model) bool
- func (m *MockInterfaceWithModels) Serve(ctx context.Context) error
- func (m *MockInterfaceWithModels) Service() *sdk.Service
- func (m *MockInterfaceWithModels) SpawnWorker(ctx context.Context, spawnArgs hatchery.SpawnArguments) error
- func (m *MockInterfaceWithModels) Type() string
- func (m *MockInterfaceWithModels) WorkerModelSecretList(arg0 sdk.Model) (sdk.WorkerModelSecrets, error)
- func (m *MockInterfaceWithModels) WorkerModelsEnabled() ([]sdk.Model, error)
- func (m *MockInterfaceWithModels) WorkersStarted(ctx context.Context) []string
- type MockInterfaceWithModelsMockRecorder
- func (mr *MockInterfaceWithModelsMockRecorder) CDSClient() *gomock.Call
- func (mr *MockInterfaceWithModelsMockRecorder) CanSpawn(ctx, model, jobID, requirements interface{}) *gomock.Call
- func (mr *MockInterfaceWithModelsMockRecorder) Configuration() *gomock.Call
- func (mr *MockInterfaceWithModelsMockRecorder) GetGoRoutines() *gomock.Call
- func (mr *MockInterfaceWithModelsMockRecorder) GetLogger() *gomock.Call
- func (mr *MockInterfaceWithModelsMockRecorder) GetPrivateKey() *gomock.Call
- func (mr *MockInterfaceWithModelsMockRecorder) InitHatchery(ctx interface{}) *gomock.Call
- func (mr *MockInterfaceWithModelsMockRecorder) ModelType() *gomock.Call
- func (mr *MockInterfaceWithModelsMockRecorder) Name() *gomock.Call
- func (mr *MockInterfaceWithModelsMockRecorder) NeedRegistration(ctx, model interface{}) *gomock.Call
- func (mr *MockInterfaceWithModelsMockRecorder) Serve(ctx interface{}) *gomock.Call
- func (mr *MockInterfaceWithModelsMockRecorder) Service() *gomock.Call
- func (mr *MockInterfaceWithModelsMockRecorder) SpawnWorker(ctx, spawnArgs interface{}) *gomock.Call
- func (mr *MockInterfaceWithModelsMockRecorder) Type() *gomock.Call
- func (mr *MockInterfaceWithModelsMockRecorder) WorkerModelSecretList(arg0 interface{}) *gomock.Call
- func (mr *MockInterfaceWithModelsMockRecorder) WorkerModelsEnabled() *gomock.Call
- func (mr *MockInterfaceWithModelsMockRecorder) WorkersStarted(ctx interface{}) *gomock.Call
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) CanSpawn ¶
func (m *MockInterface) CanSpawn(ctx context.Context, model *sdk.Model, jobID int64, requirements []sdk.Requirement) bool
CanSpawn mocks base method.
func (*MockInterface) Configuration ¶
func (m *MockInterface) Configuration() service.HatcheryCommonConfiguration
Configuration mocks base method.
func (*MockInterface) EXPECT ¶
func (m *MockInterface) EXPECT() *MockInterfaceMockRecorder
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) GetLogger ¶
func (m *MockInterface) GetLogger() *logrus.Logger
GetLogger mocks base method.
func (*MockInterface) GetPrivateKey ¶
func (m *MockInterface) GetPrivateKey() *rsa.PrivateKey
GetPrivateKey mocks base method.
func (*MockInterface) InitHatchery ¶
func (m *MockInterface) InitHatchery(ctx context.Context) error
InitHatchery 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) WorkersStarted ¶
func (m *MockInterface) WorkersStarted(ctx context.Context) []string
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) 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) GetLogger ¶
func (mr *MockInterfaceMockRecorder) GetLogger() *gomock.Call
GetLogger indicates an expected call of GetLogger.
func (*MockInterfaceMockRecorder) GetPrivateKey ¶
func (mr *MockInterfaceMockRecorder) GetPrivateKey() *gomock.Call
GetPrivateKey indicates an expected call of GetPrivateKey.
func (*MockInterfaceMockRecorder) InitHatchery ¶
func (mr *MockInterfaceMockRecorder) InitHatchery(ctx interface{}) *gomock.Call
InitHatchery indicates an expected call of InitHatchery.
func (*MockInterfaceMockRecorder) Name ¶
func (mr *MockInterfaceMockRecorder) Name() *gomock.Call
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 ¶
func (mr *MockInterfaceMockRecorder) Type() *gomock.Call
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 ¶
func (m *MockInterfaceWithModels) CDSClient() cdsclient.Interface
CDSClient mocks base method.
func (*MockInterfaceWithModels) CanSpawn ¶
func (m *MockInterfaceWithModels) CanSpawn(ctx context.Context, model *sdk.Model, jobID int64, requirements []sdk.Requirement) bool
CanSpawn mocks base method.
func (*MockInterfaceWithModels) Configuration ¶
func (m *MockInterfaceWithModels) Configuration() service.HatcheryCommonConfiguration
Configuration mocks base method.
func (*MockInterfaceWithModels) EXPECT ¶
func (m *MockInterfaceWithModels) EXPECT() *MockInterfaceWithModelsMockRecorder
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) GetLogger ¶
func (m *MockInterfaceWithModels) GetLogger() *logrus.Logger
GetLogger mocks base method.
func (*MockInterfaceWithModels) GetPrivateKey ¶
func (m *MockInterfaceWithModels) GetPrivateKey() *rsa.PrivateKey
GetPrivateKey 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 ¶
NeedRegistration mocks base method.
func (*MockInterfaceWithModels) Serve ¶
func (m *MockInterfaceWithModels) Serve(ctx context.Context) error
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
WorkersStarted mocks base method.
type MockInterfaceWithModelsMockRecorder ¶
type MockInterfaceWithModelsMockRecorder struct {
// contains filtered or unexported fields
}
MockInterfaceWithModelsMockRecorder is the mock recorder for MockInterfaceWithModels.
func (*MockInterfaceWithModelsMockRecorder) CDSClient ¶
func (mr *MockInterfaceWithModelsMockRecorder) CDSClient() *gomock.Call
CDSClient indicates an expected call of CDSClient.
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) GetLogger ¶
func (mr *MockInterfaceWithModelsMockRecorder) GetLogger() *gomock.Call
GetLogger indicates an expected call of GetLogger.
func (*MockInterfaceWithModelsMockRecorder) GetPrivateKey ¶
func (mr *MockInterfaceWithModelsMockRecorder) GetPrivateKey() *gomock.Call
GetPrivateKey indicates an expected call of GetPrivateKey.
func (*MockInterfaceWithModelsMockRecorder) InitHatchery ¶
func (mr *MockInterfaceWithModelsMockRecorder) InitHatchery(ctx interface{}) *gomock.Call
InitHatchery indicates an expected call of InitHatchery.
func (*MockInterfaceWithModelsMockRecorder) ModelType ¶
func (mr *MockInterfaceWithModelsMockRecorder) ModelType() *gomock.Call
ModelType indicates an expected call of ModelType.
func (*MockInterfaceWithModelsMockRecorder) Name ¶
func (mr *MockInterfaceWithModelsMockRecorder) Name() *gomock.Call
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 ¶
func (mr *MockInterfaceWithModelsMockRecorder) Service() *gomock.Call
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 ¶
func (mr *MockInterfaceWithModelsMockRecorder) Type() *gomock.Call
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.