runners

package
v1.1.13 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2026 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RunnerManager

type RunnerManager struct {
	// contains filtered or unexported fields
}

func NewRunnerManager

func NewRunnerManager(ctx context.Context, client actions.ActionsService, runnerScaleSetId int) (*RunnerManager, error)

func (*RunnerManager) AcquireJobs

func (m *RunnerManager) AcquireJobs(ctx context.Context, requestIds []int64) error

func (*RunnerManager) Close

func (m *RunnerManager) Close() error

func (*RunnerManager) ProcessMessages

func (m *RunnerManager) ProcessMessages(ctx context.Context, handler func(msg *types.RunnerScaleSetMessage) error) error

type RunnerManagerInterface

type RunnerManagerInterface interface {
	ProcessMessages(ctx context.Context, handler func(msg *types.RunnerScaleSetMessage) error) error
	AcquireJobs(ctx context.Context, requestIds []int64) error
}

type RunnerMessageProcessor

type RunnerMessageProcessor struct {
	// contains filtered or unexported fields
}

func NewRunnerMessageProcessor

func NewRunnerMessageProcessor(ctx context.Context, runnerManager RunnerManagerInterface, runnerProvisioner RunnerProvisionerInterface, vmTracker *VMTracker, runnerScaleSet *types.RunnerScaleSet) *RunnerMessageProcessor

func (*RunnerMessageProcessor) StartProcessingMessages

func (p *RunnerMessageProcessor) StartProcessingMessages() error

type RunnerProvisionerInterface

type RunnerProvisionerInterface interface {
	ProvisionRunner(ctx context.Context) (*orka.VMCommandExecutor, []string, error)
	CleanupResources(ctx context.Context, runnerName string)
}

type VMTracker added in v1.1.11

type VMTracker struct {
	// contains filtered or unexported fields
}

func NewVMTracker added in v1.1.11

func NewVMTracker(orkaClient orka.OrkaService, actionsClient actions.ActionsService, logger *zap.SugaredLogger) *VMTracker

func (*VMTracker) Start added in v1.1.11

func (tracker *VMTracker) Start(ctx context.Context, interval time.Duration)

func (*VMTracker) Track added in v1.1.11

func (tracker *VMTracker) Track(vmName string)

func (*VMTracker) Untrack added in v1.1.11

func (tracker *VMTracker) Untrack(vmName string)

Jump to

Keyboard shortcuts

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