Documentation
¶
Overview ¶
Package embed is a configuration source that can be fully compiled-in
Index ¶
Constants ¶
View Source
const TypeName = "go2chef.config_source.embed"
TypeName is the name of this config source
Variables ¶
View Source
var EmbeddedConfig = make(map[string]interface{})
EmbeddedConfig exposes the means for storing the embedded configuration. If you want to embed configuration in some other format you can set this variable in an init() function in your own package to parse/store it.
Functions ¶
This section is empty.
Types ¶
type ConfigSource ¶
type ConfigSource struct{}
ConfigSource is the embedded configuration source implementation
func (*ConfigSource) InitFlags ¶
func (c *ConfigSource) InitFlags(set *pflag.FlagSet)
InitFlags initializes flags for this config source (none)
func (*ConfigSource) ReadConfig ¶
func (c *ConfigSource) ReadConfig() (map[string]interface{}, error)
ReadConfig reads the configuration source
Click to show internal directories.
Click to hide internal directories.