Discover Packages
github.com/UnitVectorY-Labs/YAMLtecture
internal
configuration
package
Version:
v0.2.0
Opens a new window with list of versions in this module.
Published: Mar 31, 2025
License: MIT
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type Config struct {
Nodes []Node `yaml:"nodes"`
Links []Link `yaml:"links"`
}
Config holds the aggregated architecture
LoadConfig loads and parses a single YAML configuration file from the given path.
ParseYAML parses a YAML configuration string into a Config struct.
ValidateConfig performs all required validations on the configuration.
YamlString returns the YAML representation of the configuration
type Link struct {
ID string `yaml:"-"`
Source string `yaml:"source"`
Target string `yaml:"target"`
Type string `yaml:"type"`
Attributes map[string ]interface{} `yaml:"attributes,omitempty"`
}
Link represents an interaction between nodes
type Node struct {
ID string `yaml:"id"`
Type string `yaml:"type"`
Parent string `yaml:"parent,omitempty"`
Attributes map[string ]interface{} `yaml:"attributes,omitempty"`
}
Node represents a system component
Source Files
¶
Click to show internal directories.
Click to hide internal directories.