mirror of
https://github.com/actions/actions-runner-controller.git
synced 2026-03-10 07:38:33 +08:00
Switch client to scaleset library for the listener and update mocks (#4383)
This commit is contained in:
@@ -34,7 +34,6 @@ const (
|
||||
// Header used to propagate capacity information to the back-end
|
||||
const HeaderScaleSetMaxCapacity = "X-ScaleSetMaxCapacity"
|
||||
|
||||
//go:generate mockery
|
||||
type ActionsService interface {
|
||||
GetRunnerScaleSet(ctx context.Context, runnerGroupId int, runnerScaleSetName string) (*RunnerScaleSet, error)
|
||||
GetRunnerScaleSetById(ctx context.Context, runnerScaleSetId int) (*RunnerScaleSet, error)
|
||||
|
||||
@@ -5,7 +5,6 @@ import (
|
||||
"io"
|
||||
)
|
||||
|
||||
//go:generate mockery
|
||||
type SessionService interface {
|
||||
GetMessage(ctx context.Context, lastMessageId int64, maxCapacity int) (*RunnerScaleSetMessage, error)
|
||||
DeleteMessage(ctx context.Context, messageId int64) error
|
||||
|
||||
Reference in New Issue
Block a user