config

package
v0.2.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// DefaultAPIURL is the production Fleet Intelligence API root.
	DefaultAPIURL = "https://api.fleet-intelligence.nvidia.com"
	// EnvAPIURL overrides the configured API URL for the current process.
	EnvAPIURL = "NVFLEETCTL_API_URL"
	// EnvServiceKey overrides the configured service key for the current process.
	EnvServiceKey = "NVFLEETCTL_SERVICE_KEY"
)

Variables

This section is empty.

Functions

func ApplyEnv

func ApplyEnv(cfg *Config)

ApplyEnv overlays supported environment variables onto cfg.

func Path

func Path() (string, error)

func Save

func Save(cfg Config) error

Types

type Config

type Config struct {
	APIURL     string
	ServiceKey string
}

func Default

func Default() Config

func Load

func Load() (Config, error)

func LoadWithEnv

func LoadWithEnv() (Config, error)

LoadWithEnv loads config from disk and overlays supported environment variables.

Jump to

Keyboard shortcuts

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