Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateYAMLFile ¶
ValidateYAMLFile checks if a file has a valid YAML extension
Types ¶
type Loader ¶
type Loader struct {
// contains filtered or unexported fields
}
Loader handles loading declarative configuration from files
func NewWithPath ¶
NewWithPath creates a new configuration loader with a root path (deprecated, for backward compatibility)
func (*Loader) Load ¶
func (l *Loader) Load() (*resources.ResourceSet, error)
Load loads configuration from the default current directory (deprecated)
func (*Loader) LoadFile ¶
func (l *Loader) LoadFile(path string) (*resources.ResourceSet, error)
LoadFile loads configuration from a single YAML file (deprecated, for backward compatibility)
func (*Loader) LoadFromSources ¶
LoadFromSources loads configuration from multiple sources
type Source ¶
type Source struct {
Path string
Type SourceType
}
Source represents a configuration source with its type
func ParseSources ¶
ParseSources parses the filename flag values into individual sources
type SourceType ¶
type SourceType int
SourceType represents the type of configuration source
const ( // SourceTypeFile represents a single file source SourceTypeFile SourceType = iota // SourceTypeDirectory represents a directory source SourceTypeDirectory // SourceTypeSTDIN represents stdin source SourceTypeSTDIN )
Click to show internal directories.
Click to hide internal directories.