graph

package
v1.11.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 17, 2026 License: MIT Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildImportSchema

func BuildImportSchema(schema types.Schema, bindings []types.Binding) (types.Schema, error)

BuildImportSchema 根据当前配置的 bindings 引用,智能裁剪并组装需要导入 CMDB 的元数据 Schema

func CompileBindingGraph

func CompileBindingGraph(graph *types.BindingGraph) ([]types.ResourceSpec, error)

CompileBindingGraph 校验图的合法性(单入口、无环连通树)并编译成层级 ResourceSpec 树

func GraphEntryNode

func GraphEntryNode(graph *types.BindingGraph) (types.BindingGraphNode, bool)

GraphEntryNode 获取绑定图的入口节点

func GraphFromBindingSpecs

func GraphFromBindingSpecs(modelUID string, specs []types.ResourceSpec) (*types.BindingGraph, error)

GraphFromBindingSpecs 将声明式的 ResourceSpec 列表转化为 BindingGraph 存储模型

func NormalizeBindingGraph

func NormalizeBindingGraph(binding types.Binding) (types.Binding, error)

NormalizeBindingGraph 校验图并根据入口节点校准 ModelUID

func PrepareBinding

func PrepareBinding(binding types.Binding) (types.Binding, error)

PrepareBinding 规范化入口模型 UID 并校验单条 Binding

func PrepareBindings

func PrepareBindings(pluginID string, bindings []types.Binding) ([]types.Binding, error)

PrepareBindings 规范化并校验插件的所有绑定

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL