serverconfig

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2026 License: Apache-2.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 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  `long:"buildkit-gc-duration" description:"How long to keep BuildKit cache entries (e.g., 7d, 24h)"`
	BuildkitConfigGcKeepStorage          *string  `long:"buildkit-gc-storage" description:"Maximum BuildKit layer cache size (e.g., 10GB, 50GB)"`
	BuildkitConfigSocketDir              *string  `long:"buildkit-socket-dir" description:"Directory for embedded BuildKit Unix socket (defaults to data_path/buildkit/socket)"`
	BuildkitConfigSocketPath             *string  `long:"buildkit-socket" description:"Path to external BuildKit Unix socket (for distributed mode)"`
	BuildkitConfigStartEmbedded          *bool    `long:"start-buildkit" description:"Start embedded BuildKit daemon for container image builds"`
	ConfigFile                           *string  `long:"config" description:"Path to configuration file"`
	Labs                                 []string `long:"labs" description:"Comma-separated list of Miren Labs features to enable/disable. Prefix with - to disable."`
	Mode                                 *string  `long:"mode" short:"m" description:"Server mode: standalone (default), distributed (experimental)"`
	ContainerdConfigBinaryPath           *string  `long:"containerd-binary" description:"Path to containerd binary"`
	ContainerdConfigSocketPath           *string  `long:"containerd-socket" description:"Path to containerd socket"`
	ContainerdConfigStartEmbedded        *bool    `long:"start-containerd" description:"Start embedded containerd daemon"`
	EtcdConfigClientPort                 *int     `long:"etcd-client-port" description:"Etcd client port"`
	EtcdConfigEndpoints                  []string `long:"etcd" short:"e" description:"Etcd endpoints"`
	EtcdConfigHTTPClientPort             *int     `long:"etcd-http-client-port" description:"Etcd HTTP client port"`
	EtcdConfigPeerPort                   *int     `long:"etcd-peer-port" description:"Etcd peer port"`
	EtcdConfigPrefix                     *string  `long:"etcd-prefix" short:"p" description:"Etcd prefix"`
	EtcdConfigStartEmbedded              *bool    `long:"start-etcd" description:"Start embedded etcd server"`
	ServerConfigAddress                  *string  `long:"address" short:"a" description:"Address to listen on (host:port). For IPv6 use brackets, e.g. \"[::1]:8443\"."`
	ServerConfigConfigClusterName        *string  `long:"config-cluster-name" short:"C" description:"Name of the cluster in client config"`
	ServerConfigDataPath                 *string  `long:"data-path" short:"d" description:"Data path"`
	ServerConfigDiskMode                 *string  `` /* 138-byte string literal not displayed */
	ServerConfigHTTPRequestTimeout       *int     `long:"http-request-timeout" description:"HTTP request timeout in seconds"`
	ServerConfigNetworkBackend           *string  `long:"network-backend" description:"Network backend for sandbox connectivity: vxlan (default) or wireguard"`
	ServerConfigReleasePath              *string  `long:"release-path" description:"Path to release directory containing binaries"`
	ServerConfigRunnerAddress            *string  `long:"runner-address" description:"Runner address (host:port). For IPv6 use brackets, e.g. \"[::1]:8444\"."`
	ServerConfigRunnerID                 *string  `long:"runner-id" short:"r" description:"Runner ID"`
	ServerConfigSkipClientConfig         *bool    `long:"skip-client-config" description:"Skip writing client config file to clientconfig.d"`
	ServerConfigStopSandboxesOnShutdown  *bool    `long:"stop-sandboxes-on-shutdown" description:"Stop all sandboxes when server shuts down (useful in development)"`
	TLSConfigAcmeDNSProvider             *string  `` /* 234-byte string literal not displayed */
	TLSConfigAcmeEmail                   *string  `` /* 128-byte string literal not displayed */
	TLSConfigAdditionalIPs               []string `long:"ips" description:"Additional IPs assigned to the server cert"`
	TLSConfigAdditionalNames             []string `long:"dns-names" description:"Additional DNS names assigned to the server cert"`
	TLSConfigSelfSigned                  *bool    `long:"self-signed-tls" description:"Use self-signed certificates for TLS (for development/testing only)"`
	TLSConfigStandardTLS                 *bool    `long:"serve-tls" description:"Expose the http ingress on standard TLS ports"`
	VictoriaLogsConfigAddress            *string  `long:"victorialogs-addr" description:"VictoriaLogs address (when not using embedded)"`
	VictoriaLogsConfigHTTPPort           *int     `long:"victorialogs-http-port" description:"VictoriaLogs HTTP port in embedded mode"`
	VictoriaLogsConfigRetentionPeriod    *string  `long:"victorialogs-retention" description:"VictoriaLogs retention period (e.g. 30d, 2w, 1y)"`
	VictoriaLogsConfigStartEmbedded      *bool    `long:"start-victorialogs" description:"Start embedded VictoriaLogs server"`
	VictoriaMetricsConfigAddress         *string  `long:"victoriametrics-addr" description:"VictoriaMetrics address (when not using embedded)"`
	VictoriaMetricsConfigHTTPPort        *int     `long:"victoriametrics-http-port" description:"VictoriaMetrics HTTP port in embedded mode"`
	VictoriaMetricsConfigRetentionPeriod *string  `long:"victoriametrics-retention" description:"VictoriaMetrics retention period in months"`
	VictoriaMetricsConfigStartEmbedded   *bool    `long:"start-victoriametrics" description:"Start embedded VictoriaMetrics server"`
}

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

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

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

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