guacanalytics

package
v0.7.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SearchDependentsFromStartPackage added in v0.1.2

func SearchDependentsFromStartPackage(ctx context.Context, gqlClient graphql.Client, startID string, stopID *string, maxDepth int) (map[string]BfsNode, []string, error)

func TopoSortFromBfsNodeMap added in v0.1.2

func TopoSortFromBfsNodeMap(ctx context.Context, gqlClient graphql.Client, nodeMap map[string]BfsNode) (map[int][]string, []string, error)

TopoSortFromBfsNodeMap sorts the nodes such that it returns a map of level -> list of nodeIDs at that level

Types

type BfsNode added in v0.1.2

type BfsNode struct {
	Expanded bool // true once all node neighbors are added to queue
	Parents  []string
	Depth    int
	Type     NodeType

	PointOfContact   model.AllPointOfContact
	NotInBlastRadius bool // true if it is solely an informational node, not to be included in the blast radius subgraph
	// contains filtered or unexported fields
}

type NodeType

type NodeType int
const (
	PackageName NodeType = iota
	PackageVersion
	SourceName
	Artifact
)

Jump to

Keyboard shortcuts

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