mocks

package
v0.0.0-...-f6cb899 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiClient

type ApiClient struct {
	mock.Mock
}

ApiClient is an autogenerated mock type for the ApiClient type

func NewApiClient

func NewApiClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *ApiClient

NewApiClient creates a new instance of ApiClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*ApiClient) CancelTask

func (_m *ApiClient) CancelTask(ctx context.Context, id string, killRunning bool) error

CancelTask provides a mock function with given fields: ctx, id, killRunning

func (*ApiClient) DeleteBots

func (_m *ApiClient) DeleteBots(ctx context.Context, bots []string) error

DeleteBots provides a mock function with given fields: ctx, bots

func (*ApiClient) GetStates

func (_m *ApiClient) GetStates(ctx context.Context, ids []string) ([]string, error)

GetStates provides a mock function with given fields: ctx, ids

func (*ApiClient) GetStdoutOfTask

func (_m *ApiClient) GetStdoutOfTask(ctx context.Context, id string) (*v1.SwarmingRpcsTaskOutput, error)

GetStdoutOfTask provides a mock function with given fields: ctx, id

func (*ApiClient) GetTask

func (_m *ApiClient) GetTask(ctx context.Context, id string, includePerformanceStats bool) (*v1.SwarmingRpcsTaskResult, error)

GetTask provides a mock function with given fields: ctx, id, includePerformanceStats

func (*ApiClient) GetTaskMetadata

func (_m *ApiClient) GetTaskMetadata(ctx context.Context, id string) (*v1.SwarmingRpcsTaskRequestMetadata, error)

GetTaskMetadata provides a mock function with given fields: ctx, id

func (*ApiClient) GracefullyShutdownBot

func (_m *ApiClient) GracefullyShutdownBot(ctx context.Context, id string) (*v1.SwarmingRpcsTerminateResponse, error)

GracefullyShutdownBot provides a mock function with given fields: ctx, id

func (*ApiClient) ListBotTasks

func (_m *ApiClient) ListBotTasks(ctx context.Context, botID string, limit int) ([]*v1.SwarmingRpcsTaskResult, error)

ListBotTasks provides a mock function with given fields: ctx, botID, limit

func (*ApiClient) ListBots

func (_m *ApiClient) ListBots(ctx context.Context, dimensions map[string]string) ([]*v1.SwarmingRpcsBotInfo, error)

ListBots provides a mock function with given fields: ctx, dimensions

func (*ApiClient) ListBotsForDimensions

func (_m *ApiClient) ListBotsForDimensions(ctx context.Context, dimensions map[string]string) ([]*v1.SwarmingRpcsBotInfo, error)

ListBotsForDimensions provides a mock function with given fields: ctx, dimensions

func (*ApiClient) ListBotsForPool

func (_m *ApiClient) ListBotsForPool(ctx context.Context, pool string) ([]*v1.SwarmingRpcsBotInfo, error)

ListBotsForPool provides a mock function with given fields: ctx, pool

func (*ApiClient) ListDownBots

func (_m *ApiClient) ListDownBots(ctx context.Context, pool string) ([]*v1.SwarmingRpcsBotInfo, error)

ListDownBots provides a mock function with given fields: ctx, pool

func (*ApiClient) ListFreeBots

func (_m *ApiClient) ListFreeBots(ctx context.Context, pool string) ([]*v1.SwarmingRpcsBotInfo, error)

ListFreeBots provides a mock function with given fields: ctx, pool

func (*ApiClient) ListSkiaTasks

func (_m *ApiClient) ListSkiaTasks(ctx context.Context, start time.Time, end time.Time) ([]*v1.SwarmingRpcsTaskRequestMetadata, error)

ListSkiaTasks provides a mock function with given fields: ctx, start, end

func (*ApiClient) ListTaskResults

func (_m *ApiClient) ListTaskResults(ctx context.Context, start time.Time, end time.Time, tags []string, state string, includePerformanceStats bool) ([]*v1.SwarmingRpcsTaskResult, error)

ListTaskResults provides a mock function with given fields: ctx, start, end, tags, state, includePerformanceStats

func (*ApiClient) ListTasks

func (_m *ApiClient) ListTasks(ctx context.Context, start time.Time, end time.Time, tags []string, state string) ([]*v1.SwarmingRpcsTaskRequestMetadata, error)

ListTasks provides a mock function with given fields: ctx, start, end, tags, state

func (*ApiClient) RetryTask

RetryTask provides a mock function with given fields: ctx, t

func (*ApiClient) SwarmingService

func (_m *ApiClient) SwarmingService() *v1.Service

SwarmingService provides a mock function with given fields:

func (*ApiClient) TriggerTask

TriggerTask provides a mock function with given fields: ctx, t

Jump to

Keyboard shortcuts

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