Documentation ¶
Index ¶
- type ApiClient
- func (_m *ApiClient) CancelTask(ctx context.Context, id string, killRunning bool) error
- func (_m *ApiClient) DeleteBots(ctx context.Context, bots []string) error
- func (_m *ApiClient) GetStates(ctx context.Context, ids []string) ([]string, error)
- func (_m *ApiClient) GetStdoutOfTask(ctx context.Context, id string) (*v1.SwarmingRpcsTaskOutput, error)
- func (_m *ApiClient) GetTask(ctx context.Context, id string, includePerformanceStats bool) (*v1.SwarmingRpcsTaskResult, error)
- func (_m *ApiClient) GetTaskMetadata(ctx context.Context, id string) (*v1.SwarmingRpcsTaskRequestMetadata, error)
- func (_m *ApiClient) GracefullyShutdownBot(ctx context.Context, id string) (*v1.SwarmingRpcsTerminateResponse, error)
- func (_m *ApiClient) ListBotTasks(ctx context.Context, botID string, limit int) ([]*v1.SwarmingRpcsTaskResult, error)
- func (_m *ApiClient) ListBots(ctx context.Context, dimensions map[string]string) ([]*v1.SwarmingRpcsBotInfo, error)
- func (_m *ApiClient) ListBotsForDimensions(ctx context.Context, dimensions map[string]string) ([]*v1.SwarmingRpcsBotInfo, error)
- func (_m *ApiClient) ListBotsForPool(ctx context.Context, pool string) ([]*v1.SwarmingRpcsBotInfo, error)
- func (_m *ApiClient) ListDownBots(ctx context.Context, pool string) ([]*v1.SwarmingRpcsBotInfo, error)
- func (_m *ApiClient) ListFreeBots(ctx context.Context, pool string) ([]*v1.SwarmingRpcsBotInfo, error)
- func (_m *ApiClient) ListSkiaTasks(ctx context.Context, start time.Time, end time.Time) ([]*v1.SwarmingRpcsTaskRequestMetadata, error)
- func (_m *ApiClient) ListTaskResults(ctx context.Context, start time.Time, end time.Time, tags []string, ...) ([]*v1.SwarmingRpcsTaskResult, error)
- func (_m *ApiClient) ListTasks(ctx context.Context, start time.Time, end time.Time, tags []string, ...) ([]*v1.SwarmingRpcsTaskRequestMetadata, error)
- func (_m *ApiClient) RetryTask(ctx context.Context, t *v1.SwarmingRpcsTaskRequestMetadata) (*v1.SwarmingRpcsTaskRequestMetadata, error)
- func (_m *ApiClient) SwarmingService() *v1.Service
- func (_m *ApiClient) TriggerTask(ctx context.Context, t *v1.SwarmingRpcsNewTaskRequest) (*v1.SwarmingRpcsTaskRequestMetadata, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApiClient ¶
ApiClient is an autogenerated mock type for the ApiClient type
func NewApiClient ¶
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 ¶
CancelTask provides a mock function with given fields: ctx, id, killRunning
func (*ApiClient) DeleteBots ¶
DeleteBots provides a mock function with given fields: ctx, bots
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 ¶
func (_m *ApiClient) RetryTask(ctx context.Context, t *v1.SwarmingRpcsTaskRequestMetadata) (*v1.SwarmingRpcsTaskRequestMetadata, error)
RetryTask provides a mock function with given fields: ctx, t
func (*ApiClient) SwarmingService ¶
SwarmingService provides a mock function with given fields:
func (*ApiClient) TriggerTask ¶
func (_m *ApiClient) TriggerTask(ctx context.Context, t *v1.SwarmingRpcsNewTaskRequest) (*v1.SwarmingRpcsTaskRequestMetadata, error)
TriggerTask provides a mock function with given fields: ctx, t