Documentation
¶
Overview ¶
Package config reads/writes the wbctl config file as a generic document, independent of viper. It is used by the profile subcommands.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadDocument ¶
ReadDocument reads the document at the given path into a generic map. A missing file is treated as an empty document so callers can bootstrap a new config file.
func WriteDocument ¶
WriteDocument marshals doc as the given format and writes it to configPath, creating the parent directory if needed. The directory and file are written with restrictive permissions since the document may contain credentials.
Types ¶
This section is empty.