Documentation ¶
Index ¶
Constants ¶
View Source
const TypeName = "go2chef.config_source.local"
TypeName is the name of this configuration source
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigSource ¶
type ConfigSource struct {
Path string
}
ConfigSource loads configuration data from JSON files on the local filesystem
func (*ConfigSource) InitFlags ¶
func (c *ConfigSource) InitFlags(set *pflag.FlagSet)
InitFlags sets the command-line flags for local configuration sources
func (*ConfigSource) ReadConfig ¶
func (c *ConfigSource) ReadConfig() (map[string]interface{}, error)
ReadConfig loads the configuration file from disk
Click to show internal directories.
Click to hide internal directories.