cytoscape

package
v1.86.1 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Elements  Elements `json:"elements"`
	MeshName  string   `json:"meshName"`
	Timestamp int64    `json:"timestamp"`
}

func NewConfig

func NewConfig(meshMap mesh.MeshMap, o mesh.ConfigOptions) (result Config)

NewConfig is required by the mesh/ConfigVendor interface

type EdgeData

type EdgeData struct {
	// Cytoscape Fields
	ID     string `json:"id"`     // unique internal edge ID (e0, e1...)
	Source string `json:"source"` // parent node ID
	Target string `json:"target"` // child node ID

}

type EdgeWrapper

type EdgeWrapper struct {
	Data *EdgeData `json:"data"`
}

type Elements

type Elements struct {
	Nodes []*NodeWrapper `json:"nodes"`
	Edges []*EdgeWrapper `json:"edges"`
}

type NodeData

type NodeData struct {
	// Cytoscape Fields
	ID     string `json:"id"`               // unique internal node ID (n0, n1...)
	Parent string `json:"parent,omitempty"` // Compound Node parent ID

	// Required Fields (not required by Cytoscape)
	Cluster   string `json:"cluster"`
	InfraName string `json:"infraName"`
	InfraType string `json:"infraType"`
	Namespace string `json:"namespace"`
	NodeType  string `json:"nodeType"`
	// Other Fields
	HasInfra       bool        `json:"-"`                        // for local when generating boxes
	HealthData     interface{} `json:"healthData"`               // data to calculate health status from configurations
	InfraData      interface{} `json:"infraData,omitempty"`      // infraType-dependent data
	IsAmbient      bool        `json:"isAmbient,omitempty"`      // true if configured for ambient
	IsBox          string      `json:"isBox,omitempty"`          // set for NodeTypeBox, current values: [ 'cluster', 'dataplanes', 'namespace' ]
	IsCanary       bool        `json:"isCanary,omitempty"`       // true if the data plane is canary
	IsExternal     bool        `json:"isExternal,omitempty"`     // true if the infra is external to the mesh | false
	IsInaccessible bool        `json:"isInaccessible,omitempty"` // true if the node exists in an inaccessible namespace
	IsMTLS         bool        `json:"isMTLS,omitempty"`         // true if mesh-wide mTLS is enabled
	Version        string      `json:"version,omitempty"`        // version of the component, if applicable and available
}

type NodeWrapper

type NodeWrapper struct {
	Data *NodeData `json:"data"`
}

Jump to

Keyboard shortcuts

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