Documentation
¶
Overview ¶
Package mock_service is a generated GoMock package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(s datastore.Storage, a authorization.Authorizer) *service
Types ¶
type AssignmentService ¶
type AssignmentService interface { Healthy() bool SetAuthData(data authentication.AuthData) GetAssignments(assignment.Params) (assignment.Assignments, error) GetAssignment(id string) (*assignment.Assignment, error) CreateAssignment(assignment.NewAssignment, *assignment.Settings) (*assignment.Assignment, error) GetSettings(jobID uint64) (*assignment.Settings, error) DeleteAssignment(id string) (bool, error) DeleteAssignments(ids []string) error UpdateAssignment(workerID, jobID, responseID uint64, status string) (bool, error) CreateSettings(assignment.Settings) (*assignment.Settings, error) GetStore() datastore.Storage ValidateAssignment(a assignment.NewAssignment, set *assignment.Settings) (bool, error) GetRegistration(jobID uint64) (*registrysvc.Registration, error) }
type MockAssignmentService ¶
type MockAssignmentService struct {
// contains filtered or unexported fields
}
MockAssignmentService is a mock of AssignmentService interface
func NewMockAssignmentService ¶
func NewMockAssignmentService(ctrl *gomock.Controller) *MockAssignmentService
NewMockAssignmentService creates a new mock instance
func (*MockAssignmentService) EXPECT ¶
func (m *MockAssignmentService) EXPECT() *MockAssignmentServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockAssignmentService) Healthy ¶
func (m *MockAssignmentService) Healthy() bool
Healthy mocks base method
type MockAssignmentServiceMockRecorder ¶
type MockAssignmentServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockAssignmentServiceMockRecorder is the mock recorder for MockAssignmentService
func (*MockAssignmentServiceMockRecorder) Healthy ¶
func (mr *MockAssignmentServiceMockRecorder) Healthy() *gomock.Call
Healthy indicates an expected call of Healthy
type NoAvailableTasks ¶
type NoAvailableTasks struct{}
func (NoAvailableTasks) Error ¶
func (err NoAvailableTasks) Error() string
Click to show internal directories.
Click to hide internal directories.