drawio

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIGateway

type APIGateway struct {
	// contains filtered or unexported fields
}

APIGateway represents APIGateway resource: mxgraph.aws3.api_gateway

func NewAPIGateway

func NewAPIGateway(id, name string) APIGateway

func (APIGateway) ID

func (a APIGateway) ID() string

func (APIGateway) Value

func (a APIGateway) Value() string

type Cron

type Cron struct {
	// contains filtered or unexported fields
}

Cron represents Cron resource: mxgraph.aws4.event_time_based

func NewCron

func NewCron(id, name string) Cron

func (Cron) ID

func (c Cron) ID() string

func (Cron) Value

func (c Cron) Value() string

type Database

type Database struct {
	// contains filtered or unexported fields
}

Database represents Database resource: mxgraph.flowchart.database

func NewDatabase

func NewDatabase(id, name string) Database

func (Database) ID

func (d Database) ID() string

func (Database) Value

func (d Database) Value() string

type Diagram

type Diagram struct {
	XMLName      xml.Name     `xml:"diagram"`
	MxGraphModel MxGraphModel `xml:"mxGraphModel"`
}

type Endpoint

type Endpoint struct {
	// contains filtered or unexported fields
}

Endpoint represents Endpoint resource: mxgraph.aws4.endpoint

func NewEndpoint

func NewEndpoint(id, name string) Endpoint

func (Endpoint) ID

func (e Endpoint) ID() string

func (Endpoint) Value

func (e Endpoint) Value() string

type Geometry

type Geometry struct {
	XMLName xml.Name `xml:"mxGeometry"`
	X       float64  `xml:"x,attr"`
	Y       float64  `xml:"y,attr"`
	Width   float64  `xml:"width,attr"`
	Height  float64  `xml:"height,attr"`
}

type Lambda

type Lambda struct {
	// contains filtered or unexported fields
}

Lambda represents Lambda resource: mxgraph.aws3.lambda

func NewLambda

func NewLambda(id, name string) Lambda

func (Lambda) ID

func (l Lambda) ID() string

func (Lambda) Value

func (l Lambda) Value() string

type MxCell

type MxCell struct {
	XMLName  xml.Name `xml:"mxCell"`
	Id       string   `xml:"id,attr"`
	Value    string   `xml:"value,attr"`
	Style    string   `xml:"style,attr"`
	Parent   string   `xml:"parent,attr"`
	Vertex   bool     `xml:"vertex,attr"`
	Source   string   `xml:"source,attr"`
	Target   string   `xml:"target,attr"`
	Geometry Geometry `xml:"mxGeometry"`
}

type MxFile

type MxFile struct {
	XMLName xml.Name `xml:"mxfile"`
	Diagram Diagram  `xml:"diagram"`
}

func Parse

func Parse(fileName string) (*MxFile, error)

type MxGraphModel

type MxGraphModel struct {
	XMLName xml.Name `xml:"mxGraphModel"`
	Root    Root     `xml:"root"`
}

type Relationship

type Relationship struct {
	Source Resource
	Target Resource
}

Relationship struct representing the relationship between resources

type Resource

type Resource interface {
	ID() string
	Value() string
}

Resource interface for all resource types

type ResourceCollection

type ResourceCollection struct {
	Lambdas       []Lambda
	SQSs          []SQS
	Crons         []Cron
	APIGateways   []APIGateway
	Endpoints     []Endpoint
	Buckets       []S3
	Databases     []Database
	RestfulAPIs   []RestfulAPI
	Relationships []Relationship
}

func ParseResources

func ParseResources(mxFile *MxFile) (*ResourceCollection, error)

type RestfulAPI

type RestfulAPI struct {
	// contains filtered or unexported fields
}

RestfulAPI represents RestfulAPI resource: mxgraph.veeam2.restful_api

func NewRestfulAPI

func NewRestfulAPI(id, name string) RestfulAPI

func (RestfulAPI) ID

func (r RestfulAPI) ID() string

func (RestfulAPI) Value

func (r RestfulAPI) Value() string

type Root

type Root struct {
	XMLName xml.Name `xml:"root"`
	MxCells []MxCell `xml:"mxCell"`
}

type S3

type S3 struct {
	// contains filtered or unexported fields
}

S3 represents S3 resource: mxgraph.aws3.s3

func NewS3

func NewS3(id, name string) S3

func (S3) ID

func (s S3) ID() string

func (S3) Value

func (s S3) Value() string

type SQS

type SQS struct {
	// contains filtered or unexported fields
}

SQS represents SQS resource: mxgraph.aws3.sqs

func NewSQS

func NewSQS(id, name string) SQS

func (SQS) ID

func (s SQS) ID() string

func (SQS) Value

func (s SQS) Value() string

Jump to

Keyboard shortcuts

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