ctl

package
v0.21.7 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDiagramFromCFnTemplate

func CreateDiagramFromCFnTemplate(inputfile string, outputfile *string, generateDacFile bool)

func CreateDiagramFromDacFile added in v0.21.2

func CreateDiagramFromDacFile(inputfile string, outputfile *string)

func IsURL added in v0.21.2

func IsURL(str string) bool

Types

type BorderChild added in v0.21.7

type BorderChild struct {
	Position string `yaml:"Position"`
	Resource string `yaml:"Resource"`
}

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 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"`
}

type Resource

type Resource struct {
	Type           string        `yaml:"Type"`
	Icon           string        `yaml:"Icon"`
	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 TemplateStruct

type TemplateStruct struct {
	Diagram `yaml:"Diagram"`
}

Jump to

Keyboard shortcuts

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