settings

package
v0.19.786 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2026 License: AGPL-3.0 Imports: 10 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       *internal.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

	// 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

	// platform
	Platform string

	Cfg *internal.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