actionsrunner

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2026 License: MIT Imports: 23 Imported by: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BasicLogger

type BasicLogger interface {
	Printf(format string, a ...interface{})
}

type ConsoleLogger

type ConsoleLogger struct{}

func (*ConsoleLogger) Printf

func (*ConsoleLogger) Printf(format string, a ...interface{})

type DefaultWorkerContext

type DefaultWorkerContext struct {
	RunnerMessage       *protocol.AgentJobRequestMessage
	JobLogger           *logger.JobLogger
	JobExecutionContext context.Context
	VssConnection       *protocol.VssConnection
	RunnerLogger        BasicLogger
}

func (*DefaultWorkerContext) FailInitJob

func (wc *DefaultWorkerContext) FailInitJob(title, message string)

func (*DefaultWorkerContext) FinishJob

func (wc *DefaultWorkerContext) FinishJob(result string, outputs *map[string]protocol.VariableValue)

FinishJob completes the job execution with the given result and outputs

func (*DefaultWorkerContext) Init

func (wc *DefaultWorkerContext) Init()

func (*DefaultWorkerContext) JobExecCtx

func (wc *DefaultWorkerContext) JobExecCtx() context.Context

func (*DefaultWorkerContext) Logger

func (wc *DefaultWorkerContext) Logger() *logger.JobLogger

func (*DefaultWorkerContext) Message

type JobRun

type JobRun struct {
	RequestID       int64
	JobID           string
	Plan            *protocol.TaskOrchestrationPlanReference
	Name            string
	RegistrationURL string
	RunServiceURL   string
}

type PrefixConsoleLogger

type PrefixConsoleLogger struct {
	Parent BasicLogger
	Prefix string
}

func (*PrefixConsoleLogger) Printf

func (p *PrefixConsoleLogger) Printf(format string, a ...interface{})

type RunRunner

type RunRunner struct {
	Once     bool
	Trace    bool
	Version  string
	Settings *runnerconfiguration.RunnerSettings
}

func (*RunRunner) Run

func (run *RunRunner) Run(runnerenv RunnerEnvironment, listenerctx, corectx context.Context) error

type RunnerEnvironment

type RunnerEnvironment interface {
	BasicLogger
	ReadJSON(fname string, obj interface{}) error
	WriteJSON(fname string, obj interface{}) error
	Remove(fname string) error
	ExecWorker(run *RunRunner, wc WorkerContext, jobreq *protocol.AgentJobRequestMessage, src []byte) error
}

type RunnerJobRequestRef

type RunnerJobRequestRef struct {
	ID              string `json:"id"`
	RunnerRequestID string `json:"runner_request_id"`
	RunServiceURL   string `json:"run_service_url"`
	BillingOwnerID  string `json:"billing_owner_id,omitempty"`
}

type WorkerContext

type WorkerContext interface {
	FinishJob(result string, outputs *map[string]protocol.VariableValue)
	FailInitJob(title string, message string)
	Message() *protocol.AgentJobRequestMessage
	Logger() *logger.JobLogger
	JobExecCtx() context.Context
}

type WorkerRunnerEnvironment

type WorkerRunnerEnvironment struct {
	WorkerArgs []string
}

func (*WorkerRunnerEnvironment) ExecWorker

func (arunner *WorkerRunnerEnvironment) ExecWorker(
	_ *RunRunner, wc WorkerContext, _ *protocol.AgentJobRequestMessage, src []byte,
) error

func (*WorkerRunnerEnvironment) Printf

func (arunner *WorkerRunnerEnvironment) Printf(format string, a ...interface{})

func (*WorkerRunnerEnvironment) ReadJSON added in v0.11.0

func (arunner *WorkerRunnerEnvironment) ReadJSON(path string, value interface{}) error

func (*WorkerRunnerEnvironment) Remove

func (arunner *WorkerRunnerEnvironment) Remove(fname string) error

func (*WorkerRunnerEnvironment) WriteJSON added in v0.11.0

func (arunner *WorkerRunnerEnvironment) WriteJSON(path string, value interface{}) error

Jump to

Keyboard shortcuts

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