// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/stacklok/toolhive/pkg/vmcp/workloads (interfaces: Discoverer)
//
// Generated by this command:
//
//	mockgen -destination=mocks/mock_discoverer.go -package=mocks github.com/stacklok/toolhive/pkg/vmcp/workloads Discoverer
//

// Package mocks is a generated GoMock package.
package mocks

import (
	context "context"
	reflect "reflect"

	vmcp "github.com/stacklok/toolhive/pkg/vmcp"
	workloads "github.com/stacklok/toolhive/pkg/vmcp/workloads"
	gomock "go.uber.org/mock/gomock"
)

// MockDiscoverer is a mock of Discoverer interface.
type MockDiscoverer struct {
	ctrl     *gomock.Controller
	recorder *MockDiscovererMockRecorder
	isgomock struct{}
}

// MockDiscovererMockRecorder is the mock recorder for MockDiscoverer.
type MockDiscovererMockRecorder struct {
	mock *MockDiscoverer
}

// NewMockDiscoverer creates a new mock instance.
func NewMockDiscoverer(ctrl *gomock.Controller) *MockDiscoverer {
	mock := &MockDiscoverer{ctrl: ctrl}
	mock.recorder = &MockDiscovererMockRecorder{mock}
	return mock
}

// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockDiscoverer) EXPECT() *MockDiscovererMockRecorder {
	return m.recorder
}

// GetWorkloadAsVMCPBackend mocks base method.
func (m *MockDiscoverer) GetWorkloadAsVMCPBackend(ctx context.Context, workload workloads.TypedWorkload) (*vmcp.Backend, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "GetWorkloadAsVMCPBackend", ctx, workload)
	ret0, _ := ret[0].(*vmcp.Backend)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// GetWorkloadAsVMCPBackend indicates an expected call of GetWorkloadAsVMCPBackend.
func (mr *MockDiscovererMockRecorder) GetWorkloadAsVMCPBackend(ctx, workload any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetWorkloadAsVMCPBackend", reflect.TypeOf((*MockDiscoverer)(nil).GetWorkloadAsVMCPBackend), ctx, workload)
}

// ListWorkloadsInGroup mocks base method.
func (m *MockDiscoverer) ListWorkloadsInGroup(ctx context.Context, groupName string) ([]workloads.TypedWorkload, error) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "ListWorkloadsInGroup", ctx, groupName)
	ret0, _ := ret[0].([]workloads.TypedWorkload)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// ListWorkloadsInGroup indicates an expected call of ListWorkloadsInGroup.
func (mr *MockDiscovererMockRecorder) ListWorkloadsInGroup(ctx, groupName any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListWorkloadsInGroup", reflect.TypeOf((*MockDiscoverer)(nil).ListWorkloadsInGroup), ctx, groupName)
}
