Documentation
¶
Index ¶
- Constants
- type AppVersionConfig
- type BuildkitConfig
- func (c *BuildkitConfig) GetGcKeepDuration() string
- func (c *BuildkitConfig) GetGcKeepStorage() string
- func (c *BuildkitConfig) GetSocketDir() string
- func (c *BuildkitConfig) GetSocketPath() string
- func (c *BuildkitConfig) GetStartEmbedded() bool
- func (c *BuildkitConfig) SetGcKeepDuration(v string)
- func (c *BuildkitConfig) SetGcKeepStorage(v string)
- func (c *BuildkitConfig) SetSocketDir(v string)
- func (c *BuildkitConfig) SetSocketPath(v string)
- func (c *BuildkitConfig) SetStartEmbedded(v bool)
- func (c *BuildkitConfig) Validate() error
- type CLIFlags
- type Config
- func (c *Config) GetMode() string
- func (c *Config) ResolveDeprecatedConfig() error
- func (c *Config) SetMode(v string)
- func (c *Config) Validate() error
- func (c *Config) ValidateIngressCoherence() error
- func (c *Config) ValidateRetiredTopology() error
- func (c *Config) ValidateTelemetryCoherence() error
- func (c *Config) ValidateTelemetryEnvironment() error
- func (c *Config) WarnDeprecatedConfig(log *slog.Logger)
- type ContainerdConfig
- func (c *ContainerdConfig) GetBinaryPath() string
- func (c *ContainerdConfig) GetSocketPath() string
- func (c *ContainerdConfig) GetStartEmbedded() bool
- func (c *ContainerdConfig) SetBinaryPath(v string)
- func (c *ContainerdConfig) SetSocketPath(v string)
- func (c *ContainerdConfig) SetStartEmbedded(v bool)
- func (c *ContainerdConfig) Validate() error
- type DeploymentConfig
- type EtcdConfig
- func (c *EtcdConfig) GetClientPort() int
- func (c *EtcdConfig) GetHTTPClientPort() int
- func (c *EtcdConfig) GetPeerPort() int
- func (c *EtcdConfig) GetPrefix() string
- func (c *EtcdConfig) GetQuotaBackendBytes() int
- func (c *EtcdConfig) GetStartEmbedded() bool
- func (c *EtcdConfig) SetClientPort(v int)
- func (c *EtcdConfig) SetHTTPClientPort(v int)
- func (c *EtcdConfig) SetPeerPort(v int)
- func (c *EtcdConfig) SetPrefix(v string)
- func (c *EtcdConfig) SetQuotaBackendBytes(v int)
- func (c *EtcdConfig) SetStartEmbedded(v bool)
- func (c *EtcdConfig) Validate() error
- type IngressConfig
- func (c *IngressConfig) GetAddress() string
- func (c *IngressConfig) GetErrorPage() string
- func (c *IngressConfig) GetMode() string
- func (c *IngressConfig) GetTrustedProxyHops() int
- func (c *IngressConfig) SetAddress(v string)
- func (c *IngressConfig) SetErrorPage(v string)
- func (c *IngressConfig) SetMode(v string)
- func (c *IngressConfig) SetTrustedProxyHops(v int)
- func (c *IngressConfig) Validate() error
- type MetricsConfig
- type RemoteWriteConfig
- type SagaConfig
- type SecretsConfig
- type ServerConfig
- func (c *ServerConfig) GetAcceleratorCheckpointInterval() int
- func (c *ServerConfig) GetAcceleratorCheckpointTimeout() int
- func (c *ServerConfig) GetAcceleratorFirstCheckpointTimeout() int
- func (c *ServerConfig) GetAddress() string
- func (c *ServerConfig) GetConfigClusterName() string
- func (c *ServerConfig) GetDataPath() string
- func (c *ServerConfig) GetDiskMode() string
- func (c *ServerConfig) GetHTTPRequestTimeout() int
- func (c *ServerConfig) GetReleasePath() string
- func (c *ServerConfig) GetRunnerAddress() string
- func (c *ServerConfig) GetRunnerID() string
- func (c *ServerConfig) GetSkipClientConfig() bool
- func (c *ServerConfig) GetStopSandboxesOnShutdown() bool
- func (c *ServerConfig) HTTPRequestTimeoutDuration() time.Duration
- func (c *ServerConfig) SetAcceleratorCheckpointInterval(v int)
- func (c *ServerConfig) SetAcceleratorCheckpointTimeout(v int)
- func (c *ServerConfig) SetAcceleratorFirstCheckpointTimeout(v int)
- func (c *ServerConfig) SetAddress(v string)
- func (c *ServerConfig) SetConfigClusterName(v string)
- func (c *ServerConfig) SetDataPath(v string)
- func (c *ServerConfig) SetDiskMode(v string)
- func (c *ServerConfig) SetHTTPRequestTimeout(v int)
- func (c *ServerConfig) SetReleasePath(v string)
- func (c *ServerConfig) SetRunnerAddress(v string)
- func (c *ServerConfig) SetRunnerID(v string)
- func (c *ServerConfig) SetSkipClientConfig(v bool)
- func (c *ServerConfig) SetStopSandboxesOnShutdown(v bool)
- func (c *ServerConfig) Validate() error
- type TLSConfig
- func (c *TLSConfig) GetAcmeDNSProvider() string
- func (c *TLSConfig) GetAcmeEmail() string
- func (c *TLSConfig) GetSelfSigned() bool
- func (c *TLSConfig) GetStandardTLS() bool
- func (c *TLSConfig) SetAcmeDNSProvider(v string)
- func (c *TLSConfig) SetAcmeEmail(v string)
- func (c *TLSConfig) SetSelfSigned(v bool)
- func (c *TLSConfig) SetStandardTLS(v bool)
- func (c *TLSConfig) Validate() error
- type TelemetryConfig
- type TelemetryMetricsConfig
- func (c *TelemetryMetricsConfig) GetRemoteWriteURL() string
- func (c *TelemetryMetricsConfig) GetWorkloadIdentityAudience() string
- func (c *TelemetryMetricsConfig) SetRemoteWriteURL(v string)
- func (c *TelemetryMetricsConfig) SetWorkloadIdentityAudience(v string)
- func (c *TelemetryMetricsConfig) Validate() error
- type TelemetryTracesConfig
- func (c *TelemetryTracesConfig) GetEndpoint() string
- func (c *TelemetryTracesConfig) GetWorkloadIdentityAudience() string
- func (c *TelemetryTracesConfig) ResolvedEndpoint() string
- func (c *TelemetryTracesConfig) SetEndpoint(v string)
- func (c *TelemetryTracesConfig) SetWorkloadIdentityAudience(v string)
- func (c *TelemetryTracesConfig) Validate() error
- type VictoriaLogsConfig
- func (c *VictoriaLogsConfig) GetAddress() string
- func (c *VictoriaLogsConfig) GetHTTPPort() int
- func (c *VictoriaLogsConfig) GetRetentionPeriod() string
- func (c *VictoriaLogsConfig) GetStartEmbedded() bool
- func (c *VictoriaLogsConfig) SetAddress(v string)
- func (c *VictoriaLogsConfig) SetHTTPPort(v int)
- func (c *VictoriaLogsConfig) SetRetentionPeriod(v string)
- func (c *VictoriaLogsConfig) SetStartEmbedded(v bool)
- func (c *VictoriaLogsConfig) Validate() error
- type VictoriaMetricsConfig
- func (c *VictoriaMetricsConfig) GetAddress() string
- func (c *VictoriaMetricsConfig) GetHTTPPort() int
- func (c *VictoriaMetricsConfig) GetRetentionPeriod() string
- func (c *VictoriaMetricsConfig) GetStartEmbedded() bool
- func (c *VictoriaMetricsConfig) SetAddress(v string)
- func (c *VictoriaMetricsConfig) SetHTTPPort(v int)
- func (c *VictoriaMetricsConfig) SetRetentionPeriod(v string)
- func (c *VictoriaMetricsConfig) SetStartEmbedded(v bool)
- func (c *VictoriaMetricsConfig) Validate() error
Constants ¶
const ( IngressModeAutoprovision = "tls-autoprovision" IngressModeBehindProxyHTTP = "behind-proxy-http" IngressModeBehindProxyHTTPS = "behind-proxy-https" )
Ingress mode values. Keep these in sync with the enum on IngressConfig.mode in schema.yml (the schema is the source of truth for valid values; these constants exist so callers can refer to modes by name in switch statements and validation code instead of bare strings).
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppVersionConfig ¶ added in v0.11.0
type AppVersionConfig struct {
RetentionCount *int `toml:"retention_count" env:"MIREN_APP_VERSION_RETENTION_COUNT"`
RetentionPeriod *string `toml:"retention_period" env:"MIREN_APP_VERSION_RETENTION_PERIOD"`
}
AppVersionConfig App version retention garbage collection
func DefaultAppVersionConfig ¶ added in v0.11.0
func DefaultAppVersionConfig() AppVersionConfig
DefaultAppVersionConfig returns default AppVersionConfig
func (*AppVersionConfig) GetRetentionCount ¶ added in v0.11.0
func (c *AppVersionConfig) GetRetentionCount() int
GetRetentionCount returns the value of RetentionCount or its zero value if nil
func (*AppVersionConfig) GetRetentionPeriod ¶ added in v0.11.0
func (c *AppVersionConfig) GetRetentionPeriod() string
GetRetentionPeriod returns the value of RetentionPeriod or its zero value if nil
func (*AppVersionConfig) SetRetentionCount ¶ added in v0.11.0
func (c *AppVersionConfig) SetRetentionCount(v int)
SetRetentionCount sets the value of RetentionCount
func (*AppVersionConfig) SetRetentionPeriod ¶ added in v0.11.0
func (c *AppVersionConfig) SetRetentionPeriod(v string)
SetRetentionPeriod sets the value of RetentionPeriod
func (*AppVersionConfig) Validate ¶ added in v0.11.0
func (c *AppVersionConfig) Validate() error
Validate validates AppVersionConfig
type BuildkitConfig ¶ added in v0.2.0
type BuildkitConfig struct {
GcKeepDuration *string `toml:"gc_keep_duration" env:"MIREN_BUILDKIT_GC_KEEP_DURATION"`
GcKeepStorage *string `toml:"gc_keep_storage" env:"MIREN_BUILDKIT_GC_KEEP_STORAGE"`
SocketDir *string `toml:"socket_dir" env:"MIREN_BUILDKIT_SOCKET_DIR"`
SocketPath *string `toml:"socket_path" env:"MIREN_BUILDKIT_SOCKET_PATH"`
StartEmbedded *bool `toml:"start_embedded" env:"MIREN_BUILDKIT_START_EMBEDDED"`
}
BuildkitConfig BuildKit daemon configuration
func DefaultBuildkitConfig ¶ added in v0.2.0
func DefaultBuildkitConfig() BuildkitConfig
DefaultBuildkitConfig returns default BuildkitConfig
func (*BuildkitConfig) GetGcKeepDuration ¶ added in v0.2.0
func (c *BuildkitConfig) GetGcKeepDuration() string
GetGcKeepDuration returns the value of GcKeepDuration or its zero value if nil
func (*BuildkitConfig) GetGcKeepStorage ¶ added in v0.2.0
func (c *BuildkitConfig) GetGcKeepStorage() string
GetGcKeepStorage returns the value of GcKeepStorage or its zero value if nil
func (*BuildkitConfig) GetSocketDir ¶ added in v0.2.0
func (c *BuildkitConfig) GetSocketDir() string
GetSocketDir returns the value of SocketDir or its zero value if nil
func (*BuildkitConfig) GetSocketPath ¶ added in v0.2.0
func (c *BuildkitConfig) GetSocketPath() string
GetSocketPath returns the value of SocketPath or its zero value if nil
func (*BuildkitConfig) GetStartEmbedded ¶ added in v0.2.0
func (c *BuildkitConfig) GetStartEmbedded() bool
GetStartEmbedded returns the value of StartEmbedded or its zero value if nil
func (*BuildkitConfig) SetGcKeepDuration ¶ added in v0.2.0
func (c *BuildkitConfig) SetGcKeepDuration(v string)
SetGcKeepDuration sets the value of GcKeepDuration
func (*BuildkitConfig) SetGcKeepStorage ¶ added in v0.2.0
func (c *BuildkitConfig) SetGcKeepStorage(v string)
SetGcKeepStorage sets the value of GcKeepStorage
func (*BuildkitConfig) SetSocketDir ¶ added in v0.2.0
func (c *BuildkitConfig) SetSocketDir(v string)
SetSocketDir sets the value of SocketDir
func (*BuildkitConfig) SetSocketPath ¶ added in v0.2.0
func (c *BuildkitConfig) SetSocketPath(v string)
SetSocketPath sets the value of SocketPath
func (*BuildkitConfig) SetStartEmbedded ¶ added in v0.2.0
func (c *BuildkitConfig) SetStartEmbedded(v bool)
SetStartEmbedded sets the value of StartEmbedded
func (*BuildkitConfig) Validate ¶ added in v0.2.0
func (c *BuildkitConfig) Validate() error
Validate validates BuildkitConfig
type CLIFlags ¶
type CLIFlags struct {
AppVersionConfigRetentionCount *int `` /* 155-byte string literal not displayed */
AppVersionConfigRetentionPeriod *string `` /* 166-byte string literal not displayed */
BuildkitConfigGcKeepDuration *string `` /* 135-byte string literal not displayed */
BuildkitConfigGcKeepStorage *string `` /* 130-byte string literal not displayed */
BuildkitConfigSocketDir *string `` /* 156-byte string literal not displayed */
BuildkitConfigSocketPath *string `` /* 138-byte string literal not displayed */
BuildkitConfigStartEmbedded *bool `long:"start-buildkit" description:"Retired: BuildKit always runs embedded" env:"MIREN_BUILDKIT_START_EMBEDDED" hidden:"yes"`
ConfigFile *string `long:"config" description:"Path to configuration file"`
Labs []string `` /* 131-byte string literal not displayed */
Mode *string `long:"mode" short:"m" description:"Deprecated: standalone is the only server mode" env:"MIREN_MODE" hidden:"yes"`
ContainerdConfigBinaryPath *string `long:"containerd-binary" description:"Path to containerd binary" env:"MIREN_CONTAINERD_BINARY_PATH"`
ContainerdConfigSocketPath *string `long:"containerd-socket" description:"Path to containerd socket" env:"MIREN_CONTAINERD_SOCKET_PATH"`
ContainerdConfigStartEmbedded *bool `` /* 129-byte string literal not displayed */
DeploymentConfigRetentionCount *int `` /* 163-byte string literal not displayed */
DeploymentConfigRetentionPeriod *string `` /* 211-byte string literal not displayed */
EtcdConfigClientPort *int `long:"etcd-client-port" description:"Etcd client port" env:"MIREN_ETCD_CLIENT_PORT"`
EtcdConfigEndpoints []string `` /* 127-byte string literal not displayed */
EtcdConfigHTTPClientPort *int `long:"etcd-http-client-port" description:"Etcd HTTP client port" env:"MIREN_ETCD_HTTP_CLIENT_PORT"`
EtcdConfigPeerPort *int `long:"etcd-peer-port" description:"Etcd peer port" env:"MIREN_ETCD_PEER_PORT"`
EtcdConfigPrefix *string `long:"etcd-prefix" short:"p" description:"Etcd prefix" env:"MIREN_ETCD_PREFIX"`
EtcdConfigQuotaBackendBytes *int `` /* 142-byte string literal not displayed */
EtcdConfigStartEmbedded *bool `long:"start-etcd" description:"Retired: etcd always runs embedded" env:"MIREN_ETCD_START_EMBEDDED" hidden:"yes"`
IngressConfigAddress *string `` /* 279-byte string literal not displayed */
IngressConfigMode *string `` /* 333-byte string literal not displayed */
IngressConfigTrustedProxyHops *int `` /* 239-byte string literal not displayed */
RemoteWriteConfigURL *string `` /* 148-byte string literal not displayed */
RemoteWriteConfigWorkloadIdentityAudience *string `` /* 150-byte string literal not displayed */
SagaConfigRetentionPeriod *string `` /* 185-byte string literal not displayed */
SecretsConfigKeyRotationPeriod *string `` /* 215-byte string literal not displayed */
ServerConfigAcceleratorCheckpointInterval *int `` /* 236-byte string literal not displayed */
ServerConfigAcceleratorCheckpointTimeout *int `` /* 217-byte string literal not displayed */
ServerConfigAcceleratorFirstCheckpointTimeout *int `` /* 258-byte string literal not displayed */
ServerConfigAddress *string `` /* 143-byte string literal not displayed */
ServerConfigConfigClusterName *string `` /* 207-byte string literal not displayed */
ServerConfigDataPath *string `long:"data-path" short:"d" description:"Data path" env:"MIREN_SERVER_DATA_PATH"`
ServerConfigDiskMode *string `` /* 160-byte string literal not displayed */
ServerConfigHTTPRequestTimeout *int `long:"http-request-timeout" description:"HTTP request timeout in seconds" env:"MIREN_SERVER_HTTP_REQUEST_TIMEOUT"`
ServerConfigReleasePath *string `long:"release-path" description:"Path to release directory containing binaries" env:"MIREN_SERVER_RELEASE_PATH"`
ServerConfigRunnerAddress *string `` /* 141-byte string literal not displayed */
ServerConfigRunnerID *string `long:"runner-id" short:"r" description:"Runner ID" env:"MIREN_SERVER_RUNNER_ID"`
ServerConfigSkipClientConfig *bool `` /* 127-byte string literal not displayed */
ServerConfigStopSandboxesOnShutdown *bool `` /* 159-byte string literal not displayed */
TLSConfigAcmeDNSProvider *string `` /* 268-byte string literal not displayed */
TLSConfigAcmeEmail *string `` /* 155-byte string literal not displayed */
TLSConfigAdditionalIPs []string `long:"ips" description:"Additional IPs assigned to the server cert" env:"MIREN_TLS_ADDITIONAL_IPS"`
TLSConfigAdditionalNames []string `long:"dns-names" description:"Additional DNS names assigned to the server cert" env:"MIREN_TLS_ADDITIONAL_NAMES"`
TLSConfigSelfSigned *bool `` /* 132-byte string literal not displayed */
TLSConfigStandardTLS *bool `` /* 260-byte string literal not displayed */
TelemetryMetricsConfigRemoteWriteURL *string `` /* 170-byte string literal not displayed */
TelemetryMetricsConfigWorkloadIdentityAudience *string `` /* 141-byte string literal not displayed */
TelemetryTracesConfigEndpoint *string `` /* 156-byte string literal not displayed */
TelemetryTracesConfigWorkloadIdentityAudience *string `` /* 159-byte string literal not displayed */
VictoriaLogsConfigAddress *string `` /* 144-byte string literal not displayed */
VictoriaLogsConfigHTTPPort *int `long:"victorialogs-http-port" description:"VictoriaLogs HTTP port in embedded mode" env:"MIREN_VICTORIALOGS_HTTP_PORT"`
VictoriaLogsConfigRetentionPeriod *string `` /* 134-byte string literal not displayed */
VictoriaLogsConfigStartEmbedded *bool `` /* 135-byte string literal not displayed */
VictoriaMetricsConfigAddress *string `` /* 153-byte string literal not displayed */
VictoriaMetricsConfigHTTPPort *int `` /* 127-byte string literal not displayed */
VictoriaMetricsConfigRetentionPeriod *string `` /* 134-byte string literal not displayed */
VictoriaMetricsConfigStartEmbedded *bool `` /* 144-byte string literal not displayed */
}
CLIFlags represents command-line flags for server configuration All fields are pointers to distinguish between set and unset values
func NewCLIFlags ¶
func NewCLIFlags() *CLIFlags
NewCLIFlags creates a new CLIFlags struct for parsing
type Config ¶
type Config struct {
AppVersion AppVersionConfig `toml:"app_version"`
Buildkit BuildkitConfig `toml:"buildkit"`
Containerd ContainerdConfig `toml:"containerd"`
Deployment DeploymentConfig `toml:"deployment"`
Etcd EtcdConfig `toml:"etcd"`
Ingress IngressConfig `toml:"ingress"`
Labs []string `toml:"labs" env:"MIREN_LABS"`
Metrics MetricsConfig `toml:"metrics"`
Mode *string `toml:"mode" env:"MIREN_MODE"`
Saga SagaConfig `toml:"saga"`
Secrets SecretsConfig `toml:"secrets"`
Server ServerConfig `toml:"server"`
Telemetry TelemetryConfig `toml:"telemetry"`
TLS TLSConfig `toml:"tls"`
Victorialogs VictoriaLogsConfig `toml:"victorialogs"`
Victoriametrics VictoriaMetricsConfig `toml:"victoriametrics"`
}
Config Complete server configuration from all sources
func Load ¶
Load loads configuration from all sources with proper precedence: CLI flags > Environment variables > Config file > Defaults
Environment variables are applied via mflags' env:"..." struct tags on CLIFlags. When flags is nil, Load materializes a CLIFlags from env vars so callers (typically tests) that only set env still see the same precedence as the CLI path.
func (*Config) ResolveDeprecatedConfig ¶ added in v0.17.0
ResolveDeprecatedConfig carries values set under retired keys onto their replacements, so everything downstream reads one location. Call it right after Load and before any Validate*Coherence.
[metrics.remote_write] shipped in v0.15 and moved to [telemetry.metrics] so metrics and traces destinations sit side by side. A retired key only fills in when its replacement is unset; setting both to different values is an error rather than a silent pick, because the operator is mid-migration and one of the two is stale.
func (*Config) ValidateIngressCoherence ¶ added in v0.8.0
ValidateIngressCoherence runs cross-field validations on top of the generated Config.Validate(). Callers invoke it right after Load() so operators see configuration errors before any listener is wired.
Two concerns live here:
- ingress.address format checks, including a clear-message rejection of the reserved-but-not-yet-supported unix:/path form (see RFD-84).
- Coherence between ingress.mode and the [tls] block: behind-proxy-http does not consult [tls] at all, so populating those fields is almost certainly an operator mistake. Hard-error rather than silently ignore.
func (*Config) ValidateRetiredTopology ¶ added in v0.18.0
ValidateRetiredTopology refuses configuration for the retired distributed server mode and its external data stores (MIR-2064). Those settings used to point the server at state it no longer knows how to reach, so ignoring them would boot a fresh, empty embedded store in place of the operator's data. Failing startup instead keeps that data untouched and lets an upgrade's readiness check roll back to the previous build.
Only the settings that selected an external store are refused: a mode other than standalone, or start_embedded = false. The external addresses (etcd.endpoints, buildkit.socket_path, the Victoria addresses) were ignored unless one of those was set, and earlier releases' `config generate --defaults` wrote the Victoria ones into every config, so refusing them would block servers that never left the embedded stores. Values that already match the only supported topology (mode = "standalone", start_embedded = true) are accepted as no-ops.
func (*Config) ValidateTelemetryCoherence ¶ added in v0.17.0
ValidateTelemetryCoherence rejects half-configured or unsafe telemetry destinations before the coordinator starts shipping anything.
func (*Config) ValidateTelemetryEnvironment ¶ added in v0.17.0
ValidateTelemetryEnvironment checks what depends on the server's own environment rather than its config: a traces audience needs an endpoint, and that may come from OTEL_EXPORTER_OTLP_ENDPOINT. Only the server process should call it. `miren server config validate` runs in an operator's shell, which usually lacks the unit's environment, and would reject a config the server accepts.
func (*Config) WarnDeprecatedConfig ¶ added in v0.8.0
WarnDeprecatedConfig logs warnings for any deprecated configuration fields that have been explicitly set by the operator. Call after Load so the warnings surface at startup. tls.standard_tls is retained as a no-op for backwards compatibility (existing systemd unit files, env vars, and config files from pre-RFD-84 installs) but the operator should migrate to ingress.mode. [metrics.remote_write] still works through ResolveDeprecatedConfig but has moved to [telemetry.metrics].
type ContainerdConfig ¶
type ContainerdConfig struct {
BinaryPath *string `toml:"binary_path" env:"MIREN_CONTAINERD_BINARY_PATH"`
SocketPath *string `toml:"socket_path" env:"MIREN_CONTAINERD_SOCKET_PATH"`
StartEmbedded *bool `toml:"start_embedded" env:"MIREN_CONTAINERD_START_EMBEDDED"`
}
ContainerdConfig Containerd configuration
func DefaultContainerdConfig ¶
func DefaultContainerdConfig() ContainerdConfig
DefaultContainerdConfig returns default ContainerdConfig
func (*ContainerdConfig) GetBinaryPath ¶
func (c *ContainerdConfig) GetBinaryPath() string
GetBinaryPath returns the value of BinaryPath or its zero value if nil
func (*ContainerdConfig) GetSocketPath ¶
func (c *ContainerdConfig) GetSocketPath() string
GetSocketPath returns the value of SocketPath or its zero value if nil
func (*ContainerdConfig) GetStartEmbedded ¶
func (c *ContainerdConfig) GetStartEmbedded() bool
GetStartEmbedded returns the value of StartEmbedded or its zero value if nil
func (*ContainerdConfig) SetBinaryPath ¶
func (c *ContainerdConfig) SetBinaryPath(v string)
SetBinaryPath sets the value of BinaryPath
func (*ContainerdConfig) SetSocketPath ¶
func (c *ContainerdConfig) SetSocketPath(v string)
SetSocketPath sets the value of SocketPath
func (*ContainerdConfig) SetStartEmbedded ¶
func (c *ContainerdConfig) SetStartEmbedded(v bool)
SetStartEmbedded sets the value of StartEmbedded
func (*ContainerdConfig) Validate ¶
func (c *ContainerdConfig) Validate() error
Validate validates ContainerdConfig
type DeploymentConfig ¶ added in v0.16.0
type DeploymentConfig struct {
RetentionCount *int `toml:"retention_count" env:"MIREN_DEPLOYMENT_RETENTION_COUNT"`
RetentionPeriod *string `toml:"retention_period" env:"MIREN_DEPLOYMENT_RETENTION_PERIOD"`
}
DeploymentConfig Deployment record retention garbage collection
func DefaultDeploymentConfig ¶ added in v0.16.0
func DefaultDeploymentConfig() DeploymentConfig
DefaultDeploymentConfig returns default DeploymentConfig
func (*DeploymentConfig) GetRetentionCount ¶ added in v0.16.0
func (c *DeploymentConfig) GetRetentionCount() int
GetRetentionCount returns the value of RetentionCount or its zero value if nil
func (*DeploymentConfig) GetRetentionPeriod ¶ added in v0.16.0
func (c *DeploymentConfig) GetRetentionPeriod() string
GetRetentionPeriod returns the value of RetentionPeriod or its zero value if nil
func (*DeploymentConfig) SetRetentionCount ¶ added in v0.16.0
func (c *DeploymentConfig) SetRetentionCount(v int)
SetRetentionCount sets the value of RetentionCount
func (*DeploymentConfig) SetRetentionPeriod ¶ added in v0.16.0
func (c *DeploymentConfig) SetRetentionPeriod(v string)
SetRetentionPeriod sets the value of RetentionPeriod
func (*DeploymentConfig) Validate ¶ added in v0.16.0
func (c *DeploymentConfig) Validate() error
Validate validates DeploymentConfig
type EtcdConfig ¶
type EtcdConfig struct {
ClientPort *int `toml:"client_port" env:"MIREN_ETCD_CLIENT_PORT"`
Endpoints []string `toml:"endpoints" env:"MIREN_ETCD_ENDPOINTS"`
HTTPClientPort *int `toml:"http_client_port" env:"MIREN_ETCD_HTTP_CLIENT_PORT"`
PeerPort *int `toml:"peer_port" env:"MIREN_ETCD_PEER_PORT"`
Prefix *string `toml:"prefix" env:"MIREN_ETCD_PREFIX"`
QuotaBackendBytes *int `toml:"quota_backend_bytes" env:"MIREN_ETCD_QUOTA_BACKEND_BYTES"`
StartEmbedded *bool `toml:"start_embedded" env:"MIREN_ETCD_START_EMBEDDED"`
}
EtcdConfig Etcd configuration
func DefaultEtcdConfig ¶
func DefaultEtcdConfig() EtcdConfig
DefaultEtcdConfig returns default EtcdConfig
func (*EtcdConfig) GetClientPort ¶
func (c *EtcdConfig) GetClientPort() int
GetClientPort returns the value of ClientPort or its zero value if nil
func (*EtcdConfig) GetHTTPClientPort ¶
func (c *EtcdConfig) GetHTTPClientPort() int
GetHTTPClientPort returns the value of HTTPClientPort or its zero value if nil
func (*EtcdConfig) GetPeerPort ¶
func (c *EtcdConfig) GetPeerPort() int
GetPeerPort returns the value of PeerPort or its zero value if nil
func (*EtcdConfig) GetPrefix ¶
func (c *EtcdConfig) GetPrefix() string
GetPrefix returns the value of Prefix or its zero value if nil
func (*EtcdConfig) GetQuotaBackendBytes ¶ added in v0.12.0
func (c *EtcdConfig) GetQuotaBackendBytes() int
GetQuotaBackendBytes returns the value of QuotaBackendBytes or its zero value if nil
func (*EtcdConfig) GetStartEmbedded ¶
func (c *EtcdConfig) GetStartEmbedded() bool
GetStartEmbedded returns the value of StartEmbedded or its zero value if nil
func (*EtcdConfig) SetClientPort ¶
func (c *EtcdConfig) SetClientPort(v int)
SetClientPort sets the value of ClientPort
func (*EtcdConfig) SetHTTPClientPort ¶
func (c *EtcdConfig) SetHTTPClientPort(v int)
SetHTTPClientPort sets the value of HTTPClientPort
func (*EtcdConfig) SetPeerPort ¶
func (c *EtcdConfig) SetPeerPort(v int)
SetPeerPort sets the value of PeerPort
func (*EtcdConfig) SetPrefix ¶
func (c *EtcdConfig) SetPrefix(v string)
SetPrefix sets the value of Prefix
func (*EtcdConfig) SetQuotaBackendBytes ¶ added in v0.12.0
func (c *EtcdConfig) SetQuotaBackendBytes(v int)
SetQuotaBackendBytes sets the value of QuotaBackendBytes
func (*EtcdConfig) SetStartEmbedded ¶
func (c *EtcdConfig) SetStartEmbedded(v bool)
SetStartEmbedded sets the value of StartEmbedded
type IngressConfig ¶ added in v0.8.0
type IngressConfig struct {
Address *string `toml:"address" env:"MIREN_INGRESS_ADDRESS"`
ErrorPage *string `toml:"error_page" env:"MIREN_INGRESS_ERROR_PAGE"`
Mode *string `toml:"mode" env:"MIREN_INGRESS_MODE"`
TrustedProxyHops *int `toml:"trusted_proxy_hops" env:"MIREN_INGRESS_TRUSTED_PROXY_HOPS"`
}
IngressConfig HTTP/HTTPS ingress configuration. See RFD-84 for the mode-based design.
func DefaultIngressConfig ¶ added in v0.8.0
func DefaultIngressConfig() IngressConfig
DefaultIngressConfig returns default IngressConfig
func (*IngressConfig) GetAddress ¶ added in v0.8.0
func (c *IngressConfig) GetAddress() string
GetAddress returns the value of Address or its zero value if nil
func (*IngressConfig) GetErrorPage ¶ added in v0.17.0
func (c *IngressConfig) GetErrorPage() string
GetErrorPage returns the value of ErrorPage or its zero value if nil
func (*IngressConfig) GetMode ¶ added in v0.8.0
func (c *IngressConfig) GetMode() string
GetMode returns the value of Mode or its zero value if nil
func (*IngressConfig) GetTrustedProxyHops ¶ added in v0.16.0
func (c *IngressConfig) GetTrustedProxyHops() int
GetTrustedProxyHops returns the value of TrustedProxyHops or its zero value if nil
func (*IngressConfig) SetAddress ¶ added in v0.8.0
func (c *IngressConfig) SetAddress(v string)
SetAddress sets the value of Address
func (*IngressConfig) SetErrorPage ¶ added in v0.17.0
func (c *IngressConfig) SetErrorPage(v string)
SetErrorPage sets the value of ErrorPage
func (*IngressConfig) SetMode ¶ added in v0.8.0
func (c *IngressConfig) SetMode(v string)
SetMode sets the value of Mode
func (*IngressConfig) SetTrustedProxyHops ¶ added in v0.16.0
func (c *IngressConfig) SetTrustedProxyHops(v int)
SetTrustedProxyHops sets the value of TrustedProxyHops
func (*IngressConfig) Validate ¶ added in v0.8.0
func (c *IngressConfig) Validate() error
Validate validates IngressConfig
type MetricsConfig ¶ added in v0.15.0
type MetricsConfig struct {
RemoteWrite RemoteWriteConfig `toml:"remote_write"`
}
MetricsConfig Deprecated: superseded by [telemetry.metrics]
func DefaultMetricsConfig ¶ added in v0.15.0
func DefaultMetricsConfig() MetricsConfig
DefaultMetricsConfig returns default MetricsConfig
func (*MetricsConfig) Validate ¶ added in v0.15.0
func (c *MetricsConfig) Validate() error
Validate validates MetricsConfig
type RemoteWriteConfig ¶ added in v0.15.0
type RemoteWriteConfig struct {
URL *string `toml:"url" env:"MIREN_METRICS_REMOTE_WRITE_URL"`
WorkloadIdentityAudience *string `toml:"workload_identity_audience" env:"MIREN_METRICS_REMOTE_WRITE_AUDIENCE"`
}
RemoteWriteConfig Deprecated: superseded by [telemetry.metrics]. Values set here still apply when the telemetry.metrics equivalents are unset.
func DefaultRemoteWriteConfig ¶ added in v0.15.0
func DefaultRemoteWriteConfig() RemoteWriteConfig
DefaultRemoteWriteConfig returns default RemoteWriteConfig
func (*RemoteWriteConfig) GetURL ¶ added in v0.15.0
func (c *RemoteWriteConfig) GetURL() string
GetURL returns the value of URL or its zero value if nil
func (*RemoteWriteConfig) GetWorkloadIdentityAudience ¶ added in v0.15.0
func (c *RemoteWriteConfig) GetWorkloadIdentityAudience() string
GetWorkloadIdentityAudience returns the value of WorkloadIdentityAudience or its zero value if nil
func (*RemoteWriteConfig) SetURL ¶ added in v0.15.0
func (c *RemoteWriteConfig) SetURL(v string)
SetURL sets the value of URL
func (*RemoteWriteConfig) SetWorkloadIdentityAudience ¶ added in v0.15.0
func (c *RemoteWriteConfig) SetWorkloadIdentityAudience(v string)
SetWorkloadIdentityAudience sets the value of WorkloadIdentityAudience
func (*RemoteWriteConfig) Validate ¶ added in v0.15.0
func (c *RemoteWriteConfig) Validate() error
Validate validates RemoteWriteConfig
type SagaConfig ¶ added in v0.14.0
type SagaConfig struct {
RetentionPeriod *string `toml:"retention_period" env:"MIREN_SAGA_RETENTION_PERIOD"`
}
SagaConfig Saga execution retention garbage collection
func DefaultSagaConfig ¶ added in v0.14.0
func DefaultSagaConfig() SagaConfig
DefaultSagaConfig returns default SagaConfig
func (*SagaConfig) GetRetentionPeriod ¶ added in v0.14.0
func (c *SagaConfig) GetRetentionPeriod() string
GetRetentionPeriod returns the value of RetentionPeriod or its zero value if nil
func (*SagaConfig) SetRetentionPeriod ¶ added in v0.14.0
func (c *SagaConfig) SetRetentionPeriod(v string)
SetRetentionPeriod sets the value of RetentionPeriod
func (*SagaConfig) Validate ¶ added in v0.14.0
func (c *SagaConfig) Validate() error
Validate validates SagaConfig
type SecretsConfig ¶ added in v0.14.0
type SecretsConfig struct {
KeyRotationPeriod *string `toml:"key_rotation_period" env:"MIREN_SECRET_KEY_ROTATION_PERIOD"`
}
SecretsConfig Secret storage and cluster key rotation
func DefaultSecretsConfig ¶ added in v0.14.0
func DefaultSecretsConfig() SecretsConfig
DefaultSecretsConfig returns default SecretsConfig
func (*SecretsConfig) GetKeyRotationPeriod ¶ added in v0.14.0
func (c *SecretsConfig) GetKeyRotationPeriod() string
GetKeyRotationPeriod returns the value of KeyRotationPeriod or its zero value if nil
func (*SecretsConfig) SetKeyRotationPeriod ¶ added in v0.14.0
func (c *SecretsConfig) SetKeyRotationPeriod(v string)
SetKeyRotationPeriod sets the value of KeyRotationPeriod
func (*SecretsConfig) Validate ¶ added in v0.14.0
func (c *SecretsConfig) Validate() error
Validate validates SecretsConfig
type ServerConfig ¶
type ServerConfig struct {
AcceleratorCheckpointInterval *int `toml:"accelerator_checkpoint_interval" env:"MIREN_SERVER_ACCELERATOR_CHECKPOINT_INTERVAL"`
AcceleratorCheckpointTimeout *int `toml:"accelerator_checkpoint_timeout" env:"MIREN_SERVER_ACCELERATOR_CHECKPOINT_TIMEOUT"`
AcceleratorFirstCheckpointTimeout *int `toml:"accelerator_first_checkpoint_timeout" env:"MIREN_SERVER_ACCELERATOR_FIRST_CHECKPOINT_TIMEOUT"`
Address *string `toml:"address" env:"MIREN_SERVER_ADDRESS"`
ConfigClusterName *string `toml:"config_cluster_name" env:"MIREN_SERVER_CONFIG_CLUSTER_NAME"`
DataPath *string `toml:"data_path" env:"MIREN_SERVER_DATA_PATH"`
DiskMode *string `toml:"disk_mode" env:"MIREN_DISK_MODE"`
HTTPRequestTimeout *int `toml:"http_request_timeout" env:"MIREN_SERVER_HTTP_REQUEST_TIMEOUT"`
ReleasePath *string `toml:"release_path" env:"MIREN_SERVER_RELEASE_PATH"`
RunnerAddress *string `toml:"runner_address" env:"MIREN_SERVER_RUNNER_ADDRESS"`
RunnerID *string `toml:"runner_id" env:"MIREN_SERVER_RUNNER_ID"`
SkipClientConfig *bool `toml:"skip_client_config" env:"MIREN_SERVER_SKIP_CLIENT_CONFIG"`
StopSandboxesOnShutdown *bool `toml:"stop_sandboxes_on_shutdown" env:"MIREN_SERVER_STOP_SANDBOXES_ON_SHUTDOWN"`
}
ServerConfig Core server settings
func DefaultServerConfig ¶
func DefaultServerConfig() ServerConfig
DefaultServerConfig returns default ServerConfig
func (*ServerConfig) GetAcceleratorCheckpointInterval ¶ added in v0.18.0
func (c *ServerConfig) GetAcceleratorCheckpointInterval() int
GetAcceleratorCheckpointInterval returns the value of AcceleratorCheckpointInterval or its zero value if nil
func (*ServerConfig) GetAcceleratorCheckpointTimeout ¶ added in v0.18.0
func (c *ServerConfig) GetAcceleratorCheckpointTimeout() int
GetAcceleratorCheckpointTimeout returns the value of AcceleratorCheckpointTimeout or its zero value if nil
func (*ServerConfig) GetAcceleratorFirstCheckpointTimeout ¶ added in v0.18.0
func (c *ServerConfig) GetAcceleratorFirstCheckpointTimeout() int
GetAcceleratorFirstCheckpointTimeout returns the value of AcceleratorFirstCheckpointTimeout or its zero value if nil
func (*ServerConfig) GetAddress ¶
func (c *ServerConfig) GetAddress() string
GetAddress returns the value of Address or its zero value if nil
func (*ServerConfig) GetConfigClusterName ¶
func (c *ServerConfig) GetConfigClusterName() string
GetConfigClusterName returns the value of ConfigClusterName or its zero value if nil
func (*ServerConfig) GetDataPath ¶
func (c *ServerConfig) GetDataPath() string
GetDataPath returns the value of DataPath or its zero value if nil
func (*ServerConfig) GetDiskMode ¶ added in v0.6.0
func (c *ServerConfig) GetDiskMode() string
GetDiskMode returns the value of DiskMode or its zero value if nil
func (*ServerConfig) GetHTTPRequestTimeout ¶
func (c *ServerConfig) GetHTTPRequestTimeout() int
GetHTTPRequestTimeout returns the value of HTTPRequestTimeout or its zero value if nil
func (*ServerConfig) GetReleasePath ¶
func (c *ServerConfig) GetReleasePath() string
GetReleasePath returns the value of ReleasePath or its zero value if nil
func (*ServerConfig) GetRunnerAddress ¶
func (c *ServerConfig) GetRunnerAddress() string
GetRunnerAddress returns the value of RunnerAddress or its zero value if nil
func (*ServerConfig) GetRunnerID ¶
func (c *ServerConfig) GetRunnerID() string
GetRunnerID returns the value of RunnerID or its zero value if nil
func (*ServerConfig) GetSkipClientConfig ¶
func (c *ServerConfig) GetSkipClientConfig() bool
GetSkipClientConfig returns the value of SkipClientConfig or its zero value if nil
func (*ServerConfig) GetStopSandboxesOnShutdown ¶
func (c *ServerConfig) GetStopSandboxesOnShutdown() bool
GetStopSandboxesOnShutdown returns the value of StopSandboxesOnShutdown or its zero value if nil
func (*ServerConfig) HTTPRequestTimeoutDuration ¶
func (c *ServerConfig) HTTPRequestTimeoutDuration() time.Duration
HTTPRequestTimeoutDuration returns the timeout as a time.Duration
func (*ServerConfig) SetAcceleratorCheckpointInterval ¶ added in v0.18.0
func (c *ServerConfig) SetAcceleratorCheckpointInterval(v int)
SetAcceleratorCheckpointInterval sets the value of AcceleratorCheckpointInterval
func (*ServerConfig) SetAcceleratorCheckpointTimeout ¶ added in v0.18.0
func (c *ServerConfig) SetAcceleratorCheckpointTimeout(v int)
SetAcceleratorCheckpointTimeout sets the value of AcceleratorCheckpointTimeout
func (*ServerConfig) SetAcceleratorFirstCheckpointTimeout ¶ added in v0.18.0
func (c *ServerConfig) SetAcceleratorFirstCheckpointTimeout(v int)
SetAcceleratorFirstCheckpointTimeout sets the value of AcceleratorFirstCheckpointTimeout
func (*ServerConfig) SetAddress ¶
func (c *ServerConfig) SetAddress(v string)
SetAddress sets the value of Address
func (*ServerConfig) SetConfigClusterName ¶
func (c *ServerConfig) SetConfigClusterName(v string)
SetConfigClusterName sets the value of ConfigClusterName
func (*ServerConfig) SetDataPath ¶
func (c *ServerConfig) SetDataPath(v string)
SetDataPath sets the value of DataPath
func (*ServerConfig) SetDiskMode ¶ added in v0.6.0
func (c *ServerConfig) SetDiskMode(v string)
SetDiskMode sets the value of DiskMode
func (*ServerConfig) SetHTTPRequestTimeout ¶
func (c *ServerConfig) SetHTTPRequestTimeout(v int)
SetHTTPRequestTimeout sets the value of HTTPRequestTimeout
func (*ServerConfig) SetReleasePath ¶
func (c *ServerConfig) SetReleasePath(v string)
SetReleasePath sets the value of ReleasePath
func (*ServerConfig) SetRunnerAddress ¶
func (c *ServerConfig) SetRunnerAddress(v string)
SetRunnerAddress sets the value of RunnerAddress
func (*ServerConfig) SetRunnerID ¶
func (c *ServerConfig) SetRunnerID(v string)
SetRunnerID sets the value of RunnerID
func (*ServerConfig) SetSkipClientConfig ¶
func (c *ServerConfig) SetSkipClientConfig(v bool)
SetSkipClientConfig sets the value of SkipClientConfig
func (*ServerConfig) SetStopSandboxesOnShutdown ¶
func (c *ServerConfig) SetStopSandboxesOnShutdown(v bool)
SetStopSandboxesOnShutdown sets the value of StopSandboxesOnShutdown
func (*ServerConfig) Validate ¶
func (c *ServerConfig) Validate() error
Validate validates ServerConfig
type TLSConfig ¶
type TLSConfig struct {
AcmeDNSProvider *string `toml:"acme_dns_provider" env:"MIREN_TLS_ACME_DNS_PROVIDER"`
AcmeEmail *string `toml:"acme_email" env:"MIREN_TLS_ACME_EMAIL"`
AdditionalIPs []string `toml:"additional_ips" env:"MIREN_TLS_ADDITIONAL_IPS"`
AdditionalNames []string `toml:"additional_names" env:"MIREN_TLS_ADDITIONAL_NAMES"`
SelfSigned *bool `toml:"self_signed" env:"MIREN_TLS_SELF_SIGNED"`
StandardTLS *bool `toml:"standard_tls" env:"MIREN_TLS_STANDARD_TLS"`
}
TLSConfig TLS certificate settings. Consulted only when ingress.mode is tls-autoprovision or behind-proxy-https.
func DefaultTLSConfig ¶
func DefaultTLSConfig() TLSConfig
DefaultTLSConfig returns default TLSConfig
func (*TLSConfig) GetAcmeDNSProvider ¶
GetAcmeDNSProvider returns the value of AcmeDNSProvider or its zero value if nil
func (*TLSConfig) GetAcmeEmail ¶
GetAcmeEmail returns the value of AcmeEmail or its zero value if nil
func (*TLSConfig) GetSelfSigned ¶ added in v0.3.0
GetSelfSigned returns the value of SelfSigned or its zero value if nil
func (*TLSConfig) GetStandardTLS ¶
GetStandardTLS returns the value of StandardTLS or its zero value if nil
func (*TLSConfig) SetAcmeDNSProvider ¶
SetAcmeDNSProvider sets the value of AcmeDNSProvider
func (*TLSConfig) SetAcmeEmail ¶
SetAcmeEmail sets the value of AcmeEmail
func (*TLSConfig) SetSelfSigned ¶ added in v0.3.0
SetSelfSigned sets the value of SelfSigned
func (*TLSConfig) SetStandardTLS ¶
SetStandardTLS sets the value of StandardTLS
type TelemetryConfig ¶ added in v0.17.0
type TelemetryConfig struct {
Metrics TelemetryMetricsConfig `toml:"metrics"`
Traces TelemetryTracesConfig `toml:"traces"`
}
TelemetryConfig Where the cluster ships its own telemetry
func DefaultTelemetryConfig ¶ added in v0.17.0
func DefaultTelemetryConfig() TelemetryConfig
DefaultTelemetryConfig returns default TelemetryConfig
func (*TelemetryConfig) Validate ¶ added in v0.17.0
func (c *TelemetryConfig) Validate() error
Validate validates TelemetryConfig
type TelemetryMetricsConfig ¶ added in v0.17.0
type TelemetryMetricsConfig struct {
RemoteWriteURL *string `toml:"remote_write_url" env:"MIREN_TELEMETRY_METRICS_REMOTE_WRITE_URL"`
WorkloadIdentityAudience *string `toml:"workload_identity_audience" env:"MIREN_TELEMETRY_METRICS_AUDIENCE"`
}
TelemetryMetricsConfig Destination for managed application metrics and the runtime's operational series
func DefaultTelemetryMetricsConfig ¶ added in v0.17.0
func DefaultTelemetryMetricsConfig() TelemetryMetricsConfig
DefaultTelemetryMetricsConfig returns default TelemetryMetricsConfig
func (*TelemetryMetricsConfig) GetRemoteWriteURL ¶ added in v0.17.0
func (c *TelemetryMetricsConfig) GetRemoteWriteURL() string
GetRemoteWriteURL returns the value of RemoteWriteURL or its zero value if nil
func (*TelemetryMetricsConfig) GetWorkloadIdentityAudience ¶ added in v0.17.0
func (c *TelemetryMetricsConfig) GetWorkloadIdentityAudience() string
GetWorkloadIdentityAudience returns the value of WorkloadIdentityAudience or its zero value if nil
func (*TelemetryMetricsConfig) SetRemoteWriteURL ¶ added in v0.17.0
func (c *TelemetryMetricsConfig) SetRemoteWriteURL(v string)
SetRemoteWriteURL sets the value of RemoteWriteURL
func (*TelemetryMetricsConfig) SetWorkloadIdentityAudience ¶ added in v0.17.0
func (c *TelemetryMetricsConfig) SetWorkloadIdentityAudience(v string)
SetWorkloadIdentityAudience sets the value of WorkloadIdentityAudience
func (*TelemetryMetricsConfig) Validate ¶ added in v0.17.0
func (c *TelemetryMetricsConfig) Validate() error
Validate validates TelemetryMetricsConfig
type TelemetryTracesConfig ¶ added in v0.17.0
type TelemetryTracesConfig struct {
Endpoint *string `toml:"endpoint" env:"MIREN_TELEMETRY_TRACES_ENDPOINT"`
WorkloadIdentityAudience *string `toml:"workload_identity_audience" env:"MIREN_TELEMETRY_TRACES_AUDIENCE"`
}
TelemetryTracesConfig OTLP destination for the runtime's own traces
func DefaultTelemetryTracesConfig ¶ added in v0.17.0
func DefaultTelemetryTracesConfig() TelemetryTracesConfig
DefaultTelemetryTracesConfig returns default TelemetryTracesConfig
func (*TelemetryTracesConfig) GetEndpoint ¶ added in v0.17.0
func (c *TelemetryTracesConfig) GetEndpoint() string
GetEndpoint returns the value of Endpoint or its zero value if nil
func (*TelemetryTracesConfig) GetWorkloadIdentityAudience ¶ added in v0.17.0
func (c *TelemetryTracesConfig) GetWorkloadIdentityAudience() string
GetWorkloadIdentityAudience returns the value of WorkloadIdentityAudience or its zero value if nil
func (*TelemetryTracesConfig) ResolvedEndpoint ¶ added in v0.17.0
func (c *TelemetryTracesConfig) ResolvedEndpoint() string
ResolvedEndpoint is the OTLP/HTTP base URL traces export to: telemetry.traces.endpoint when set, otherwise the standard OTEL_EXPORTER_OTLP_ENDPOINT that clusters configured before this section existed still rely on.
func (*TelemetryTracesConfig) SetEndpoint ¶ added in v0.17.0
func (c *TelemetryTracesConfig) SetEndpoint(v string)
SetEndpoint sets the value of Endpoint
func (*TelemetryTracesConfig) SetWorkloadIdentityAudience ¶ added in v0.17.0
func (c *TelemetryTracesConfig) SetWorkloadIdentityAudience(v string)
SetWorkloadIdentityAudience sets the value of WorkloadIdentityAudience
func (*TelemetryTracesConfig) Validate ¶ added in v0.17.0
func (c *TelemetryTracesConfig) Validate() error
Validate validates TelemetryTracesConfig
type VictoriaLogsConfig ¶
type VictoriaLogsConfig struct {
Address *string `toml:"address" env:"MIREN_VICTORIALOGS_ADDRESS"`
HTTPPort *int `toml:"http_port" env:"MIREN_VICTORIALOGS_HTTP_PORT"`
RetentionPeriod *string `toml:"retention_period" env:"MIREN_VICTORIALOGS_RETENTION_PERIOD"`
StartEmbedded *bool `toml:"start_embedded" env:"MIREN_VICTORIALOGS_START_EMBEDDED"`
}
VictoriaLogsConfig VictoriaLogs configuration
func DefaultVictoriaLogsConfig ¶
func DefaultVictoriaLogsConfig() VictoriaLogsConfig
DefaultVictoriaLogsConfig returns default VictoriaLogsConfig
func (*VictoriaLogsConfig) GetAddress ¶
func (c *VictoriaLogsConfig) GetAddress() string
GetAddress returns the value of Address or its zero value if nil
func (*VictoriaLogsConfig) GetHTTPPort ¶
func (c *VictoriaLogsConfig) GetHTTPPort() int
GetHTTPPort returns the value of HTTPPort or its zero value if nil
func (*VictoriaLogsConfig) GetRetentionPeriod ¶
func (c *VictoriaLogsConfig) GetRetentionPeriod() string
GetRetentionPeriod returns the value of RetentionPeriod or its zero value if nil
func (*VictoriaLogsConfig) GetStartEmbedded ¶
func (c *VictoriaLogsConfig) GetStartEmbedded() bool
GetStartEmbedded returns the value of StartEmbedded or its zero value if nil
func (*VictoriaLogsConfig) SetAddress ¶
func (c *VictoriaLogsConfig) SetAddress(v string)
SetAddress sets the value of Address
func (*VictoriaLogsConfig) SetHTTPPort ¶
func (c *VictoriaLogsConfig) SetHTTPPort(v int)
SetHTTPPort sets the value of HTTPPort
func (*VictoriaLogsConfig) SetRetentionPeriod ¶
func (c *VictoriaLogsConfig) SetRetentionPeriod(v string)
SetRetentionPeriod sets the value of RetentionPeriod
func (*VictoriaLogsConfig) SetStartEmbedded ¶
func (c *VictoriaLogsConfig) SetStartEmbedded(v bool)
SetStartEmbedded sets the value of StartEmbedded
func (*VictoriaLogsConfig) Validate ¶
func (c *VictoriaLogsConfig) Validate() error
Validate validates VictoriaLogsConfig
type VictoriaMetricsConfig ¶
type VictoriaMetricsConfig struct {
Address *string `toml:"address" env:"MIREN_VICTORIAMETRICS_ADDRESS"`
HTTPPort *int `toml:"http_port" env:"MIREN_VICTORIAMETRICS_HTTP_PORT"`
RetentionPeriod *string `toml:"retention_period" env:"MIREN_VICTORIAMETRICS_RETENTION_PERIOD"`
StartEmbedded *bool `toml:"start_embedded" env:"MIREN_VICTORIAMETRICS_START_EMBEDDED"`
}
VictoriaMetricsConfig VictoriaMetrics configuration
func DefaultVictoriaMetricsConfig ¶
func DefaultVictoriaMetricsConfig() VictoriaMetricsConfig
DefaultVictoriaMetricsConfig returns default VictoriaMetricsConfig
func (*VictoriaMetricsConfig) GetAddress ¶
func (c *VictoriaMetricsConfig) GetAddress() string
GetAddress returns the value of Address or its zero value if nil
func (*VictoriaMetricsConfig) GetHTTPPort ¶
func (c *VictoriaMetricsConfig) GetHTTPPort() int
GetHTTPPort returns the value of HTTPPort or its zero value if nil
func (*VictoriaMetricsConfig) GetRetentionPeriod ¶
func (c *VictoriaMetricsConfig) GetRetentionPeriod() string
GetRetentionPeriod returns the value of RetentionPeriod or its zero value if nil
func (*VictoriaMetricsConfig) GetStartEmbedded ¶
func (c *VictoriaMetricsConfig) GetStartEmbedded() bool
GetStartEmbedded returns the value of StartEmbedded or its zero value if nil
func (*VictoriaMetricsConfig) SetAddress ¶
func (c *VictoriaMetricsConfig) SetAddress(v string)
SetAddress sets the value of Address
func (*VictoriaMetricsConfig) SetHTTPPort ¶
func (c *VictoriaMetricsConfig) SetHTTPPort(v int)
SetHTTPPort sets the value of HTTPPort
func (*VictoriaMetricsConfig) SetRetentionPeriod ¶
func (c *VictoriaMetricsConfig) SetRetentionPeriod(v string)
SetRetentionPeriod sets the value of RetentionPeriod
func (*VictoriaMetricsConfig) SetStartEmbedded ¶
func (c *VictoriaMetricsConfig) SetStartEmbedded(v bool)
SetStartEmbedded sets the value of StartEmbedded
func (*VictoriaMetricsConfig) Validate ¶
func (c *VictoriaMetricsConfig) Validate() error
Validate validates VictoriaMetricsConfig