Documentation ¶
Overview ¶
Package config implements the functions, types, and interfaces for the module.
Index ¶
- Constants
- func FileConfigPath(serviceName, filename string) string
- func New(client *api.Client, opts ...Option) (config.KSource, error)
- func NewConsulConfig(ccfg *configv1.SourceConfig, ss ...config.OptionSetting) (config.KConfig, error)
- func SyncConfig(ccfg *configv1.SourceConfig, v any, ss ...config.OptionSetting) error
- type Option
Constants ¶
View Source
const ( DefaultPathName = "bootstrap.json" Type = "consul" )
Variables ¶
This section is empty.
Functions ¶
func FileConfigPath ¶
func NewConsulConfig ¶
func NewConsulConfig(ccfg *configv1.SourceConfig, ss ...config.OptionSetting) (config.KConfig, error)
NewConsulConfig create a new consul config.
func SyncConfig ¶
func SyncConfig(ccfg *configv1.SourceConfig, v any, ss ...config.OptionSetting) error
Types ¶
Click to show internal directories.
Click to hide internal directories.