visualizer

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

Types

type File

type File struct {
	FilenamePrefix string
	AppName        string
	Provider       string
	Graph          VisGraph
}

func (*File) Clone

func (f *File) Clone() klotho_io.File

func (*File) KeyFor

func (f *File) KeyFor(res construct.ResourceId) string

func (*File) Path

func (f *File) Path() string

func (*File) WriteTo

func (f *File) WriteTo(w io.Writer) (n int64, err error)

type Plugin

type Plugin struct {
	AppName  string
	Provider string
	Client   *http.Client
}

func (Plugin) Generate

func (p Plugin) Generate(dag construct.Graph, filenamePrefix string) ([]klotho_io.File, error)

Translate implements compiler.IaCPlugin - although it's not strictly an IaC plugin, it uses the same API

func (Plugin) Name

func (p Plugin) Name() string

Name implements compiler.Plugin

func (Plugin) Translate

func (p Plugin) Translate(dag construct.Graph) ([]klotho_io.File, error)

Translate implements compiler.IaCPlugin - although it's not strictly an IaC plugin, it uses the same API

type VisEdgeData

type VisEdgeData struct {
	PathResources set.Set[construct.ResourceId]
}

func (VisEdgeData) MarshalYAML

func (d VisEdgeData) MarshalYAML() (interface{}, error)

type VisGraph

func ConstructToVis

func ConstructToVis(g construct.Graph) (VisGraph, error)

func NewVisGraph

func NewVisGraph(options ...func(*graph.Traits)) VisGraph

type VisResource

type VisResource struct {
	ID construct.ResourceId

	Tag      string
	Parent   construct.ResourceId
	Children set.Set[construct.ResourceId]
}

Jump to

Keyboard shortcuts

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