Documentation
¶
Overview ¶
Package config implements the static configuration connector: importing a manually defined architecture from YAML into the graph (PRD section 21).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
Agents []NodeDef `yaml:"agents"`
MCPServers []NodeDef `yaml:"mcp_servers"`
Tools []NodeDef `yaml:"tools"`
Identities []NodeDef `yaml:"identities"`
Secrets []NodeDef `yaml:"secrets"`
Repositories []NodeDef `yaml:"repositories"`
CIPipelines []NodeDef `yaml:"ci_pipelines"`
CloudRoles []NodeDef `yaml:"cloud_roles"`
CloudResources []NodeDef `yaml:"cloud_resources"`
Databases []NodeDef `yaml:"databases"`
Hosts []NodeDef `yaml:"hosts"`
APIs []NodeDef `yaml:"apis"`
Datasets []NodeDef `yaml:"datasets"`
// Nodes is a generic section where each entry carries an explicit type.
Nodes []NodeDef `yaml:"nodes"`
CrownJewels []string `yaml:"crown_jewels"`
Relationships []EdgeDef `yaml:"relationships"`
Edges []EdgeDef `yaml:"edges"`
}
Config is the full agentgraph.yaml document.
type EdgeDef ¶
type EdgeDef struct {
Source string `yaml:"source"`
Target string `yaml:"target"`
Type string `yaml:"type"`
Confidence float64 `yaml:"confidence"`
Risk int `yaml:"risk"`
Metadata map[string]any `yaml:"metadata"`
Connector string `yaml:"connector"`
SourceObject string `yaml:"source_object"`
}
EdgeDef is a relationship definition.
type NodeDef ¶
type NodeDef struct {
ID string `yaml:"id"`
Name string `yaml:"name"`
Provider string `yaml:"provider"`
Criticality int `yaml:"criticality"`
CrownJewel bool `yaml:"crown_jewel"`
Metadata map[string]any `yaml:"metadata"`
// Type is only used in the generic nodes section.
Type string `yaml:"type"`
}
NodeDef is a node definition inside a typed section or the generic nodes section.