designer

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2019 License: Apache-2.0 Imports: 16 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunDesigner

func RunDesigner(cli cli.Cli) error

Starts a http server to serve Cellery designer react app and API

Types

type Components

type Components struct {
	Name         string            `json:"name"`
	ID           string            `json:"id"`
	X            float64           `json:"x"`
	Y            float64           `json:"y"`
	Shape        string            `json:"shape"`
	Value        float64           `json:"value"`
	Iterator     float64           `json:"iterator"`
	Type         string            `json:"type"`
	Image        string            `json:"image"`
	Parent       string            `json:"parent"`
	SourceImage  string            `json:"sourceImage"`
	Dependencies map[string]string `json:"dependencies"`
}

type Data

type Data struct {
	Nodes []Nodes       `json:"nodes"`
	Edges []interface{} `json:"edges"`
}

type DesignMeta

type DesignMeta struct {
	Path string `json:"path"`
	Data Data   `json:"data"`
}

type Gateway

type Gateway struct {
	Name     string  `json:"name"`
	ID       string  `json:"id"`
	X        float64 `json:"x"`
	Y        float64 `json:"y"`
	Shape    string  `json:"shape"`
	Value    float64 `json:"value"`
	Iterator float64 `json:"iterator"`
	Type     string  `json:"type"`
	Parent   string  `json:"parent"`
}

type Nodes

type Nodes struct {
	Name       string       `json:"name"`
	ID         string       `json:"id"`
	X          float64      `json:"x"`
	Y          float64      `json:"y"`
	Shape      string       `json:"shape"`
	Iterator   float64      `json:"iterator"`
	Value      float64      `json:"value"`
	Type       string       `json:"type"`
	Image      string       `json:"image"`
	Org        string       `json:"org"`
	Version    string       `json:"version"`
	Components []Components `json:"components"`
	Gateway    Gateway      `json:"gateway"`
}

type TemplateComponent

type TemplateComponent struct {
	Name         string
	SourceImage  string
	Dependencies []TemplateDependency
}

type TemplateDependency

type TemplateDependency struct {
	Org   string
	Name  string
	Ver   string
	Alias string
	Type  string
}

type TemplateImage

type TemplateImage struct {
	Name       string
	Type       string
	Components []TemplateComponent
}

Jump to

Keyboard shortcuts

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