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 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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