Documentation
¶
Overview ¶
Package config owns persisted settings, separate from private runtime credentials.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type RemoteValues ¶
type RemoteValues struct {
Host string `json:"host"`
Port int `json:"port"`
State string `json:"state"`
Account string `json:"account"`
RetentionDays int `json:"retentionDays"`
}
RemoteValues is deployment configuration, independent of personal CLI settings.
func LoadRemoteFile ¶
func LoadRemoteFile(path string) (RemoteValues, error)
LoadRemoteFile resolves defaults, an explicitly selected file, then environment. It never discovers personal config, creates files, or acquires a config lock.
func (RemoteValues) ListenAddress ¶
func (values RemoteValues) ListenAddress() (string, error)
ListenAddress validates the configured listener when no flag overrides it.
type ServerSettings ¶
type Values ¶
type Values struct {
Host string `json:"host"`
Port *int `json:"port"`
State string `json:"state"`
WebDir string `json:"webDir"`
Server string `json:"server"`
Token string `json:"token"`
RetentionDays int `json:"retentionDays"`
}
func LoadFile ¶
LoadFile resolves defaults, a JSON file, then environment overrides. It never persists environment values. An empty path selects the machine config.
func (Values) Settings ¶
func (values Values) Settings() (ServerSettings, error)
Click to show internal directories.
Click to hide internal directories.