mocks

package
v1.0.11 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdminServiceInterface

type AdminServiceInterface struct {
	mock.Mock
}

AdminServiceInterface is an autogenerated mock type for the AdminServiceInterface type

func NewAdminServiceInterface

func NewAdminServiceInterface(t mockConstructorTestingTNewAdminServiceInterface) *AdminServiceInterface

NewAdminServiceInterface creates a new instance of AdminServiceInterface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*AdminServiceInterface) List

List provides a mock function with given fields: ctx

type ClientInterface

type ClientInterface struct {
	mock.Mock
}

ClientInterface is an autogenerated mock type for the ClientInterface type

func NewClientInterface

func NewClientInterface(t mockConstructorTestingTNewClientInterface) *ClientInterface

NewClientInterface creates a new instance of ClientInterface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*ClientInterface) Admins

Admins provides a mock function with given fields:

func (*ClientInterface) Do

func (_m *ClientInterface) Do(ctx context.Context, req *http.Request, v interface{}) error

Do provides a mock function with given fields: ctx, req, v

func (*ClientInterface) Hubs

Hubs provides a mock function with given fields:

func (*ClientInterface) Init

func (_m *ClientInterface) Init(apiKey string)

Init provides a mock function with given fields: apiKey

func (*ClientInterface) NewRequest

func (_m *ClientInterface) NewRequest(method string, path string, body interface{}) (*http.Request, error)

NewRequest provides a mock function with given fields: method, path, body

func (*ClientInterface) Organization

Organization provides a mock function with given fields:

func (*ClientInterface) Tasks

Tasks provides a mock function with given fields:

func (*ClientInterface) Teams

Teams provides a mock function with given fields:

func (*ClientInterface) WithBaseURL

func (_m *ClientInterface) WithBaseURL(baseURL string)

WithBaseURL provides a mock function with given fields: baseURL

func (*ClientInterface) Workers

Workers provides a mock function with given fields:

type HubsServiceInterface

type HubsServiceInterface struct {
	mock.Mock
}

HubsServiceInterface is an autogenerated mock type for the HubsServiceInterface type

func NewHubsServiceInterface

func NewHubsServiceInterface(t mockConstructorTestingTNewHubsServiceInterface) *HubsServiceInterface

NewHubsServiceInterface creates a new instance of HubsServiceInterface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*HubsServiceInterface) List

func (_m *HubsServiceInterface) List(ctx context.Context) ([]onfleet.Hub, error)

List provides a mock function with given fields: ctx

type OrganizationServiceInterface

type OrganizationServiceInterface struct {
	mock.Mock
}

OrganizationServiceInterface is an autogenerated mock type for the OrganizationServiceInterface type

func NewOrganizationServiceInterface

func NewOrganizationServiceInterface(t mockConstructorTestingTNewOrganizationServiceInterface) *OrganizationServiceInterface

NewOrganizationServiceInterface creates a new instance of OrganizationServiceInterface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*OrganizationServiceInterface) Get

Get provides a mock function with given fields: ctx

type TasksServiceInterface

type TasksServiceInterface struct {
	mock.Mock
}

TasksServiceInterface is an autogenerated mock type for the TasksServiceInterface type

func NewTasksServiceInterface

func NewTasksServiceInterface(t mockConstructorTestingTNewTasksServiceInterface) *TasksServiceInterface

NewTasksServiceInterface creates a new instance of TasksServiceInterface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*TasksServiceInterface) Complete

func (_m *TasksServiceInterface) Complete(ctx context.Context, taskId string, payload *onfleet.TaskCompletePayload) (*onfleet.Task, error)

Complete provides a mock function with given fields: ctx, taskId, payload

func (*TasksServiceInterface) Create

Create provides a mock function with given fields: ctx, payload

func (*TasksServiceInterface) Delete

func (_m *TasksServiceInterface) Delete(ctx context.Context, taskId string) (*onfleet.Task, error)

Delete provides a mock function with given fields: ctx, taskId

func (*TasksServiceInterface) Get

func (_m *TasksServiceInterface) Get(ctx context.Context, taskId string) (*onfleet.Task, error)

Get provides a mock function with given fields: ctx, taskId

func (*TasksServiceInterface) List

List provides a mock function with given fields: ctx, opts

func (*TasksServiceInterface) Update

func (_m *TasksServiceInterface) Update(ctx context.Context, taskId string, payload *onfleet.TaskUpdatePayload) (*onfleet.Task, error)

Update provides a mock function with given fields: ctx, taskId, payload

type TeamServiceInterface

type TeamServiceInterface struct {
	mock.Mock
}

TeamServiceInterface is an autogenerated mock type for the TeamServiceInterface type

func NewTeamServiceInterface

func NewTeamServiceInterface(t mockConstructorTestingTNewTeamServiceInterface) *TeamServiceInterface

NewTeamServiceInterface creates a new instance of TeamServiceInterface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*TeamServiceInterface) List

List provides a mock function with given fields: ctx

type WorkersServiceInterface

type WorkersServiceInterface struct {
	mock.Mock
}

WorkersServiceInterface is an autogenerated mock type for the WorkersServiceInterface type

func NewWorkersServiceInterface

func NewWorkersServiceInterface(t mockConstructorTestingTNewWorkersServiceInterface) *WorkersServiceInterface

NewWorkersServiceInterface creates a new instance of WorkersServiceInterface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*WorkersServiceInterface) Get

func (_m *WorkersServiceInterface) Get(ctx context.Context, workerId string) (*onfleet.Worker, error)

Get provides a mock function with given fields: ctx, workerId

func (*WorkersServiceInterface) List

List provides a mock function with given fields: ctx, opts

func (*WorkersServiceInterface) Location

Location provides a mock function with given fields: ctx, opts

Jump to

Keyboard shortcuts

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