
admintarget
Package admintarget resolves the admin API base address and token from the precedence flag -> environment -> config file.
Index
- Constants
- func Resolve(addrFlag, tokenFlag string, loadCfg func() (*config.Config, error)) (string, string, error)
Constants
EnvAddr and EnvToken let a local binary target a remote instance without a server config; flags take precedence over both.
func Resolve
Resolve determines the admin API base address and token using the precedence flag -> environment -> config. The config file is loaded (via loadCfg) only when either value is still missing.
Generated by gomarkdoc