applications

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Mount

func Mount(config Config, storeClient store.Client) chi.Router

Types

type Config added in v0.10.0

type Config struct{}

type Edge

type Edge struct {
	Data EdgeData `json:"data"`
}

Edge is the structure for a edge in the topology graph.

type EdgeData

type EdgeData struct {
	ID              string `json:"id"`
	Source          string `json:"source"`
	SourceCluster   string `json:"-"`
	SourceNamespace string `json:"-"`
	SourceName      string `json:"-"`
	Target          string `json:"target"`
	TargetCluster   string `json:"-"`
	TargetNamespace string `json:"-"`
	TargetName      string `json:"-"`
	Description     string `json:"description"`
}

EdgeData is the data for a edge.

type Node

type Node struct {
	Data NodeData `json:"data"`
}

Node is the structure for a node in the topology graph.

type NodeData

type NodeData struct {
	ID        string `json:"id"`
	Label     string `json:"label"`
	Cluster   string `json:"cluster"`
	Namespace string `json:"namespace"`
	Name      string `json:"name"`
	External  string `json:"external"`
}

NodeData is the data for a node.

type Router

type Router struct {
	*chi.Mux
	// contains filtered or unexported fields
}

type Topology

type Topology struct {
	Edges []Edge `json:"edges"`
	Nodes []Node `json:"nodes"`
}

Topology is the structure of the topology graph.

Jump to

Keyboard shortcuts

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