Documentation ¶
Overview ¶
Package config provides facilities for manipulating kraftkit configuration files on the local filesystem.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
Config is a YAML-serializable kraftkit configuration. It provides facilities for reading and writing individual configuration attributes from/to a file.
This type is purposely decoupled from kraftkit's internal configuration facilities to allow testing the CLI from an outside perspective, independently from kraftkit's internal implementation.
func NewTempConfig ¶
func NewTempConfig() *Config
NewTempConfig creates a temporary kraftkit configuration file on the local filesystem, pre-populated with a "paths" configuration section referencing temporary directories.
A ginkgo cleanup node is automatically created to handle the removal of the (temporary) parent directory of this configuration file.