Documentation ¶
Index ¶
- type AdminServiceInterface
- type ClientInterface
- func (_m *ClientInterface) Admins() onfleet.AdminServiceInterface
- func (_m *ClientInterface) Do(ctx context.Context, req *http.Request, v interface{}) error
- func (_m *ClientInterface) Hubs() onfleet.HubsServiceInterface
- func (_m *ClientInterface) Init(apiKey string)
- func (_m *ClientInterface) NewRequest(method string, path string, body interface{}) (*http.Request, error)
- func (_m *ClientInterface) Organization() onfleet.OrganizationServiceInterface
- func (_m *ClientInterface) Tasks() onfleet.TasksServiceInterface
- func (_m *ClientInterface) Teams() onfleet.TeamServiceInterface
- func (_m *ClientInterface) WithBaseURL(baseURL string)
- func (_m *ClientInterface) Workers() onfleet.WorkersServiceInterface
- type HubsServiceInterface
- type OrganizationServiceInterface
- type TasksServiceInterface
- func (_m *TasksServiceInterface) Complete(ctx context.Context, taskId string, payload *onfleet.TaskCompletePayload) (*onfleet.Task, error)
- func (_m *TasksServiceInterface) Create(ctx context.Context, payload *onfleet.TasksCreatePayload) ([]onfleet.Task, error)
- func (_m *TasksServiceInterface) Delete(ctx context.Context, taskId string) (*onfleet.Task, error)
- func (_m *TasksServiceInterface) Get(ctx context.Context, taskId string) (*onfleet.Task, error)
- func (_m *TasksServiceInterface) List(ctx context.Context, opts *onfleet.TasksListOptions) ([]onfleet.Task, error)
- func (_m *TasksServiceInterface) Update(ctx context.Context, taskId string, payload *onfleet.TaskUpdatePayload) (*onfleet.Task, error)
- type TeamServiceInterface
- type WorkersServiceInterface
- func (_m *WorkersServiceInterface) Get(ctx context.Context, workerId string) (*onfleet.Worker, error)
- func (_m *WorkersServiceInterface) List(ctx context.Context, opts *onfleet.WorkersListOptions) ([]onfleet.Worker, error)
- func (_m *WorkersServiceInterface) Location(ctx context.Context, opts *onfleet.WorkersLocationOptions) ([]onfleet.Worker, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdminServiceInterface ¶
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.
type ClientInterface ¶
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 ¶
func (_m *ClientInterface) Admins() onfleet.AdminServiceInterface
Admins provides a mock function with given fields:
func (*ClientInterface) Hubs ¶
func (_m *ClientInterface) Hubs() onfleet.HubsServiceInterface
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 ¶
func (_m *ClientInterface) Organization() onfleet.OrganizationServiceInterface
Organization provides a mock function with given fields:
func (*ClientInterface) Tasks ¶
func (_m *ClientInterface) Tasks() onfleet.TasksServiceInterface
Tasks provides a mock function with given fields:
func (*ClientInterface) Teams ¶
func (_m *ClientInterface) Teams() onfleet.TeamServiceInterface
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 ¶
func (_m *ClientInterface) Workers() onfleet.WorkersServiceInterface
Workers provides a mock function with given fields:
type HubsServiceInterface ¶
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.
type OrganizationServiceInterface ¶
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 ¶
func (_m *OrganizationServiceInterface) Get(ctx context.Context) (*onfleet.Organization, error)
Get provides a mock function with given fields: ctx
type TasksServiceInterface ¶
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 ¶
func (_m *TasksServiceInterface) Create(ctx context.Context, payload *onfleet.TasksCreatePayload) ([]onfleet.Task, error)
Create provides a mock function with given fields: ctx, payload
func (*TasksServiceInterface) Delete ¶
Delete provides a mock function with given fields: ctx, taskId
func (*TasksServiceInterface) List ¶
func (_m *TasksServiceInterface) List(ctx context.Context, opts *onfleet.TasksListOptions) ([]onfleet.Task, error)
List provides a mock function with given fields: ctx, opts
type TeamServiceInterface ¶
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.
type WorkersServiceInterface ¶
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 ¶
func (_m *WorkersServiceInterface) List(ctx context.Context, opts *onfleet.WorkersListOptions) ([]onfleet.Worker, error)
List provides a mock function with given fields: ctx, opts
func (*WorkersServiceInterface) Location ¶
func (_m *WorkersServiceInterface) Location(ctx context.Context, opts *onfleet.WorkersLocationOptions) ([]onfleet.Worker, error)
Location provides a mock function with given fields: ctx, opts