config

package
v0.0.0-...-e3b314e Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ActionsAllowlist  map[string]sets.Set[string] // map of allowed bundle IDs to a set of allowed action names
	Allowlist         []string
	AllowIMDSEndpoint bool
	DDHost            string
	DDApiHost         string
	Modes             []modes.Mode
	OrgId             int64
	PrivateKey        *ecdsa.PrivateKey
	RunnerId          string
	Urn               string
	Tags              []observability.Tag

	// RemoteConfig related fields
	DatadogSite string

	// the following are constants with default values. They are part of the config struct to allow for the ability to be overwritten in the YAML config file if needed
	MaxBackoff                 time.Duration
	MinBackoff                 time.Duration
	MaxAttempts                int32
	WaitBeforeRetry            time.Duration
	LoopInterval               time.Duration
	OpmsRequestTimeout         int32
	RunnerPoolSize             int32
	HealthCheckInterval        int32
	HttpServerReadTimeout      int32
	HttpServerWriteTimeout     int32
	HTTPTimeout                time.Duration
	TaskTimeoutSeconds         *int32
	RunnerAccessTokenHeader    string
	RunnerAccessTokenIdHeader  string
	Port                       int32
	JWTRefreshInterval         time.Duration
	HealthCheckEndpoint        string
	HeartbeatInterval          time.Duration
	EnableProfiling            bool
	DisableCredentialTemplates bool

	Version string

	MetricsClient statsd.ClientInterface
}

func FromDDConfig

func FromDDConfig(config config.Component) (*Config, error)

func (*Config) IdentityIsIncomplete

func (c *Config) IdentityIsIncomplete() bool

func (*Config) IsActionAllowed

func (c *Config) IsActionAllowed(bundleId, actionName string) bool

func (*Config) IsURLInAllowlist

func (c *Config) IsURLInAllowlist(urlStr string) bool

Jump to

Keyboard shortcuts

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