Documentation
¶
Overview ¶
Package file implements the functions, types, and interfaces for the module.
Index ¶
- func NewFileSource(cfg *sourcev1.SourceConfig, opts ...options.Option) (kratosconfig.Source, error)
- func NewSource(path string, opts ...Option) kratosconfig.Source
- func WithFormatter(formatter Formatter) options.Option
- func WithIgnores(ignores ...string) options.Option
- func WithOptional() options.Option
- type Formatter
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFileSource ¶ added in v0.2.6
func NewFileSource(cfg *sourcev1.SourceConfig, opts ...options.Option) (kratosconfig.Source, error)
NewFileSource creates a new file source based on configuration. It adapts to the new bootstrap mechanism.
func NewSource ¶
func NewSource(path string, opts ...Option) kratosconfig.Source
NewSource creates a new file source instance
func WithFormatter ¶ added in v0.2.1
func WithIgnores ¶
func WithOptional ¶ added in v0.2.7
Types ¶
Click to show internal directories.
Click to hide internal directories.