Help us shape the future of Go! Take the 2026 Go Developer Survey

config

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ConfigDir string
	BinDir    string
	DataDir   string
	StateDir  string
}

Config holds all obol configuration paths

func Load

func Load() *Config

Load returns the configuration with XDG-compliant defaults

func (*Config) ToolPath added in v0.15.0

func (c *Config) ToolPath(name string) string

ToolPath resolves the binary to exec for a host tool (kubectl, helm, k3d, helmfile, k9s): OBOL_<TOOL> env override → obol-managed BinDir copy → version-compatible copy on $PATH. When nothing usable exists it returns <BinDir>/<name>, so callers' existing not-found handling still applies. See internal/tools for the policy and installer.

Jump to

Keyboard shortcuts

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