Documentation
¶
Overview ¶
Package graphize provides integration with the graphize code graph tool. It converts system-spec documents into graphfs nodes and edges, allowing infrastructure topology to be queried alongside code graphs.
Index ¶
- Constants
- type Provider
- func (p *Provider) CanExtract(path string) bool
- func (p *Provider) Extensions() []string
- func (p *Provider) ExtractFile(path, baseDir string) ([]*graph.Node, []*graph.Edge, error)
- func (p *Provider) ExtractSystem(sys *spec.System, sourcePath string) ([]*graph.Node, []*graph.Edge, error)
- func (p *Provider) Language() string
Constants ¶
View Source
const ( NodeTypeService = "service" NodeTypeDatabase = "database" NodeTypeQueue = "queue" NodeTypeTopic = "topic" NodeTypeStorage = "storage" NodeTypeAIModel = "ai_model" NodeTypeCDN = "cdn" NodeTypeWorker = "worker" NodeTypeHelm = "helm_chart" NodeTypeTerraform = "terraform_module" NodeTypeSystem = "system" )
Node types for system-spec entities
View Source
const ( EdgeTypeConnectsTo = "connects_to" EdgeTypeUses = "uses" EdgeTypeDeploys = "deploys" EdgeTypeManages = "manages" EdgeTypeContains = "contains" EdgeTypeLinksTo = "links_to" // service -> repo )
Edge types for system-spec relationships
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider struct{}
Provider extracts graphfs nodes and edges from system-spec documents.
func (*Provider) CanExtract ¶
CanExtract returns true if the file is a system-spec document.
func (*Provider) Extensions ¶
Extensions returns file extensions this provider handles.
func (*Provider) ExtractFile ¶
ExtractFile extracts nodes and edges from a system-spec JSON file.
Click to show internal directories.
Click to hide internal directories.