runnerconfig

package
v0.16.2 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultConfigPath = "/var/lib/miren/runner/config.yaml"

Variables

This section is empty.

Functions

func Exists

func Exists(path string) bool

Types

type Config

type Config struct {
	RunnerID           string `yaml:"runner_id" json:"runner_id"`
	Name               string `yaml:"name,omitempty" json:"name,omitempty"`
	CoordinatorAddress string `yaml:"coordinator_address" json:"coordinator_address"`
	// ListenAddress is where the runner last served its RPC. The runner
	// discovers it on start and records it here so a process on the same
	// host (the lifecycle executor) can reach the runner without repeating
	// the discovery.
	ListenAddress string            `yaml:"listen_address,omitempty" json:"listen_address,omitempty"`
	CACert        string            `yaml:"ca_cert" json:"ca_cert"`
	ClientCert    string            `yaml:"client_cert" json:"client_cert"`
	ClientKey     string            `yaml:"client_key" json:"client_key"`
	Labels        map[string]string `yaml:"labels,omitempty" json:"labels,omitempty"`
	// Network configuration for distributed runners
	EtcdEndpoints []string `yaml:"etcd_endpoints,omitempty" json:"etcd_endpoints,omitempty"`
	EtcdPrefix    string   `yaml:"etcd_prefix,omitempty" json:"etcd_prefix,omitempty"`
	DiskMode      string   `yaml:"disk_mode,omitempty" json:"disk_mode,omitempty"`
	// Observability endpoints for metrics and logs
	VictoriametricsAddress string `yaml:"victoriametrics_address,omitempty" json:"victoriametrics_address,omitempty"`
	VictorialogsAddress    string `yaml:"victorialogs_address,omitempty" json:"victorialogs_address,omitempty"`
}

func Load

func Load(path string) (*Config, error)

func (*Config) Save

func (c *Config) Save(path string) error

Jump to

Keyboard shortcuts

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