Documentation ¶
Index ¶
- func GetConfigCommand() *cobra.Command
- func NewAccessor(opts config.Options) config.Accessor
- type CollectionProxy
- func (c CollectionProxy) AllSettings() map[string]interface{}
- func (c *CollectionProxy) AutomaticEnv()
- func (c *CollectionProxy) BindEnv(input ...string) error
- func (c *CollectionProxy) BindPFlags(flags *pflag.FlagSet) error
- func (c CollectionProxy) ConfigFileUsed() string
- func (c CollectionProxy) ConfigFilesUsed() []string
- func (c CollectionProxy) MergeAllConfigs() (all Viper, err error)
- func (c CollectionProxy) MergeConfig(in io.Reader) error
- func (c CollectionProxy) OnConfigChange(run func(in fsnotify.Event))
- func (c CollectionProxy) ReadInConfig() error
- func (c CollectionProxy) WatchConfig()
- type Viper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetConfigCommand ¶
Gets the root level command that can be added to any cobra-powered cli to get config* commands.
Types ¶
type CollectionProxy ¶
type CollectionProxy struct {
// contains filtered or unexported fields
}
A proxy object for a collection of Viper instances.
func (CollectionProxy) AllSettings ¶
func (c CollectionProxy) AllSettings() map[string]interface{}
func (*CollectionProxy) AutomaticEnv ¶
func (c *CollectionProxy) AutomaticEnv()
func (*CollectionProxy) BindEnv ¶
func (c *CollectionProxy) BindEnv(input ...string) error
func (*CollectionProxy) BindPFlags ¶
func (c *CollectionProxy) BindPFlags(flags *pflag.FlagSet) error
func (CollectionProxy) ConfigFileUsed ¶
func (c CollectionProxy) ConfigFileUsed() string
func (CollectionProxy) ConfigFilesUsed ¶
func (c CollectionProxy) ConfigFilesUsed() []string
func (CollectionProxy) MergeAllConfigs ¶
func (c CollectionProxy) MergeAllConfigs() (all Viper, err error)
func (CollectionProxy) MergeConfig ¶
func (c CollectionProxy) MergeConfig(in io.Reader) error
func (CollectionProxy) OnConfigChange ¶
func (c CollectionProxy) OnConfigChange(run func(in fsnotify.Event))
func (CollectionProxy) ReadInConfig ¶
func (c CollectionProxy) ReadInConfig() error
func (CollectionProxy) WatchConfig ¶
func (c CollectionProxy) WatchConfig()
Click to show internal directories.
Click to hide internal directories.