Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Defaults is a function that applies a default namespace and domain to new ConfigRef instances Defaults = WithDefaults(defaultNamespace, defaultDomain) )
Functions ¶
func WithDefaults ¶
WithDefaults applies the provided namespace and domain to ConfigRef instances.
Types ¶
type ConfigRef ¶
type ConfigRef struct { Meta *model.ConfigMeta FilePath string }
ConfigRef provides information for a single element of configuration stored in a file.
type ConfigStore ¶
type ConfigStore interface { model.ConfigStore // CreateFromFile create a new configuration element from the specified file. CreateFromFile(config ConfigRef) error }
ConfigStore is a decorator around another config store that adds support for loading configuration elements from files.
func NewConfigStore ¶
func NewConfigStore(store model.ConfigStore) ConfigStore
NewConfigStore creates a new file-based config store.
Click to show internal directories.
Click to hide internal directories.