service

package
v0.0.0-...-a1c7d3d Latest Latest
Warning

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

Go to latest
Published: May 9, 2020 License: MPL-2.0 Imports: 10 Imported by: 0

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

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

Healthy indicates an expected call of Healthy

type NoAvailableTasks

type NoAvailableTasks struct{}

func (NoAvailableTasks) Error

func (err NoAvailableTasks) Error() string

Jump to

Keyboard shortcuts

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