Help us shape the future of Go! Take the 2026 Go Developer Survey

settings

package
v0.19.1254 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2026 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Params

type Params struct {
	fx.In

	Cfg       *runnerconfig.Config
	APIClient nuonrunner.Client
	LC        fx.Lifecycle
}

type Settings

type Settings struct {
	// configuration for job polling and management
	HeartBeatTimeout time.Duration `validate:"required"`

	// control jobs
	JobLoopMinPollPeriod time.Duration `validate:"required"`
	SandboxMode          bool
	// LongPollJobs mirrors the org's `runner-job-long-poll` feature flag,
	// surfaced through the runner-settings response. When true the
	// jobloop calls the `/jobs/tail` long-poll endpoint instead of the
	// legacy 5s idle-poll loop.
	LongPollJobs                      bool
	TelemetryRelayEndpoint            string
	VendorTelemetryEnabled            bool
	VendorTelemetryResourceAttributes map[string]string

	// visibility settings
	EnableLogging bool
	LoggingLevel  slog.Level `validate:"required"`
	OtelSchemaURL string
	EnableMetrics bool
	EnableSentry  bool
	Groups        []string `validate:"required"`

	// Metadata is added to sentry, metrics and loggers
	Metadata map[string]string

	// otel configuration - not really being used yet, but will be coming from the API to enable fetching things
	// like cloudwatch metrics and more.
	OTELConfiguration string `validate:"required"`

	// container
	ContainerImageTag string
	ContainerImageURL string

	// how the runner VM checks the runner image signature: disabled, warn or enforce
	ContainerImageVerificationMode        string
	ContainerImageSignatureIssuer         string
	ContainerImageSignatureIdentityRegexp string

	// platform
	Platform string

	Cfg *runnerconfig.Config
	// contains filtered or unexported fields
}

func New

func New(params Params) (*Settings, error)

func (*Settings) Refresh

func (s *Settings) Refresh(ctx context.Context) error

Jump to

Keyboard shortcuts

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