queueconfig

package
v0.3.0-20261202163440-... Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2026 License: Apache-2.0 Imports: 2 Imported by: 0 modules, 0 packages

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 BuildAnalysis

type BuildAnalysis struct {
	// PollDelayMs is the positive delay before the next build-analysis poll, in milliseconds.
	PollDelayMs int64 `json:"poll_delay_ms" yaml:"poll_delay_ms"`
}

BuildAnalysis contains configuration for the build-analysis stage.

func (BuildAnalysis) Validate

func (c BuildAnalysis) Validate() error

Validate checks the build-analysis stage's configuration constraints.

type BuildAnalysisOverrides

type BuildAnalysisOverrides struct {
	// PollDelay overrides the delay before the next build-analysis poll.
	PollDelay *time.Duration `yaml:"pollDelay"`
}

BuildAnalysisOverrides contains optional configuration for the build-analysis stage. Nil fields inherit their previous value; explicit values are retained for validation.

func (BuildAnalysisOverrides) Apply

Apply copies base and replaces explicitly supplied settings. Durations are truncated to milliseconds. Validate the final resolved configuration.

type BuildSignal

type BuildSignal struct {
	// AcceptedPollDelayMs is the positive polling interval for accepted builds, in milliseconds.
	AcceptedPollDelayMs int64 `json:"accepted_poll_delay_ms" yaml:"accepted_poll_delay_ms"`

	// RunningPollDelayMs is the positive polling interval for running builds, in milliseconds.
	RunningPollDelayMs int64 `json:"running_poll_delay_ms" yaml:"running_poll_delay_ms"`
}

BuildSignal contains configuration for the build-signal stage.

func (BuildSignal) Validate

func (c BuildSignal) Validate() error

Validate checks the build-signal stage's configuration constraints.

type BuildSignalOverrides

type BuildSignalOverrides struct {
	// AcceptedPollDelay overrides the polling interval for accepted builds.
	AcceptedPollDelay *time.Duration `yaml:"acceptedPollDelay"`

	// RunningPollDelay overrides the polling interval for running builds.
	RunningPollDelay *time.Duration `yaml:"runningPollDelay"`
}

BuildSignalOverrides contains optional configuration for the build-signal stage. Nil fields inherit their previous value; explicit values are retained for validation.

func (BuildSignalOverrides) Apply

Apply copies base and replaces explicitly supplied settings. Durations are truncated to milliseconds. Validate the final resolved configuration.

type IssueTrack

type IssueTrack struct {
	// RecheckDelayMs is the positive delay between issue-tracking checks, in milliseconds.
	RecheckDelayMs int64 `json:"recheck_delay_ms" yaml:"recheck_delay_ms"`

	// RecoveryWaitDelayMs is the positive wait during recovery, in milliseconds.
	RecoveryWaitDelayMs int64 `json:"recovery_wait_delay_ms" yaml:"recovery_wait_delay_ms"`
}

IssueTrack contains configuration for the issue-tracking stage.

func (IssueTrack) Validate

func (c IssueTrack) Validate() error

Validate checks the issue-tracking stage's configuration constraints.

type IssueTrackOverrides

type IssueTrackOverrides struct {
	// RecheckDelay overrides the delay between issue-tracking checks.
	RecheckDelay *time.Duration `yaml:"recheckDelay"`

	// RecoveryWaitDelay overrides the wait during recovery.
	RecoveryWaitDelay *time.Duration `yaml:"recoveryWaitDelay"`
}

IssueTrackOverrides contains optional configuration for the issue-tracking stage. Nil fields inherit their previous value; explicit values are retained for validation.

func (IssueTrackOverrides) Apply

Apply copies base and replaces explicitly supplied settings. Durations are truncated to milliseconds. Validate the final resolved configuration.

type Process

type Process struct {
	// MaxConcurrent is the positive concurrent validation limit.
	MaxConcurrent int32 `json:"max_concurrent" yaml:"max_concurrent"`

	// GateWaitDelayMs is the positive wait for admission, in milliseconds.
	GateWaitDelayMs int64 `json:"gate_wait_delay_ms" yaml:"gate_wait_delay_ms"`
}

Process contains configuration for the process stage.

func (Process) Validate

func (c Process) Validate() error

Validate checks the process stage's configuration constraints.

type ProcessOverrides

type ProcessOverrides struct {
	// MaxConcurrent overrides the concurrent validation limit.
	MaxConcurrent *int32 `yaml:"maxConcurrent"`

	// GateWaitDelay overrides the wait for admission.
	GateWaitDelay *time.Duration `yaml:"gateWaitDelay"`
}

ProcessOverrides contains optional configuration for the process stage. Nil fields inherit their previous value; explicit values are retained for validation.

func (ProcessOverrides) Apply

func (o ProcessOverrides) Apply(base Process) Process

Apply copies base and replaces explicitly supplied settings. Durations are truncated to milliseconds. Validate the final resolved configuration.

type StageOverrides

type StageOverrides struct {
	// Process contains optional configuration for the process stage.
	Process ProcessOverrides `yaml:"process"`

	// BuildSignal contains optional configuration for the build-signal stage.
	BuildSignal BuildSignalOverrides `yaml:"buildSignal"`

	// BuildAnalysis contains optional configuration for the build-analysis stage.
	BuildAnalysis BuildAnalysisOverrides `yaml:"buildAnalysis"`

	// IssueTrack contains optional configuration for the issue-tracking stage.
	IssueTrack IssueTrackOverrides `yaml:"issueTrack"`
}

StageOverrides contains optional configuration grouped by stage. Validate the resolved result after applying shared and per-queue overrides.

func (StageOverrides) Apply

func (o StageOverrides) Apply(base Stages) Stages

Apply copies base and applies each stage's overrides.

type Stages

type Stages struct {
	// Process contains configuration for the process stage.
	Process Process `json:"process" yaml:"process"`

	// BuildSignal contains configuration for the build-signal stage.
	BuildSignal BuildSignal `json:"build_signal" yaml:"build_signal"`

	// BuildAnalysis contains configuration for the build-analysis stage.
	BuildAnalysis BuildAnalysis `json:"build_analysis" yaml:"build_analysis"`

	// IssueTrack contains configuration for the issue-tracking stage.
	IssueTrack IssueTrack `json:"issue_track" yaml:"issue_track"`
}

Stages contains configuration for the validation pipeline stages.

func DefaultStages

func DefaultStages() Stages

DefaultStages returns independent values for standard stage behavior. Providers apply explicit shared and per-queue settings over this baseline.

func (Stages) Validate

func (c Stages) Validate() error

Validate checks each stage after all configuration layers have been applied.

Jump to

Keyboard shortcuts

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