Documentation
¶
Index ¶
- func CreateDiagramFromCFnTemplate(inputfile string, outputfile *string, generateDacFile bool)
- func CreateDiagramFromDacFile(inputfile string, outputfile *string)
- func IsURL(str string) bool
- type BorderChild
- type DefinitionFile
- type Diagram
- type Link
- type LinkLabel
- type LinkLabels
- type Resource
- type ResourceIconFill
- type TemplateStruct
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateDiagramFromDacFile ¶ added in v0.21.2
Types ¶
type BorderChild ¶ added in v0.21.7
type DefinitionFile ¶
type DefinitionFile struct { Type string `yaml:"Type"` // URL,LocalFile,Embed Url string `yaml:"Url"` LocalFile string `yaml:"LocalFile"` Embed definition.DefinitionStructure `yaml:"Embed"` }
type Diagram ¶
type Diagram struct { DefinitionFiles []DefinitionFile `yaml:"DefinitionFiles"` Resources map[string]Resource `yaml:"Resources"` Links []Link `yaml:"Links"` }
type Link ¶
type Link struct { Source string `yaml:"Source"` SourcePosition string `yaml:"SourcePosition"` SourceArrowHead types.ArrowHead `yaml:"SourceArrowHead"` Target string `yaml:"Target"` TargetPosition string `yaml:"TargetPosition"` TargetArrowHead types.ArrowHead `yaml:"TargetArrowHead"` Type string `yaml:"Type"` LineWidth int `yaml:"LineWidth"` LineColor string `yaml:"LineColor"` LineStyle string `yaml:"LineStyle"` Labels LinkLabels `yaml:"Labels"` }
type LinkLabels ¶ added in v0.21.9
type Resource ¶
type Resource struct { Type string `yaml:"Type"` Icon string `yaml:"Icon"` IconFill *ResourceIconFill `yaml:"IconFill"` Direction string `yaml:"Direction"` Preset string `yaml:"Preset"` Align string `yaml:"Align"` FillColor string `yaml:"FillColor"` Title string `yaml:"Title"` TitleColor string `yaml:"TitleColor"` Font string `yaml:"Font"` Children []string `yaml:"Children"` BorderChildren []BorderChild `yaml:"BorderChildren"` }
type ResourceIconFill ¶ added in v0.21.9
type TemplateStruct ¶
type TemplateStruct struct {
Diagram `yaml:"Diagram"`
}
Click to show internal directories.
Click to hide internal directories.