Versions in this module Expand all Collapse all v1 v1.0.1 Feb 21, 2024 v1.0.0 Feb 21, 2024 Changes in this version + const CommandDiscover + const CommandDocs + const CommandValidate + const DocsSectionLength + const PathFlag + const StrictModeFlag + var ErrChildConfigOverridesConfig = fmt.Errorf("child config attempts to override an existing native config property") + var ErrStrictModeValidation = fmt.Errorf("failed strict mode check") + func AllConfigsAsMap(root Section) (m map[string]interface{}, err error) + func DeepEqual(config1, config2 Config) bool + func NewConfigCommand(accessorProvider AccessorProvider) *cobra.Command + type Accessor interface + ConfigFilesUsed func() []string + ID func() string + InitializeFlags func(cmdFlags *flag.FlagSet) + InitializePflags func(cmdFlags *pflag.FlagSet) + UpdateConfig func(ctx context.Context) error + type AccessorProvider func(options Options) Accessor + type CloudDeployment uint8 + const CloudDeploymentAWS + const CloudDeploymentGCP + const CloudDeploymentLocal + const CloudDeploymentNone + const CloudDeploymentSandbox + func CloudDeploymentString(s string) (CloudDeployment, error) + func CloudDeploymentValues() []CloudDeployment + func (i *CloudDeployment) UnmarshalJSON(data []byte) error + func (i *CloudDeployment) UnmarshalYAML(unmarshal func(interface{}) error) error + func (i CloudDeployment) IsACloudDeployment() bool + func (i CloudDeployment) MarshalJSON() ([]byte, error) + func (i CloudDeployment) MarshalYAML() (interface{}, error) + func (i CloudDeployment) String() string + type Config = interface + func DeepCopyConfig(config Config) (Config, error) + type Duration struct + func (Duration) Type() string + func (d *Duration) Set(val string) error + func (d *Duration) UnmarshalJSON(b []byte) error + func (d Duration) MarshalJSON() ([]byte, error) + type Options struct + RootSection Section + SearchPaths []string + StrictMode bool + type PFlagProvider interface + GetPFlagSet func(prefix string) *pflag.FlagSet + type Port struct + Port int + func (Port) Type() string + func (p *Port) Set(val string) error + func (p *Port) UnmarshalJSON(b []byte) error + func (p Port) MarshalJSON() ([]byte, error) + func (p Port) String() string + type Regexp struct + func (r *Regexp) UnmarshalJSON(b []byte) error + func (r Regexp) MarshalJSON() ([]byte, error) + type Section interface + GetConfig func() Config + GetConfigChangedAndClear func() bool + GetConfigUpdatedHandler func() SectionUpdated + GetSection func(key SectionKey) Section + GetSections func() SectionMap + MustRegisterSection func(key SectionKey, configSection Config) Section + MustRegisterSectionWithUpdates func(key SectionKey, configSection Config, updatesFn SectionUpdated) Section + RegisterSection func(key SectionKey, configSection Config) (Section, error) + RegisterSectionWithUpdates func(key SectionKey, configSection Config, updatesFn SectionUpdated) (Section, error) + SetConfig func(config Config) error + func GetRootSection() Section + func GetSection(key SectionKey) Section + func MustRegisterSection(key SectionKey, configSection Config) Section + func MustRegisterSectionWithUpdates(key SectionKey, configSection Config, updatesFn SectionUpdated) Section + func NewRootSection() Section + func NewSection(configSection Config, updatesFn SectionUpdated) Section + func RegisterSection(key SectionKey, configSection Config) (Section, error) + func RegisterSectionWithUpdates(key SectionKey, configSection Config, updatesFn SectionUpdated) (Section, error) + type SectionKey = string + type SectionMap map[SectionKey]Section + type SectionUpdated func(ctx context.Context, newValue Config) + type URL struct + func (URL) Type() string + func (d *URL) Set(val string) error + func (d *URL) UnmarshalJSON(b []byte) error + func (d URL) MarshalJSON() ([]byte, error)