serverconfig

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: May 20, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
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 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 {
	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  `` /* 130-byte string literal not displayed */
	BuildkitConfigStartEmbedded          *bool    `` /* 129-byte string literal not displayed */
	ConfigFile                           *string  `long:"config" description:"Path to configuration file"`
	Labs                                 []string `` /* 131-byte string literal not displayed */
	Mode                                 *string  `long:"mode" short:"m" description:"Server mode: standalone (default), distributed (experimental)" env:"MIREN_MODE"`
	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    `long:"start-containerd" description:"Start embedded containerd daemon" env:"MIREN_CONTAINERD_START_EMBEDDED"`
	EtcdConfigClientPort                 *int     `long:"etcd-client-port" description:"Etcd client port" env:"MIREN_ETCD_CLIENT_PORT"`
	EtcdConfigEndpoints                  []string `long:"etcd" short:"e" description:"Etcd endpoints" env:"MIREN_ETCD_ENDPOINTS"`
	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"`
	EtcdConfigStartEmbedded              *bool    `long:"start-etcd" description:"Start embedded etcd server" env:"MIREN_ETCD_START_EMBEDDED"`
	IngressConfigAddress                 *string  `` /* 279-byte string literal not displayed */
	IngressConfigMode                    *string  `` /* 333-byte string literal not displayed */
	ServerConfigAddress                  *string  `` /* 143-byte string literal not displayed */
	ServerConfigConfigClusterName        *string  `` /* 126-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"`
	ServerConfigNetworkBackend           *string  `` /* 142-byte string literal not displayed */
	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 */
	VictoriaLogsConfigAddress            *string  `long:"victorialogs-addr" description:"VictoriaLogs address (when not using embedded)" env:"MIREN_VICTORIALOGS_ADDRESS"`
	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    `long:"start-victorialogs" description:"Start embedded VictoriaLogs server" env:"MIREN_VICTORIALOGS_START_EMBEDDED"`
	VictoriaMetricsConfigAddress         *string  `` /* 127-byte string literal not displayed */
	VictoriaMetricsConfigHTTPPort        *int     `` /* 127-byte string literal not displayed */
	VictoriaMetricsConfigRetentionPeriod *string  `` /* 134-byte string literal not displayed */
	VictoriaMetricsConfigStartEmbedded   *bool    `long:"start-victoriametrics" description:"Start embedded VictoriaMetrics server" env:"MIREN_VICTORIAMETRICS_START_EMBEDDED"`
}

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 {
	Buildkit        BuildkitConfig        `toml:"buildkit"`
	Containerd      ContainerdConfig      `toml:"containerd"`
	Etcd            EtcdConfig            `toml:"etcd"`
	Ingress         IngressConfig         `toml:"ingress"`
	Labs            []string              `toml:"labs" env:"MIREN_LABS"`
	Mode            *string               `toml:"mode" env:"MIREN_MODE"`
	Server          ServerConfig          `toml:"server"`
	TLS             TLSConfig             `toml:"tls"`
	Victorialogs    VictoriaLogsConfig    `toml:"victorialogs"`
	Victoriametrics VictoriaMetricsConfig `toml:"victoriametrics"`
}

Config Complete server configuration from all sources

func DefaultConfig

func DefaultConfig() *Config

DefaultConfig returns the default configuration

func Load

func Load(configPath string, flags *CLIFlags, log *slog.Logger) (*Config, error)

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) GetMode

func (c *Config) GetMode() string

GetMode returns the value of Mode or its zero value if nil

func (*Config) SetMode

func (c *Config) SetMode(v string)

SetMode sets the value of Mode

func (*Config) Validate

func (c *Config) Validate() error

Validate validates the configuration

func (*Config) ValidateIngressCoherence added in v0.8.0

func (c *Config) ValidateIngressCoherence() error

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:

  1. ingress.address format checks, including a clear-message rejection of the reserved-but-not-yet-supported unix:/path form (see RFD-84).
  2. 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) WarnDeprecatedConfig added in v0.8.0

func (c *Config) WarnDeprecatedConfig(log *slog.Logger)

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. Currently only tls.standard_tls is treated this way: it's 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.

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 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"`
	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) 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) SetStartEmbedded

func (c *EtcdConfig) SetStartEmbedded(v bool)

SetStartEmbedded sets the value of StartEmbedded

func (*EtcdConfig) Validate

func (c *EtcdConfig) Validate() error

Validate validates EtcdConfig

type IngressConfig added in v0.8.0

type IngressConfig struct {
	Address *string `toml:"address" env:"MIREN_INGRESS_ADDRESS"`
	Mode    *string `toml:"mode" env:"MIREN_INGRESS_MODE"`
}

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) 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) SetAddress added in v0.8.0

func (c *IngressConfig) SetAddress(v string)

SetAddress sets the value of Address

func (*IngressConfig) SetMode added in v0.8.0

func (c *IngressConfig) SetMode(v string)

SetMode sets the value of Mode

func (*IngressConfig) Validate added in v0.8.0

func (c *IngressConfig) Validate() error

Validate validates IngressConfig

type ServerConfig

type ServerConfig struct {
	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"`
	NetworkBackend          *string `toml:"network_backend" env:"MIREN_SERVER_NETWORK_BACKEND"`
	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) 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) GetNetworkBackend added in v0.4.0

func (c *ServerConfig) GetNetworkBackend() string

GetNetworkBackend returns the value of NetworkBackend 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) 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) SetNetworkBackend added in v0.4.0

func (c *ServerConfig) SetNetworkBackend(v string)

SetNetworkBackend sets the value of NetworkBackend

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

func (c *TLSConfig) GetAcmeDNSProvider() string

GetAcmeDNSProvider returns the value of AcmeDNSProvider or its zero value if nil

func (*TLSConfig) GetAcmeEmail

func (c *TLSConfig) GetAcmeEmail() string

GetAcmeEmail returns the value of AcmeEmail or its zero value if nil

func (*TLSConfig) GetSelfSigned added in v0.3.0

func (c *TLSConfig) GetSelfSigned() bool

GetSelfSigned returns the value of SelfSigned or its zero value if nil

func (*TLSConfig) GetStandardTLS

func (c *TLSConfig) GetStandardTLS() bool

GetStandardTLS returns the value of StandardTLS or its zero value if nil

func (*TLSConfig) SetAcmeDNSProvider

func (c *TLSConfig) SetAcmeDNSProvider(v string)

SetAcmeDNSProvider sets the value of AcmeDNSProvider

func (*TLSConfig) SetAcmeEmail

func (c *TLSConfig) SetAcmeEmail(v string)

SetAcmeEmail sets the value of AcmeEmail

func (*TLSConfig) SetSelfSigned added in v0.3.0

func (c *TLSConfig) SetSelfSigned(v bool)

SetSelfSigned sets the value of SelfSigned

func (*TLSConfig) SetStandardTLS

func (c *TLSConfig) SetStandardTLS(v bool)

SetStandardTLS sets the value of StandardTLS

func (*TLSConfig) Validate

func (c *TLSConfig) Validate() error

Validate validates TLSConfig

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

Directories

Path Synopsis
cmd
configgen command

Jump to

Keyboard shortcuts

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